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')
}
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