Goal
I have a github organization job that runs a Jenkinsfile. I have modified the jenkinsfile to add a scheduled trigger as I want to trigger the pipeline every day for master branch now
Jenkinsfile
My jenkinsfile starts with following code :
// Schedule pipeline every morning on master if (env.BRANCH_NAME.equals('master') ) { properties( [ pipelineTriggers( [cron('''TZ=Europe/Paris H 5 * * *''') ] ) ] ) }
Issue
But in my master job console I get following log => it is the opposite of what is expected.
My job is not scheduled
05:30:46 removeJobSchedule - Removed existing TimerTrigger with spec 'TZ=Europe/Paris 05:30:46 H 5 * * *'
I do not understand what is going wrong.
Expected Behaviour
When creating a new job with same code , it works fine (github org AND multibranch pipeline) => is there something special if i modify an existing job ?
I would expect that the sub job master is scheduled correctly with given code