Re: ask for files before build

2014-10-15 Thread niraj nandane
Hi Patricia, We are also looking the same solution. Can you please let us know how you have achieved below task: 1. How you are making sandbox=true builds ,which plugins you are using to achieve this? 2."a user can also pick a smaller subset of these tests" how you have achieve this? If possible c

Re: force mass job save

2014-10-15 Thread jieryn
I don't have the same findings as you. I @daily have an infra_save_items job with an Execute system Groovy script of: for (item in hudson.model.Hudson.instance.items) { println("Saving " + item); item.save(); } Not only does this work, but it does it quite quick; it also preserves any sort of

force mass job save

2014-10-15 Thread Darragh Bailey
Just went through an upgrade from an old version of jenkins/plugins and discovered that some jobs have not had their XML properly updated. This is resulting in odd behaviour where triggered jobs do not appear in the UI and are not readable, but the associated files appear on-disk. By going to

Configure Plugins via Jenkins CLI

2014-10-15 Thread Stuart Milton
Hi Guys, I've been working with Jenkins for a while now, but am now trying to create a script to install Jenkins/Sonar etc to slowly work towards an automated CI Server Build. Anyway, I've added plugins via the CLI (sonar,Email-ext,sbt), wondered if its possible to configure these via a script

Re: ask for files before build

2014-10-15 Thread Les Mikesell
On Wed, Oct 15, 2014 at 1:36 PM, niraj nandane wrote: > Yes i want to check changes before checkin > Can't you just do a build on your local machine where you are doing the work? Why does jenkins need to be involved at this point? Or alternatively, why not commit to a branch that won't affect

RE: ask for files before build

2014-10-15 Thread niraj nandane
Yes i want to check changes before checkin On Oct 15, 2014 6:41 PM, wrote: > You can't prompt for a file in a build step, since at that point there > is no user to ask! The jobs is already running. > > If you want to prompt a user, then the only point it makes sense to do > that is when the job

Re: how to execute a shell script in build flow "flow" dsl section

2014-10-15 Thread Les Mikesell
On Wed, Oct 15, 2014 at 8:04 AM, niraj nandane wrote: > Yeah you are right Les but i am new in field of jenkins.Dont know about > groovy at all But you must be doing something relatively complicated to need build-flow at all. Maybe you should start with what you can't do with a single ordinary j

Re: ask for files before build

2014-10-15 Thread corneil.duples...@gmail.com
It looks to me like you want to verify build before checkin. Aren't you able to run the build locally? Jenkins in conjunction with git can reject pull-requests if the build fails. https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin Some other CI tools have support for

Pylint, Pep8 and violations

2014-10-15 Thread Sathishkumar Duraisamy
Hi All, I am new to Jenkins and I configuring it for python software with Pytest and pylint (*In windows7 system*). I followed http://www.alexconrad.org/2011/10/jenkins-and-python.html as reference. Virtualenv builder's command pip install pytest pip install pytest-cov pip install pytest-pep

RE: ask for files before build

2014-10-15 Thread Matthew.Webber
You can't prompt for a file in a build step, since at that point there is no user to ask! The jobs is already running. If you want to prompt a user, then the only point it makes sense to do that is when the job is started - Mark's suggestion tells you how to do that. Perhaps you can explain mor

Re: how to execute a shell script in build flow "flow" dsl section

2014-10-15 Thread niraj nandane
Yeah you are right Les but i am new in field of jenkins.Dont know about groovy at all On Wed, Oct 15, 2014 at 6:23 PM, Les Mikesell wrote: > On Wed, Oct 15, 2014 at 7:46 AM, niraj nandane > wrote: > > Yeah you are right. I have tried that but problem unnessary it is > increasing > > count of to

Re: ask for files before build

2014-10-15 Thread niraj nandane
Thanks Mark, this can help me but if there could any plugin as my requirement would be great On Wed, Oct 15, 2014 at 6:23 PM, Mark Waite wrote: > There isn't a way to prompt for a file to be copied during the build, but > maybe you could consider the File parameter from a parameterized build so

Re: how to execute a shell script in build flow "flow" dsl section

2014-10-15 Thread Les Mikesell
On Wed, Oct 15, 2014 at 7:46 AM, niraj nandane wrote: > Yeah you are right. I have tried that but problem unnessary it is increasing > count of total project. > I think the choices are to use build-flow with separate jobs for every step the dsl doesn't do directly, or use groovy build steps with

Re: ask for files before build

2014-10-15 Thread Mark Waite
There isn't a way to prompt for a file to be copied during the build, but maybe you could consider the File parameter from a parameterized build so that the person who starts the job can upload the file as part of starting the job. https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build#Pa

Re: how to execute a shell script in build flow "flow" dsl section

2014-10-15 Thread niraj nandane
Yeah you are right. I have tried that but problem unnessary it is increasing count of total project. On Wed, Oct 15, 2014 at 5:27 PM, Slide wrote: > I don't think the build flow supports running a shell script directly, you > would need to build() a job that executes the shell script. > > On Wed

ask for files before build

2014-10-15 Thread niraj nandane
My scenario is as follows.. I checkout the code in scm step. Then before going to build step i want a file opener popup which will read a file on my harddisk and copy into jobs workspace.This will allow me to check the build before checking in the changes in scm repository. I know there is plugi

Re: how to execute a shell script in build flow "flow" dsl section

2014-10-15 Thread Slide
I don't think the build flow supports running a shell script directly, you would need to build() a job that executes the shell script. On Wed, Oct 15, 2014 at 2:48 AM, niraj nandane wrote: > I have installed "Build Flow Plugin" and created a build flow project . > The commands like build("projec

Re: Publish JUnit test result report

2014-10-15 Thread teilo
Hi, have you checked the time sync between the master and slave? you will get this when Jenkins found test results but they are older then when the build started (that is they did not come from this build but are remenants of a previous build) Regards /James On Monday, 13 October 2014 14:03:

Re: Cloud slaves not being started by Jenkins

2014-10-15 Thread teilo
we found the latest jenkins and docker plugin work better together. Older versions would not always fire up a slave when they where supposed to - or fired up the wrong slave type! if you can upgrade to the next soon to be stable LTS and give it a go you may find it works better. On Tuesday, 1

RE: Can we print Master name in slave machine

2014-10-15 Thread corneil.duples...@gmail.com
A different question would be, why do you have multiple masters and why is it difficult to distinguish the slave activity? I would use different users profiles for the masters and will be able to distinguish activity that way. On 15 Oct 2014 11:31 AM, wrote: > Now I’m really confused. You said:

Problem building child POM inheriting from parent with dependency version being interpolated on the child POM

2014-10-15 Thread Jacob Mourelos
I have a parent POM where I define a maven profile containing in its dependency management section a dependency whose version is defined as a maven property "core.version". However this property is not defined in the parent POM itself, but it is supposed to be decalared in child POMs. There is a

how to execute a shell script in build flow "flow" dsl section

2014-10-15 Thread niraj nandane
I have installed "Build Flow Plugin" and created a build flow project . The commands like build("project-name") are working fine. I want to execute a shell script which is at /root/niraj/muscript.sh ,which build the system. so i am doing like this shell(" /root/niraj/muscript.sh") . But it is sho

RE: Can we print Master name in slave machine

2014-10-15 Thread Matthew.Webber
Now I’m really confused. You said: In slave logs it's printing as below. Started by upstream project "Iphone7.4Auto" build number 1527 originally caused by: Started by upstream project "Iphone7.10A

Re: Can we print Master name in slave machine

2014-10-15 Thread Panikera Raj
Hi Matthew, Thanks for quick help, Ok can we print name of job, name of an upstream job? Regards, Panikera On Wed, Oct 15, 2014 at 2:24 PM, wrote: > I’m quite confused about what it is exactly you are asking for. Are you > asking for the name of the master machine, or the name of a job, or

RE: Can we print Master name in slave machine

2014-10-15 Thread Matthew.Webber
I’m quite confused about what it is exactly you are asking for. Are you asking for the name of the master machine, or the name of a job, or the name of an upstream job? When you say “I need to find out who is running”, what do you mean? Does you project need to find out its own name? Can you ans

Re: Can we print Master name in slave machine

2014-10-15 Thread Panikera Raj
HI All, Thanks to one and all for responding on this. In slave logs it's printing as below. Started by upstream project "Iphone7.4Auto " build number 1527 originally caused by: Started by upstream pro

Configure logger for SVN connections

2014-10-15 Thread Jennifer Hofmeister
Hello! Jenkins has trouble connecting to our Subversion server. For troubleshooting, I want to set up one or more Subversion-related loggers, at least one that tracks Jenkins' attempts to connect to our Subversion server. Which packages would you recommend I set up to be logged? Thanks, Jenni