Last active
March 6, 2017 03:21
-
-
Save visitbethel/8109ec76ca1f5079d3f4b1a58aa423bb to your computer and use it in GitHub Desktop.
Jenkins Pipeline setup SCM Trigger with cron scheduling.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/groovy | |
@Library('libz') _ | |
echo ">>>Setting Up Scheduling<<<<" | |
properties( | |
[ | |
pipelineTriggers([ | |
triggers: [ | |
[ | |
$class: 'hudson.triggers.SCMTrigger', | |
scmpoll_spec : 'H/30 * * * *' | |
] | |
] | |
]) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment