Re: How to get all builds of a project via API

2013-07-03 Thread Tim Ford
curl -d 'script=println Jenkins.instance.getItem(jobName).builds.each{ println "${it.number}:${it.startTimeInMillis}:${it.duration}:${it.result}" };' http://localhost:8080/scriptText On Wednesday, July 3, 2013 6:55:17 AM UTC-5, Dirk Heinrichs wrote: > > Hi, > > > > I’ve got a small Groovy sc

Re: How to keep Unix process alive after job is completed?

2013-07-03 Thread Tim Ford
John, your issue might be unrelated to Jenkins. See: http://stackoverflow.com/questions/285015/linux-prevent-a-background-process-from-being-stopped-after-closing-ssh-client On Wednesday, July 3, 2013 5:42:10 AM UTC-5, John Vacz wrote: > > We have a job executing a shell script (on a slave) t

Re: Can master checkout return variables available to slave builds

2013-06-30 Thread Tim Ford
I might use Groovy for this. Install the Groovy Pluginand write a Groovy script that calls commands to update the git/hg repos and which can then parse some command output to get the hashes. Once you have the hashes in Groovy variable