Tried to remove triggers { pollSCM('H/5 * * * *') } and use checkout
function as you describe, but then it is not triggered if there are changes
in the branch.
Am Dienstag, 5. Mai 2020 17:11:13 UTC+2 schrieb Aryo Kusumo:
>
> Maybe you could try this. It's works for me.
>
> checkout([$class: 'Gi
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, wrote:
> Hello,
>
> I have a pipeline which should only build if there are changes in branch
>
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 * * * *')
}
s