Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save visitbethel/8109ec76ca1f5079d3f4b1a58aa423bb to your computer and use it in GitHub Desktop.
Save visitbethel/8109ec76ca1f5079d3f4b1a58aa423bb to your computer and use it in GitHub Desktop.
Jenkins Pipeline setup SCM Trigger with cron scheduling.
#!/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