checkout([$class: 'GitSCM', branches: [[name: '$branch_name']], extensions: [[$class: 'WipeWorkspace'], url: '$git_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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/74e2a3e0-75c3-46bd-b6ed-d1d461398774%40googlegroups.com.
Maybe you could try this. It's works for me.
checkout([$class: 'GitSCM', branches: [[name: '$branch_name']], extensions: [[$class: 'WipeWorkspace'], url: '$git_url']]])
On Tue, 5 May 2020, 20:15 Den, <denni...@gmail.com> wrote:
--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?Denpipeline {agent nonetriggers {pollSCM('H/5 * * * *')}stages {stage ('SCM Pull') {agent anysteps {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 jenkins...@googlegroups.com.