Hello,
I have a pipeline which should only build if there are changes in branch
specified. It builds however every 5 minutes, since there are changes in
master. Is there a way to poll scm only for a branch?
Den
pipeline {
agent none
triggers {
pollSCM('H/5 * * * *')
}
stages {
stage ('SCM Pull') {
agent any
steps {
git branch: "mybranch", url: "$URL"
}
}
...
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/74e2a3e0-75c3-46bd-b6ed-d1d461398774%40googlegroups.com.