Ouranosinc / PAVICS-e2e-workflow-tests

Test user-level workflow.
Apache License 2.0
0 stars 2 forks source link

Trigger in Jenkinsfile not working properly in single branch pipeline job #29

Open tlvu opened 4 years ago

tlvu commented 4 years ago

The line below should have added the midnight cron trigger to all pipeline jobs as long as it's on the master branch

https://github.com/Ouranosinc/PAVICS-e2e-workflow-tests/blob/21e85d49fc934a3343d6685a3c95d0b52acaad46/Jenkinsfile#L3

It's working fine for the multibranch pipepline job

https://github.com/Ouranosinc/jenkins-config/blob/356154251ad9e535e0799a136f812eb9a57c505e/jcasc/jobs.yaml#L3-L9

but not the single branch pipeline job

https://github.com/Ouranosinc/jenkins-config/blob/356154251ad9e535e0799a136f812eb9a57c505e/jcasc_ouranos/staging_jobs.yaml#L5

After the 2nd scheduled run on the single branch pipeline job, the cron trigger disappear ! So it does work for 2 times, which makes matter even more interesting/puzzling.

tlvu commented 4 years ago

Asked on https://gitter.im/jenkinsci/jenkins, this bug is way too weird.