Re: Growing config.xml with GitLab plugin

2017-06-15 Thread Dan Tran
we encounter similar issue with declarative pipeline upgrade https://groups.google.com/forum/#!topic/jenkinsci-users/lAyx4kof0wU For you case, you may need drop and recreate the job -Dan On Thursday, June 15, 2017 at 9:15:11 PM UTC-7, Qiang wrote: > > Recently I upgraded to Jenkins 2.46.3 (b

Growing config.xml with GitLab plugin

2017-06-15 Thread Qiang
Recently I upgraded to Jenkins 2.46.3 (based on the docker image release). There is a "new weird" problem. I noticed job's config.xml grow really big. When open it , it has tons of repeated following code This was not observed before the u

post-build step in a scripted pipeline

2017-06-15 Thread Richard Ginga
As I understand it, the only post-build capability in scripted pipeline is try/catch/finally but I don't know what data is available to me in a catch block? Our scripted pipelines sequence some series of freestyle jobs, some in parallel. It is not easy for our project managers to click through the

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Stephen Connolly
On Thu 15 Jun 2017 at 17:44, Idan Adar wrote: > Well that's a deadlock... I need both those variables and the parameter > provided to me via parametrized build... > parametrized build is available in pipeline but not multibranch > If can define the parameters from your Jenkinsfile An alternativ

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Idan Adar
Well that's a deadlock... I need both those variables and the parameter provided to me via parametrized build... parametrized build is available in pipeline but not multibranch -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe fro

Get path to generated APKs

2017-06-15 Thread milan . zelenka1991
Hello everyone, I have successfully managed to make Jenkins pull source from Assembla, build it and run it on an Android simulator by specifying the path to the generated APK in "Install Android package" build step. What I need now is not to have to hardcode this path because the name of the g

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Stephen Connolly
they are available in multibranch if you are building a change request: https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/BranchNameContributor.java#L63-L92 On 15 June 2017 at 09:28, Stephen Connolly wrote: > yep > > On 15 June 2017 at 09:18, Idan Adar wrot

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Stephen Connolly
yep On 15 June 2017 at 09:18, Idan Adar wrote: > Question: > > It seems that $CHANGE_ID and $CHANGE_URL are not available in a pipeline > job but are available in a multibranch job? > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To u

Re: Jenkins 2.9, multi-branch pipeline, 2 git source repositories, scanning problem.

2017-06-15 Thread Stephen Connolly
The answer is No. Multiple sources in the same multibranch project are expected to be common repositories. For example you may have one repo used for deploying to production and the second for developing changes... and you would deploy to production by pushing from one repo to the other. As such,

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Idan Adar
Question: It seems that $CHANGE_ID and $CHANGE_URL are not available in a pipeline job but are available in a multibranch job? -- 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, s

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Idan Adar
Thanks. I'll need it to be two jobs as the first cluster has a 3 runs scheduled and the second one shouldn't be scheduled. I'll give it a try. Sent from my iPhone > On 15 Jun 2017, at 16:20, Stephen Connolly > wrote: > > Parameterized job. that will expose the parameter. you can have the para

PR builder plug-in question

2017-06-15 Thread zafar . khaydarov
Hi there, I have a question for the https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin Couldn't find any group for the plug-in so posting it here, apologies if wrong room - if u know right room - very appreciated. Sorry if dumb question, but just don't wanna look in

Join group.

2017-06-15 Thread Don Robbins
I am a jenkins user at work where we are using both Jenkins LTS and Jenkins Weekly. Please add me to the user group. Don -- 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

Jenkins 2.9, multi-branch pipeline, 2 git source repositories, scanning problem.

2017-06-15 Thread D.D.
Hi Jenkins Users, We have a Jenkins (2.9) multi-branch pipeline project. It has 2 git source repositories configured so that we pick up and list any branch named "release/3.*". Now each of 2 git repos has a branch named release/3.1.0. Jenkins detects both branches, but refuses to add the secon

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Stephen Connolly
Parameterized job. that will expose the parameter. you can have the parameter be a drop-down with the two clusters (and even nice names) On 15 June 2017 at 06:12, Idan Adar wrote: > Here's the situation: > > I have 2 clusters, each with its own unique URL, that do end-2-end testing. > The code t

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Idan Adar
Here's the situation: I have 2 clusters, each with its own unique URL, that do end-2-end testing. The code that does the tests is the same. It basically goes through a set of actions performed on a cluster. I have a job that basically does npm test which starts the process. Now I'd like to use t

Re: Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Stephen Connolly
It looks like you are trying to write a build script in pipeline... I would think twice if that is actually what you are trying to do. Write your build script to be independent of Jenkins. That lets you test thing from the command line. Pipeline is the glue to wire it all together at the end (s

Re: Can environment directive be used in post?

2017-06-15 Thread Andrew Bayer
Fwiw, in this case, you'd want to use withCredentials rather than withEnv. A. On Jun 15, 2017 8:18 AM, "Idan Adar" wrote: > Thanks. I ended doing what I needed doing as part of the last stage > instead of in post. > > On Wednesday, June 14, 2017 at 9:54:06 PM UTC+3, Kevin Burnett wrote: >> >> i

Can a Jenkins global variable be used inside running code as part of a job?

2017-06-15 Thread Idan Adar
Currently I have in a node project a .json file with certain values. Is it possible to externalize these values into a Jenkins global variable and then consume these properties in my code? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To uns

Re: Can environment directive be used in post?

2017-06-15 Thread Idan Adar
Thanks. I ended doing what I needed doing as part of the last stage instead of in post. On Wednesday, June 14, 2017 at 9:54:06 PM UTC+3, Kevin Burnett wrote: > > i don't believe you can use the environment instruction in post, no. > > but you can use withEnv: > https://jenkins.io/doc/pipeline/st