Documentation on how global variables in a Jenkinsfile work

2016-11-26 Thread Øyvind Harboe
Hi, I'm trying to find documentation on how global variables in a Jenkinsfile work. I've found bits and pieces, but not a single authoritative location on the programming model. Any pointers? In particular, I've managed to get the following code(paraphrased from our project) to work by googl

Re: Pipeline: How to cache downloaded (gradle) dependencies using Docker SSH Slave

2016-11-26 Thread Peter Hayes
Jumping on an old thread but I have the same need using docker based agents. I was thinking of trying to write a cache plugin that achieves a similar caching capability that travis ci provides for arbitrary directories : https://docs.travis-ci.com/user/caching/#Arbitrary-directories In the pip

Re: Jenkins pushes on our Git repository: how to prevent infinite loops?

2016-11-26 Thread Baptiste Mathus
How do you handle the pushes Git server -> Jenkins? Maybe you could just skip pushes based on commit pattern? Alternatively, more hacky, feels like, make those pushes trigger a dummy upstream job that will or will not trigger the pipeline. I think the first solution is probably the cleanest. I'm

Weird Flow using Lists and Jenkins pipeline parallel

2016-11-26 Thread Isaac Aymerich
this work as I expect stage("paralelo"){ def paralelo=[:] for(def counter=1;counter<6;counter++){ def value=counter paralelo["branch${counter}"] = { print "hello ${value}" if(value==5){ error 'died'

Git with Jenkins

2016-11-26 Thread Anup
If I commit code to remote repository with gitignore created to exclude directory containing test data (username and password), will software build run successfully in Jenkins? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe fr

Re: Jenkins master in Docker optimal setup

2016-11-26 Thread Baptiste Mathus
Hey, You should probably start with the general things like https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds https://wiki.jenkins-ci.org/display/JENKINS/Consideration+for+Large+Scale+Jenkins+Deployment or https://jenkins.io/doc/book/architecting-for-scale/ and Googling about "Scaling

Re: Upgrade problems from 1.651.3 to 2.19.3

2016-11-26 Thread Anders Persson
I found out the problem. I looked in the logfile and found rows like this INFO: Ignoring C:\Users\Ulf\.jenkins\plugins\credentials (2).jpi because C:\ Users\Ulf\.jenkins\plugins\credentials (1).jpi is already loaded nov 25, 2016 9:16:09 EM hudson.PluginManager$1$3$1 isDuplicate INFO: Ignoring C:\U

Re: Upgrade problems from 1.651.3 to 2.19.3

2016-11-26 Thread Daniel Beck
> On 26.11.2016, at 21:49, Anders Persson wrote: > > I guess it is something with backup of the old version of the plugin that > created the (1) version of the plugin and then the loading of the plugin > unfortunately loaded the wrong version. Jenkins created plugin backup files are named .b

Re: Git with Jenkins

2016-11-26 Thread Mark Waite
Yes. On Sat, Nov 26, 2016 at 11:43 AM Anup wrote: > If I commit code to remote repository with gitignore created to exclude > directory containing test data (username and password), will software build > run successfully in Jenkins? > > -- > You received this message because you are subscribed t