Poll SCM every 2m for Jenkins
This commit is contained in:
parent
2eca0f490f
commit
1f287ad0f6
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -69,8 +69,8 @@ spec:
|
|||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
// Webhook-friendly; notifyCommit works when pollSCM is defined (even empty string).
|
// Poll every 2 minutes; notifyCommit can also trigger, but polling keeps it moving without webhook tokens.
|
||||||
pollSCM('')
|
pollSCM('H/2 * * * *')
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user