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
>
I create agent as string parameters and put in the jennkinsfile without
quote.
agent {
node {
label params.agent
}
}
Pada Rabu, 03 Mei 2017 21.58.09 UTC+7, ishan jain menulis:
>
> I am using declarative syntax to build my pipeline. I am loading several
> variables from a properties file in the