Re: need to deploy in multiple branches

2018-11-27 Thread Ajay Sharma
use this for master only if (!env.CHNAGE_ID && env.BRANCH_NAME == 'master') { } On Wed, Nov 28, 2018 at 7:18 AM Robert Rajendra wrote: > Thankyou > > On Tue, 27 Nov 2018, 11:23 pm Ajay Sharma >> I am also searching, by tomorrow I will reply. >> >> On Tue 27 Nov, 2018, 5:27 PM > >>> >>> >>>

Re: need to deploy in multiple branches

2018-11-27 Thread Robert Rajendra
Thankyou On Tue, 27 Nov 2018, 11:23 pm Ajay Sharma I am also searching, by tomorrow I will reply. > > On Tue 27 Nov, 2018, 5:27 PM >> >> >> On Tuesday, 27 November 2018 17:25:47 UTC+5:30, robert@ithands.biz >> wrote: >>> >>> Hi Team i want to deploy to the staging only when the code is push

Re: need to deploy in multiple branches

2018-11-27 Thread Ajay Sharma
I am also searching, by tomorrow I will reply. On Tue 27 Nov, 2018, 5:27 PM > > On Tuesday, 27 November 2018 17:25:47 UTC+5:30, robert@ithands.biz > wrote: >> >> Hi Team i want to deploy to the staging only when the code is pushed to >> staging and to master only when the code is pushed to

Re: need to deploy in multiple branches

2018-11-27 Thread Jan Monterrubio
Here's this that might help: https://jenkins.io/doc/book/pipeline/syntax/#flow-control On Tue, Nov 27, 2018 at 8:10 AM Jan Monterrubio wrote: > A quick search found this: > > https://stackoverflow.com/questions/32789619/jenkins-multibranch-pipeline-what-is-the-branch-name-variable > > Once I get

Re: need to deploy in multiple branches

2018-11-27 Thread Jan Monterrubio
A quick search found this: https://stackoverflow.com/questions/32789619/jenkins-multibranch-pipeline-what-is-the-branch-name-variable Once I get to a computer I’ll do some more searching since finding text on a phone is hard :) On Tue, Nov 27, 2018 at 08:02 wrote: > Thanks for reachibg out how

Re: need to deploy in multiple branches

2018-11-27 Thread robert . rajendra
Thanks for reachibg out how do I add those variables if there is an article please share -- 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-users+unsubs

Re: need to deploy in multiple branches

2018-11-27 Thread Jan Monterrubio
You could have a jenkinsfile lube with the repository and check the BRANCH environment variable to find out where you’re building from. On Tue, Nov 27, 2018 at 05:57 wrote: > > > On Tuesday, 27 November 2018 17:25:47 UTC+5:30, robert@ithands.biz > wrote: >> >> Hi Team i want to deploy to the

Re: need to deploy in multiple branches

2018-11-27 Thread robert . rajendra
On Tuesday, 27 November 2018 17:25:47 UTC+5:30, robert@ithands.biz wrote: > > Hi Team i want to deploy to the staging only when the code is pushed to > staging and to master only when the code is pushed to master Please help > that what can i do with the script that i made to achieve t