Synchronous REST API call to execute a job

2015-08-25 Thread Alan Evangelista
Hi. I am trying to create a synchronous REST API call to execute a job. I was able to submit a job using the Jenkins REST API, but I am not able to get the build ID so I can query if the build completed and was successful. I am aware that the build ID is not obvious, as there may be no idle e

Re: JUnit + Jenkins example

2015-08-25 Thread Ziv Gabel
You should 1. Create an ant task that run the tests (and optionally compiling everything needed before) 2. The ant JUINT task will generate an xml file for each test. 3. Create a project that executes the ant. 4. Point jenkins to the folder where the xml files created by using the generate repo

Running jobs in parallel using workflow

2015-08-25 Thread Ohad Basan
Hello I am trying to use build flow plugin to run a specific job 5 times concurrently and then wait for all of the jobs to finish. this is the groovy snippet. def concurrent=[:] for (int i = 0; i < 6; i++) { concurrent["concurrent${i}"] = { build job: 'test_job', parameters: [[$class: 'Str

running jobs in parallel using workflow plugin

2015-08-25 Thread Ohad Basan
Hello I am trying to use workflow plugin to run a specific job 5 times concurrently and then wait for all of the jobs to finish. this is the groovy snippet. def concurrent=[:] for (int i = 0; i < 6; i++) { concurrent["concurrent${i}"] = { build job: 'test_job', parameters: [[$class: 'Strin

Re: Synchronous REST API call to execute a job

2015-08-25 Thread Daniel Beck
On 25.08.2015, at 09:26, Alan Evangelista wrote: > I tried to use the idea proposed in > https://issues.jenkins-ci.org/browse/JENKINS-12827 , but Location header in > HTTP response always point to job URL Did you follow the instructions on /job//api to start the build? There are other sugges

Re: running jobs in parallel using workflow plugin

2015-08-25 Thread Daniel Beck
Jenkins will collapse multiple queue items with identical parameters into one. Make sure to pass different parameters. On 25.08.2015, at 10:21, Ohad Basan wrote: > Hello > > I am trying to use workflow plugin to run a specific job 5 times concurrently > and then wait for all of the jobs to fi

Re: running jobs in parallel using workflow plugin

2015-08-25 Thread Ohad Basan
I must trigger the job 5 times with the same parameter. On Tuesday, August 25, 2015 at 11:21:16 AM UTC+3, Ohad Basan wrote: > > Hello > > I am trying to use workflow plugin to run a specific job 5 times > concurrently and then wait for all of the jobs to finish. > this is the groovy snippet. > >

Re: JUnit + Jenkins example

2015-08-25 Thread 'Pulkit Lall' via Jenkins Users
Ziv Gabel, Thanks for providing your valuable time. I have read this online but as I am new to this so I would like to know if there is some sample present on website which can show me the steps from starting to end as I have no idea regarding this. On Tuesday, 25 August 2015 13:10:37 UTC+5:30,

Re: JUnit + Jenkins example

2015-08-25 Thread 'Pulkit Lall' via Jenkins Users
Ziv Gabel, Thank you for providing your valuable time. I have read this online but as I am new to this so I would like to know if there is any sample on website which shows steps from starting to end. On Tuesday, 25 August 2015 13:10:37 UTC+5:30, Ziv Gabel wrote: > > You should > 1. Create an

Re: running jobs in parallel using workflow plugin

2015-08-25 Thread Ohad Basan
this is problematic for me. I need to trigger the same job 5 times with the same parameter value? it's not possible in any way? if not I will hack it at the job level... On Tuesday, August 25, 2015 at 11:32:49 AM UTC+3, Daniel Beck wrote: > > Jenkins will collapse multiple queue items with identi

Keeping windows slaves up to date

2015-08-25 Thread Dirk Kuypers
Hi all, as I have an increasing number of windows slaves on my Jenkins (currently > 40) I was wondering how to keep software on them up to date without logging in manually on each of the machines. There is at least one "patch day" a month were you want to install the newest Windows patches and fro

RE: running jobs in parallel using workflow plugin

2015-08-25 Thread Ginga, Dick
You could add a parameter that the job does not use just so that the set of parameters is different for each. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ohad Basan Sent: Tuesday, August 25, 2015 4:53 AM To: Jenkins Users Cc: m...@beckweb.net Sub

Re: Keeping windows slaves up to date

2015-08-25 Thread Slide
For "automated" Windows updates, I've used [1] before. I haven't used it in some time though, but it looks like they've made it compatible with Windows 8 since I last used it. I didn't check the current pricing for it either, when I last used it, it was a free application. Some other options from g

Bash and hard-bracket tests

2015-08-25 Thread Rob Mandeville
Take the following script: if [ foo == foo ]; then echo foo is foo fi if [ foo == bar ]; then echo foo is bar fi When I run this from the Linux command line, I get: foo is foo When I add "#!/bin/bash -ex" as a shebang, I get the expected line dump plus the "foo is foo" line. When I ma

Re: Synchronous REST API call to execute a job

2015-08-25 Thread Alan Evangelista
On 08/25/2015 05:31 AM, Daniel Beck wrote: On 25.08.2015, at 09:26, Alan Evangelista wrote: I tried to use the idea proposed in https://issues.jenkins-ci.org/browse/JENKINS-12827 , but Location header in HTTP response always point to job URL Did you follow the instructions on /job//api to

Re: Bash and hard-bracket tests

2015-08-25 Thread Dirk Heinrichs
Am 25.08.2015 um 15:51 schrieb Rob Mandeville: > Why does running a shell step without a shebang behave differently > than it does with a “#!/bin/bash –ex” shebang? Exactly what is being > run without a shebang? What sh is, depends on your OS. It may be bash, or something else. CentOS: # ll =s

Integration with Windows Mobile APP

2015-08-25 Thread Pankaj Sharma
Can we integrate windows mobile OS app with jenkins? if yes , then can we do it without certificate for testing purpose? -- 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

RE: Bash and hard-bracket tests

2015-08-25 Thread Rob Mandeville
I’m using Ubuntu, and have never heard of dash (though I just checked and verified that /bin/sh is a symlink to it). Are you saying that, if no shebang is given, the build step ignores the SHELL variable and runs /bin/sh –ex? This would explain much. --Rob From: jenkinsci-users@googlegroups.

Re: Get Jenkins Working with Private Repo

2015-08-25 Thread Pratik Dhandharia
So this means, that Jenkins invokes shell git command, when it is trying to poll SCM? I am in middle of testing this approach of using credential.helper. Thanks! On Monday, August 24, 2015 at 3:52:47 PM UTC-4, rginga wrote: > > I solved this problem on Windows by adding this as a buildstep bef

RE: Get Jenkins Working with Private Repo

2015-08-25 Thread Ginga, Dick
Not before a POLL but in the job before it pulls from git. Something else polls or triggers the build. I also think it can be done once but does not hurt to do again so I just always do it From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Pratik Dhan

RE: Get Jenkins Working with Private Repo

2015-08-25 Thread Ginga, Dick
Wincred is the Windows Credential store. You probably want something else for your host OS From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Pratik Dhandharia Sent: Tuesday, August 25, 2015 11:18 AM To: Jenkins Users Subject: Re: Get Jenkins Working wi

Re: Get Jenkins Working with Private Repo

2015-08-25 Thread Pratik Dhandharia
Also the command you suggested, git.exe config --global credential.helper wincred Here, wincred is your windows credential right? on the man page, I could see the credential.helper accepting only two arguments, git config --global credential.helper store git config --global credential.helper

Re: How to keep strict ordering of pipeline jobs / per node?

2015-08-25 Thread Steve K
Since there have been no replies to this discussion, I'm not very hopeful that there is an existing solution. A different approach is probably needed. Is there a way for a job that triggers a parameterized build on another project to determine the node where the parameterized build ran? -- You

Help: Running a Groovy Script containing @GrabResolver and @Grab hangs...

2015-08-25 Thread Jeff
I'm here grovelling for some help. I have a simple Groovy script that needs to import the RESTClient like so: *@GrabResolver(name='myrepo', root='http://nexus.mycompany.com/nexus/content/groups/myrepo/ ')* *@Grab('org.codehaus.groovy.module

Re: Help Running Jenkins (1.535+) on Solaris 10

2015-08-25 Thread Aditya Chamoli
Do a chmod 777 on the exploded war ,i.e., *.jenkins*. It will work, I m using jenkins 1.578 on Solaris10. On Thursday, November 7, 2013 at 7:14:51 AM UTC+5:30, thejo...@gmail.com wrote: > > Hi, > I used to be able to run jenkins.war on solaris 10 using: > $JAVA_HOME/bin/java -jar $JENKINS_HOME

Jenkins Python API Query

2015-08-25 Thread AB
Hello Everyone ! I am fairly new to Jenkins and off late have started playing with Python API where I am able to run builds remotely. I want to know if I can create a new job with choice of options such as "branch to build", "artifacts to backup", "Polling" etc so that I can create jobs/build