Conditional configuration with the Job DSL

2015-10-06 Thread Nick Stolwijk
I'm trying to rebuild my Jenkins jobs through the Job DSL. I have found a lot of documentation and examples, but none about conditional configuration. I have the following job input: projects { componentA { svn-url = 'https://svn.localhost/componenta/trunk/' } componentB { git-url =

Re: Conditional configuration with the Job DSL

2015-10-06 Thread Baptiste Mathus
Well, Job DSL is actually Groovy code. So something like the following should work: scm { if(data.git_url) { git { remote { url(data.git_url) credentials('x-') } createTag(false) } } else if(data.svn-url) { svn(d

Re: Conditional configuration with the Job DSL

2015-10-06 Thread Nick Stolwijk
Doh... that is simpler than I thought. :D I couldn't find any examples in the various Job DSL configurations I had found. Thanks for the help! Nick Stolwijk ~~~ Try to leave this world a little better than you found it and, when your turn comes to die, you can die happy in feeling that at any ra

strange error message when configuring post build action for archiving artifacts

2015-10-06 Thread Ronald Fischer
I am using a post build action to archive artifacts. In the entry field for the files to be archived, I have entered: results/*.csv,results/*.txt When saving this configuration change, Jenkins complains that while it finds the directory results, it doesn't find results/*.csv. Well, this is

Re: "Insufficient memory" on server startup

2015-10-06 Thread Trevor Williams
Ugh, correcting spelling of the subject. Me fail English? That's unpossible! On Monday, October 5, 2015 at 7:27:01 PM UTC-4, Trevor Williams wrote: > > Hi all, > > First time user of Jenkins here, and having a bit of trouble getting it > started. From the Linux shell I run a command like: > >

Re: Conditional configuration with the Job DSL

2015-10-06 Thread Victor Martinez
Nick, There is also another google group you might find useful: - https://groups.google.com/forum/#!forum/job-dsl-plugin Cheers On Tuesday, 6 October 2015 10:26:44 UTC+2, Nick Stolwijk wrote: > > Doh... that is simpler than I thought. :D I couldn't find any examples in > the various Job DSL

receiving an error trying to connect to a slave in vSphere

2015-10-06 Thread Robyn Sandova
Hi, I have a test Jenkins environment that is currently running Jenkins 1.630 with most recent vSphere-cloud plugin 2.6. I have 2 Linux test nodes that are on the vSphere. One node is able to connect fine. But when I attempt to connect the second node, I get the following error through Jenkin

jenkins Console output

2015-10-06 Thread GBANE FETIGUE
Hey guys I am having some issues after running this job is giving me this error. I am not a jenkins expert ; here is the output also i to debug with the option - but is it's not working. could someone help me Started by user Fetigue Gbane Buildin

How to get upstream/downstream job info using Groovy Scripts ?

2015-10-06 Thread Shafi ulla
Am looking for groovy script given the job name as input, output : to list its upstream or downstream jobs. Any suggestion on how to do this ? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Templates Plugin (Jenkins Enterprise)

2015-10-06 Thread Brian Ray
Not to drag the thread off-topic, but could you elaborate on any security issues with Job DSL? I experimented with it a while back, and CloudBees is going to demo Job Templates to my shop in the near future, but is there something that makes Job DSL inherently less secure-able than the latter?

jenkins Console output

2015-10-06 Thread Victor Martinez
Hi, That's an Ansible log error rather than a jenkins issue. It is worth if you run that command from the terminal.in order to reproduce that error and discard whether it is something else. Error related to.some unreachable server I hope it helps -- You received this message because you are

Re: Templates Plugin (Jenkins Enterprise)

2015-10-06 Thread Daniel Beck
On 06.10.2015, at 18:52, Brian Ray wrote: > Not to drag the thread off-topic, but could you elaborate on any security > issues with Job DSL? I experimented with it a while back, and CloudBees is > going to demo Job Templates to my shop in the near future, but is there > something that makes J

Re: Templates Plugin (Jenkins Enterprise)

2015-10-06 Thread Victor Martinez
Hi, Let me kindly suggest the below security approaches in case you need to secure your Jenkins instance: - https://wiki.jenkins-ci.org/display/JENKINS/Ownership-Based+security - https://wiki.jenkins-ci.org/display/JENKINS/Job+Restrictions+Plugin There are some use cases it will not be

Starting slave agents via SSH fails, Ubuntu 12.04

2015-10-06 Thread Zach La Celle
When I try to start a slave agent on my Ubuntu 12.04 machine (the master is running 14.04), I get the following error: [10/06/15 16:26:42] [SSH] Starting slave process: cd "/home/build/jenkins-workspace" && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started hudson.util.IOExc

Re: Starting slave agents via SSH fails, Ubuntu 12.04

2015-10-06 Thread Mark Waite
The remote machine is probably configured to run a java version which is too old. For example, you may have Java 6 installed on the Ubuntu 12.04 machine when you need to install Java 7. If Java 7 is installed on the Ubuntu 12 machine, then you may need to configure the Jenkins slave to run with t

Re: Starting slave agents via SSH fails, Ubuntu 12.04

2015-10-06 Thread Zach La Celle
OK, switching everything to Java 7 seems to have done the trick. Thank you. On Tuesday, October 6, 2015 at 4:34:26 PM UTC-4, Mark Waite wrote: > > The remote machine is probably configured to run a java version which is > too old. For example, you may have Java 6 installed on the Ubuntu 12.04

Re: How to get upstream/downstream job info using Groovy Scripts ?

2015-10-06 Thread Baptiste Mathus
Hi, This is going to be very simple if you have some general have knowledge. In the groovy script, start with something along Jenkins.instance. getItem(yourJobName) that will return a job instance. Then look through the public javadoc to find what you want. Hope it'll get you started. Cheers Le

Re: How to get upstream/downstream job info using Groovy Scripts ?

2015-10-06 Thread Baptiste Mathus
Le 7 oct. 2015 8:36 AM, "Baptiste Mathus" a écrit : > > Hi, > This is going to be very simple if you have some general have knowledge. Hum. F You Autocorrect. I meant "Java knowledge". -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubs