Re: Poll scm in specific branch only

2020-05-05 Thread Aryo Kusumo
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

Re: can i use variable to specify the agent label in my declarative pipeline ?

2019-01-16 Thread Aryo Kusumo
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