Re: Pipeline: wildcard for branch name

2017-01-28 Thread Sharan Basappa
more options like >>> configuring Git SCM: >>> >>> >>> >>> checkout scm: [$class: 'GitSCM', branches: [[name: '*/test*']], >>> userRemoteConfigs: [[url: 'git@hd1:testing']]] >>> >>> >>> &

Re: Pipeline: wildcard for branch name

2017-01-28 Thread Mark Waite
pa < > sharan@gmail.com> > *Reply-To: *"jenkins...@googlegroups.com" > > > *Date: *Thursday, January 26, 2017 at 4:03 AM > > *To: *Jenkins Users > > > *Subject: *Re: Pipeline: wildcard for branch name > > > > Hi David, > > > > I am

Re: Pipeline: wildcard for branch name

2017-01-28 Thread Sharan Basappa
; < > jenkins...@googlegroups.com > > *Date: *Thursday, January 26, 2017 at 4:03 AM > *To: *Jenkins Users > > *Subject: *Re: Pipeline: wildcard for branch name > > > > Hi David, > > > > I am new to continuous integration and Jenkins, so I need inputs to

Re: Pipeline: wildcard for branch name

2017-01-26 Thread Indra Gunawan (ingunawa)
igs: [[url: 'git@hd1:testing']]] From: on behalf of Sharan Basappa Reply-To: "jenkinsci-users@googlegroups.com" Date: Thursday, January 26, 2017 at 4:03 AM To: Jenkins Users Subject: Re: Pipeline: wildcard for branch name Hi David, I am new to continuous integration and Jenki

Re: Pipeline: wildcard for branch name

2017-01-26 Thread Mark Waite
You may find it easier to start with a freestyle job so that you can work through the steps with a little more help from the Jenkins web interface. A freestyle job will let you define the branch with a wild card and will let you see your build results, see the summary of test results, etc. That wi

Re: Pipeline: wildcard for branch name

2017-01-26 Thread Sharan Basappa
Hi David, I am new to continuous integration and Jenkins, so I need inputs to go in the right direction. My requirement is that users push branches with name test_id1/test_id2 etc. I would like to build only when users have created branches with the above name. So, after seeing the responses, i

Re: Pipeline: wildcard for branch name

2017-01-24 Thread David Karr
On Monday, January 23, 2017 at 9:37:01 AM UTC-8, Sharan Basappa wrote: > > Hi, > > I am trying to create pipeline script such that it only a certain branches > following a naming style are built. > However, pipeline bails out when I use the wildcard. > > The code snippet is below: > > stage 'build

Re: Pipeline: wildcard for branch name

2017-01-24 Thread Indra Gunawan (ingunawa)
]] From: on behalf of Sharan Basappa Reply-To: "jenkinsci-users@googlegroups.com" Date: Tuesday, January 24, 2017 at 9:46 AM To: Jenkins Users Subject: Re: Pipeline: wildcard for branch name Victor, I tried all options as follows: git url: 'git@hd1:testing', branch:

Re: Pipeline: wildcard for branch name

2017-01-24 Thread Sharan Basappa
Victor, I tried all options as follows: git url: 'git@hd1:testing', branch: "test*" git url: 'git@hd1:testing', branch: test* git url: 'git@hd1:testing', branch: 'test*' In all the 3 cases, Jenkins exits with error. I looked into the log again and this is what I see: Caused by: hudson.plug

Re: Pipeline: wildcard for branch name

2017-01-23 Thread Victor Martinez
Test property doesn't exist so, according to the doc: - https://jenkins.io/doc/pipeline/steps/git/#git-git -- branch is a string therefore you need to quote it otherwise it seems it's recognised as a property You can also try with the* generic scm step*, explained also in the same page Cheers

Pipeline: wildcard for branch name

2017-01-23 Thread Sharan Basappa
Hi, I am trying to create pipeline script such that it only a certain branches following a naming style are built. However, pipeline bails out when I use the wildcard. The code snippet is below: stage 'build' node { git url: 'git@hd1:testing', branch: test* sh "pwd" sh "cat simple.csh" sh