Home > Mobile >  Jenkins pipeline with multiple triggers not triggering correctly
Jenkins pipeline with multiple triggers not triggering correctly

Time:07-12

I have a jenkins pipleine which has two triggers one for pollSCM and the other is a cron job to run every Tuesday and Thursday at 6 pm EST. I configured it as follows

triggers {
        pollSCM('H/5 * * * *')
        cron('00 18 * * 2,4')
    }

I followed the document Jenkins image

CodePudding user response:

Adding TZ (timezone) in Build periodically under Build Triggers, helped to trigger the pipeline at 6 pm EST on Tuesday and Thursday.

TZ=America/New_York
00 18 * * 2,4

enter image description here

  • Related