-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: pipeline
-
Environment:jenkins 2.332.1
Â
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
Â