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 can you share jenkins project snapshots and configuration
details.

Thanks in advance.


On Thu, Oct 16, 2014 at 2:52 AM, Patricia Wright 
wrote:

> Here is how we accomplish this.
>
> We have a master job that runs all tests.
> That job gets called one of two ways:
> We have done this, but it has repercussions for every job out there.
> It's probably more complicated than you'd think.
>
> A high level overview, is that we have a master job that calls all of the
> tests.
>
> This master job is called one of two ways:
> * the standard revision control polling compile job.   (Normal continuous
> integration)
>
> * a user form, where someone can specify the location of the uncommitted
> changes. we call these "sandbox builds"
>the sandbox test job downloads the results of the users changes and
> injects them into the system with the additional parameters so that we can
> tell difference between normal tests and sandbox tests.  (a user can also
> pick a smaller subset of these tests)
>
> We've done extensive reporting modifications so that jobs with
> "SANDBOX=True" as a parameter are ignored as part of normal reporting, and
> i've set it such that developers do not get emails when 'sandbox job' tests
> fail - only the submitter of the original sandbox job does instead.
>
> We typically use this for major changes to the code base rather than
> run-of-the mill features and fixes.
>
> The other option is to make a second Jenkins environment, but then you
> have to sync the tests, and have more (virtual) hardware utilization..
> Pick your poison.
>
> 
> From: jenkinsci-users@googlegroups.com 
> on behalf of Les Mikesell 
> Sent: Wednesday, October 15, 2014 3:19 PM
> To: jenkinsci-users
> Subject: Re: ask for files before build
>
> 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 others for
> a jenkins build and only merge the work if the build succeeds?
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit
> https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=P%2FDbhm7GMaM%2FtPTZjlK%2F8lebpERVSZcf2B%2BqCod7tGs%3D%0A&m=HB4AAmkSIupknPm8QxNq4Q%2FCpcaIbYMUiPHi7aNpAE0%3D%0A&s=55a38c84d9a3218b0b75b727284f89856bc630ab8cc048fe1abb4ad644140b12
> .
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/p7wU_66T76M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks and regards--
Niraj Nandane(Vit pune)

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 ACL permission system is in place. I find it helpful to
run this after a plugin update, I see the new versions of the plugins
in the jobs/*/config.xml. I'm using Jenkins LTS 1.565.3.



On Wed, Oct 15, 2014 at 5:56 PM, Darragh Bailey  wrote:
>
> 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 the configure page for some jobs have been able to confirm that
> simply saving the job appears to sort the problem out. I suspect that this
> forces the correct configuration options to be set.
>
>
> I've tried using the script console to iteratively call 'job.save()' and
> that doesn't appear to have the same effect, I'm guessing it requires
> putting the current configuration through the latest forms and saving the
> result to get a working config. Where as just calling save writes the
> current stored config to disk without it going through any of the form
> validation code in the plugins.
>
>
> Is it possible to mass trigger a save for each job defined? Have close to
> 2000, so doing this manually to catch the few broken ones is a bit of a
> chore. I've tried mechanize with the following in python:
>
> ###
> import mechanize
> import base64
>
> br = mechanize.Browser()
> username = ""
> apitoken = ""
> auth = 'Basic ' + base64.encodestring('%s:%s' % (username, apitoken))[:-1]
> auth_header = ('Authorization', auth)
> br.addheaders = [auth_header]
> br.set_handle_robots(False)
> br.set_proxies({})
>
> br.open("http://myjenkins/job/myjobname/configure";)
>
> br.select_form(name="config")
> br.submit(name="Submit")
>
> ###
>
> And all I see in response is "mechanize._response.httperror_seek_wrapper:
> HTTP Error 400: This page expects a form submission". So it's not a simple
> straight forward submission.
>
> Any other way to essentially force the job configs to be updated based on
> the latest plugin options via the UI?
>
> --
> Darragh
>
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 the configure page for some jobs have been able to confirm that 
simply saving the job appears to sort the problem out. I suspect that this 
forces the correct configuration options to be set.


I've tried using the script console to iteratively call 'job.save()' and 
that doesn't appear to have the same effect, I'm guessing it requires 
putting the current configuration through the latest forms and saving the 
result to get a working config. Where as just calling save writes the 
current stored config to disk without it going through any of the form 
validation code in the plugins.


Is it possible to mass trigger a save for each job defined? Have close to 
2000, so doing this manually to catch the few broken ones is a bit of a 
chore. I've tried mechanize with the following in python:

###
import mechanize
import base64

br = mechanize.Browser()
username = ""
apitoken = ""
auth = 'Basic ' + base64.encodestring('%s:%s' % (username, apitoken))[:-1]
auth_header = ('Authorization', auth)
br.addheaders = [auth_header]
br.set_handle_robots(False)
br.set_proxies({})

br.open("http://myjenkins/job/myjobname/configure";)

br.select_form(name="config")
br.submit(name="Submit")

###

And all I see in response is "mechanize._response.httperror_seek_wrapper: 
HTTP Error 400: This page expects a form submission". So it's not a simple 
straight forward submission.

Any other way to essentially force the job configs to be updated based on 
the latest plugin options via the UI?

--
Darragh


-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 aswell?

I really don't want to have to go into the Jenkins 'Configure System' 
screen, I'd really prefer to script it.

Any ideas??

Stuart

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 others for
a jenkins build and only merge the work if the build succeeds?

-- 
   Les Mikesell
 lesmikes...@gmail.com

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 is started - Mark's suggestion tells you how to do
> that.
>
>
>
> Perhaps you can explain more what you are trying to achieve here. Do you
> want to test changes before they are checked in? Or something else? What's
> in the file you want the user to upload?
>
>
>
> Matthew
>
>   *From:* niraj nandane [mailto:niraj.nand...@gmail.com]
> *Sent:* 15 October 2014 14:03
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: ask for files before build
>
>
>
> 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
> 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#ParameterizedBuild-Fileparameter
>
>
>
> Mark Waite
>
>
>
> On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane 
> wrote:
>
> 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 plugin called "copy-to-slave"
> but we need to give abolute path instead i want a file opener which will
> show UI to choose a file.
> Any help would be greatly appreciated
>
>
>
>
>
>
> --
>
> This e-mail and any attachments may contain confidential, copyright and or
> privileged material, and are for the use of the intended addressee only. If
> you are not the intended addressee or an authorised recipient of the
> addressee please notify us of receipt by returning the e-mail and do not
> use, copy, retain, distribute or disclose the information in or attached to
> the e-mail.
> Any opinions expressed within this e-mail are those of the individual and
> not necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for any
> damage which you may sustain as a result of software viruses which may be
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England
> and Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/p7wU_66T76M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 job's build steps or a matrix job if you need
multiple variations of the same build.  Build-flow is only needed when
you need to orchestrate some combination of jobs that simple chaining
or a matrix won't handle.

-- 
   Les Mikesell
 lesmikes...@gmail.com

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 a sandbox build that uses changes from
your environment against a selected build and version on server. I am not
sure that there is a Jenkins plugin that does this.



On 15 October 2014 15:08,  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 is started – Mark’s suggestion tells you how to do
> that.
>
>
>
> Perhaps you can explain more what you are trying to achieve here. Do you
> want to test changes before they are checked in? Or something else? What’s
> in the file you want the user to upload?
>
>
>
> Matthew
>
>   *From:* niraj nandane [mailto:niraj.nand...@gmail.com]
> *Sent:* 15 October 2014 14:03
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: ask for files before build
>
>
>
> 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
> 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#ParameterizedBuild-Fileparameter
>
>
>
> Mark Waite
>
>
>
> On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane 
> wrote:
>
> 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 plugin called "copy-to-slave"
> but we need to give abolute path instead i want a file opener which will
> show UI to choose a file.
> Any help would be greatly appreciated
>
>
>
>
>
>
> --
>
> This e-mail and any attachments may contain confidential, copyright and or
> privileged material, and are for the use of the intended addressee only. If
> you are not the intended addressee or an authorised recipient of the
> addressee please notify us of receipt by returning the e-mail and do not
> use, copy, retain, distribute or disclose the information in or attached to
> the e-mail.
> Any opinions expressed within this e-mail are those of the individual and
> not necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for any
> damage which you may sustain as a result of software viruses which may be
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England
> and Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>
>
>  --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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-pep8
py.test --junitxml=testreport.xml --cov TestCiApp tests/ --cov-report xml 

if add below command, then I am getting following error:

pylint --msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}' TestCiApp 
> pylint.out 

(or)

py.test --junitxml=testreport.xml --cov TestCiApp tests/ --cov-report xml 
--pep8

(or)

pep8 TestCiApp > pep8_report.txt


I am getting error as "Virtualenv Builder" marked ad failure. Below is 
output in the console for pylint:

C:\Jenkins\jobs\TestCiApp\workspace>pylint 
--msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}'  TestCiApp   
1>pylint.out 
No config file found, using default configuration

C:\Jenkins\jobs\TestCiApp\workspace>exit 21 
Build step 'Virtualenv Builder' marked build as failure
Skipping Cobertura coverage report as build was not UNSTABLE or better ...
Recording test results
Finished: FAILURE


Could anyone help me to solve this..

Thanks and Regards,
Sathishkumar D



-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 more what you are trying to achieve here. Do you want 
to test changes before they are checked in? Or something else? What's in the 
file you want the user to upload?

Matthew
From: niraj nandane [mailto:niraj.nand...@gmail.com]
Sent: 15 October 2014 14:03
To: jenkinsci-users@googlegroups.com
Subject: Re: ask for files before build

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 
mailto:mark.earl.wa...@gmail.com>> 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 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#ParameterizedBuild-Fileparameter

Mark Waite

On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane 
mailto:niraj.nand...@gmail.com>> wrote:
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 plugin called "copy-to-slave" but we need to 
give abolute path instead i want a file opener which will show UI to choose a 
file.
Any help would be greatly appreciated





-- 

This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.

Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 

Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.

Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

 







-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 your
> own code to do what the dsl functions would have done.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/DMz2tXSAxlM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks and regards--
Niraj Nandane(Vit pune)

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
> 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#ParameterizedBuild-Fileparameter
>
> Mark Waite
>
> On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane 
> wrote:
>
>> 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 plugin called "copy-to-slave"
>> but we need to give abolute path instead i want a file opener which will
>> show UI to choose a file.
>> Any help would be greatly appreciated
>>
>> --
>> 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
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/p7wU_66T76M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks and regards--
Niraj Nandane(Vit pune)

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 your
own code to do what the dsl functions would have done.

-- 
   Les Mikesell
 lesmikes...@gmail.com

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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#ParameterizedBuild-Fileparameter

Mark Waite

On Wed, Oct 15, 2014 at 6:45 AM, niraj nandane 
wrote:

> 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 plugin called "copy-to-slave"
> but we need to give abolute path instead i want a file opener which will
> show UI to choose a file.
> Any help would be greatly appreciated
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 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("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 showing error.
>>
>> Started by user anonymous 
>> 
>> ERROR: Failed to run DSL Scriptgroovy.lang.MissingMethodException 
>> :
>>  No signature of method: com.cloudbees.plugins.flow.FlowDelegate.shell()
>> is applicable for argument types: (java.lang.String) values: [muscript.sh]
>>
>>
>> can anyone tell me ? its urgent
>>
>> --
>> 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
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Website: http://earl-of-code.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/DMz2tXSAxlM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks and regards--
Niraj Nandane(Vit pune)

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 plugin called "copy-to-slave" 
but we need to give abolute path instead i want a file opener which will 
show UI to choose a file.
Any help would be greatly appreciated

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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("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 showing error.
>
> Started by user anonymous 
> 
> ERROR: Failed to run DSL Scriptgroovy.lang.MissingMethodException 
> :
>  No signature of method: com.cloudbees.plugins.flow.FlowDelegate.shell()
> is applicable for argument types: (java.lang.String) values: [muscript.sh]
>
>
> can anyone tell me ? its urgent
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Website: http://earl-of-code.com

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:51 UTC+1, manasa a wrote:
>
> Hi,
>
> When am running build in jenkins, am getting following error.
>
> error: "Test reports were found but none of them are new. Did tests run?"
>
>
> Can anyone suggest a solution...THANKS IN ADVANCE
>
>

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 14 October 2014 21:48:15 UTC+1, Richard Bywater wrote:
>
> How long have you waited for it to start a new node? I've found it can 
> take quite a while (minutes) which apparently is caused by 
> https://issues.jenkins-ci.org/browse/JENKINS-24752. Not sure if thats the 
> case in your instance though.
>
> If you have a label which only contains docker providers does it work?
>
> Richard.
>
> On Wed, Oct 15, 2014 at 1:10 AM, Daniel Laird  > wrote:
>
>> All,
>>
>> I am using the docker-plugin and provisioning containers as I require 
>> them.
>> I am using the latest LTS Jenkins release.
>>
>> I have some non cloud based slaves with a label of ubuntu_12.04 and I 
>> also use this label for the docker containers.
>> If I take all the non-cloud slaves offline (which is my goal).
>> Then Jenkins fails to launch a slave on the cloud.
>>
>> I get lots of debug suggesting that there is a need for a slave:
>>
>> Current time: Oct 14, 2014 1:07:52 PM BST. Next execution (DIFF) in 24,780 
>> seconds which is Oct 14, 2014 8:00:52 PM BST
>>
>> Oct 14, 2014 1:07:55 PM FINE hudson.slaves.NodeProvisioner
>>
>> Excess workload 1.0 detected. (planned 
>> capacity=0.0,Qlen=0.3694,idle=0.0&0,total=0m,=0.5)
>>
>> Oct 14, 2014 1:08:05 PM FINE hudson.slaves.NodeProvisioner
>>
>> Excess workload 1.0 detected. (planned 
>> capacity=0.0,Qlen=0.4326,idle=0.0&0,total=0m,=0.5)
>>
>> Oct 14, 2014 1:08:15 PM FINE hudson.slaves.NodeProvisioner
>>
>> Excess workload 1.0 detected. (planned 
>> capacity=0.0,Qlen=0.489,idle=0.0&0,total=0m,=0.5)
>>
>> Oct 14, 2014 1:08:25 PM FINE hudson.slaves.NodeProvisioner
>>
>> Excess workload 1.0 detected. (planned 
>> capacity=0.0,Qlen=0.5404,idle=0.0&0,total=0m,=0.5)
>>
>> Oct 14, 2014 1:08:35 PM FINE hudson.slaves.NodeProvisioner
>>
>> Excess workload 1.0 detected. (planned 
>> capacity=0.0,Qlen=0.5863,idle=0.0&0,total=0m,=0.5)
>>
>>
>> I have enabled the following debug:
>>
>> com.nirima
>>
>> hudson.plugins
>>
>> hudson.slaves
>>
>>
>> And I am getting no more useful debug.
>>
>> What do I have to do to get a Slave created? Is it a problem with the 
>> algorithm or the plugin?
>>
>>
>> Hope you can help
>>
>> Dan
>>
>>  -- 
>> 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 
>> email to jenkinsci-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:
>
> 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.10Auto 
> " build number 212 
> 
>
> originally caused by:
>
>
>
> Isn’t that what you are asking for?
>
>
>
>
>
> *From:* Panikera Raj [mailto:panikera.raj...@gmail.com]
> *Sent:* 15 October 2014 10:07
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Can we print Master name in slave machine
>
>
>
> 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 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 answer my previous question: “When you say you want to print the
> “master name”, what exactly do you want to print?” Provide some sample
> output.
>
>
>
>
>
> *From:* Panikera Raj [mailto:panikera.raj...@gmail.com]
> *Sent:* 15 October 2014 09:43
>
>
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Can we print Master name in slave machine
>
>
>
> 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 project "Iphone7.10Auto 
> " build number 212 
> 
>
> originally caused by:
>
> Here *Iphone7.4Auto* , *Iphone7.10Auto* are Master project names
>
> My concern is when those two masters are executing on slave, I need to
> find out every time who is running. I am using shell script to get build
> generate. Is there a way where I can print master name in Shell Script
>
>   Regards,
>
> Panikera
>
>
>
>
>
> On Tue, Oct 14, 2014 at 5:19 PM, Eric Engel  wrote:
>
> You could print the environment variable JENKINS_URL in a pre-build step.
> The JENKINS_URL contains at least the domain name of the master, which then
> may be parsed for further use.
>
>
>
> Regards
>
> Eric
>
>
>
> *Von:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *Im Auftrag von *Laurent Malvert
> *Gesendet:* Dienstag, 14. Oktober 2014 12:58
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* Re: Can we print Master name in slave machine
>
>
>
> From Rajashekar's last message, I suppose he wants to see in the build
> console/log on what node the current building is running, and also to which
> master this particular node is connected.
>
> I don't quite understand why one would need this, but I suppose if you
> have a swarm of nodes that may connect to several servers it could be
> helpful.
>
>
>
> No idea on a way to do this though.
>
>
>
> On Tue, Oct 14, 2014 at 12:21 PM,  wrote:
>
> When you say you want to print the “master name”, what exactly do you want
> to print? And where / when do you want to print it?
>
> I don’t understand what you are trying to achieve here – can you explain
> in more detail?
>
>
>
> *From:* Panikera Raj [mailto:panikera.raj...@gmail.com]
> *Sent:* 14 October 2014 11:02
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Can we print Master name in slave machine
>
>
>
> Hi All,
>
> Any update on this...
>
> here is senario:
>
> Started by upstream project "Iphone7.4Auto 
> " build number 1527 
> 
>
> originally caused by:
>
> Started by upstream project "Iphone7.10Auto 
> " build number 212 
> 
>
> originally caused by:
>
>
>
> I want print master name
>
>
> Regards,
>
> Rajashekar P
>
>
>
>
>
>
>
>
>
> On Fri, Oct 10, 2014 at 12:31 PM, Panikera Raj 
> wrote:
>
> Hi All,
>
> Is there a way, where I can print Master name in slave machine. Since Two
> master projects will trigger one slave project.
>
> Please help me on this.
>
> Regards,
> Rajashekar P
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this

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 child POM inheriting from a snapshot version of the previously 
mentioned parent POM. This child POM has defined the property 
"core.version", however Jenkins fails during the build of the child POM 
with the next error:

Downloaded artifact 
http://mynexus:8081/nexus/content/repositories/myproject-snapshots//com/mycompany/myproject/parent/parent/1.4.2-SNAPSHOT/parent-1.4.2-20141015.092032-3.pom
*ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-users@googlegroups.com*
java.lang.IllegalStateException: Failed to build parent project for 
com.mycompany.myproject.mymodule:parent:pom:1.4.0-SNAPSHOT
at 
org.apache.maven.project.MavenProject.getParent(MavenProject.java:378)
at hudson.maven.PomInfo.(PomInfo.java:133)
at 
hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1247)
at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1220)
at 
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:997)
at hudson.FilePath.act(FilePath.java:914)
at hudson.FilePath.act(FilePath.java:887)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:862)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
at hudson.model.Run.execute(Run.java:1677)
at 
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at 
hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:230)
Caused by: org.apache.maven.project.ProjectBuildingException: Some problems 
were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for 
com.mycompany.myproject.core:myproject-container:tar.gz must be a valid 
version but is '${core.version}'. @ line 1129, column 30

at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:176)
at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:309)
at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:267)
at 
org.apache.maven.project.MavenProject.getParent(MavenProject.java:374)
... 13 more
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 
problem was encountered while building the effective model for 
com.mycompany.myproject.parent:parent:1.4.2-SNAPSHOT
[ERROR] 'dependencies.dependency.version' for 
com.mycompany.myproject.core:myproject-container:tar.gz must be a valid 
version but is '${core.version}'. @ line 1129, column 30

at 
org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195)
at 
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:419)
at 
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:371)
at 
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:362)
at 
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:142)
... 16 more
project=hudson.maven.MavenModuleSet@626420e7[MYPROJECT_My-Module]
project.getModules()=[hudson.maven.MavenModule@564851e0[MYPROJECT_My-Module/com.mycompany.myproject.mymodule:api][MYPROJECT_My-Module/com.mycompany.myproject.mymodule:api][relativePath:api],
 
hudson.maven.MavenModule@24fa8765[MYPROJECT_My-Module/com.mycompany.myproject.mymodule:assembly][MYPROJECT_My-Module/com.mycompany.myproject.mymodule:assembly][relativePath:assembly],
 
hudson.maven.MavenModule@51470159[MYPROJECT_My-Module/com.mycompany.myproject.mymodule:features][MYPROJECT_My-Module/com.mycompany.myproject.mymodule:features][relativePath:features],
 
hudson.maven.MavenModule@f4df192[MYPROJECT_My-Module/com.mycompany.myproject.mymodule:integration][MYPROJECT_My-Module/com.mycompany.myproject.mymodule:integration][relativePath:integration],
 
hudson.maven.MavenModule@6afb926f[MYPROJECT_My-Module/com.mycompany.myproject.mymodule:model][MYPROJECT_My-Module/com.mycompany.myproject.mymodule:model][relativePath:model],
 
hudson.maven.MavenModule@7c1c9ba4[MYPROJECT_My-Module/com.mycompany.myproject.mymodule:mymodule][MYPROJECT_My-Module/com.mycompany.myproject.mymodule:mymodule][relativePath:mymodule],
 
hudson.maven.MavenModule@2f57cba6[MYPROJECT_My-Module/com.mycompany

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 showing error.

Started by user anonymous 

ERROR: Failed to run DSL Scriptgroovy.lang.MissingMethodException 
:
 No signature of method: com.cloudbees.plugins.flow.FlowDelegate.shell() 
is applicable for argument types: (java.lang.String) values: [muscript.sh]


can anyone tell me ? its urgent

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.10Auto" build number 
212

originally caused by:

Isn’t that what you are asking for?


From: Panikera Raj [mailto:panikera.raj...@gmail.com]
Sent: 15 October 2014 10:07
To: jenkinsci-users@googlegroups.com
Subject: Re: Can we print Master name in slave machine

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, 
mailto:matthew.web...@diamond.ac.uk>> 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 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 answer my previous question: “When you say you want to print the 
“master name”, what exactly do you want to print?” Provide some sample output.


From: Panikera Raj 
[mailto:panikera.raj...@gmail.com]
Sent: 15 October 2014 09:43

To: jenkinsci-users@googlegroups.com
Subject: Re: Can we print Master name in slave machine

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 project 
"Iphone7.10Auto" build number 
212

originally caused by:
Here Iphone7.4Auto , Iphone7.10Auto are Master project names
My concern is when those two masters are executing on slave, I need to find out 
every time who is running. I am using shell script to get build generate. Is 
there a way where I can print master name in Shell Script

Regards,
Panikera


On Tue, Oct 14, 2014 at 5:19 PM, Eric Engel mailto:e...@ivu.de>> 
wrote:
You could print the environment variable JENKINS_URL in a pre-build step. The 
JENKINS_URL contains at least the domain name of the master, which then may be 
parsed for further use.

Regards
Eric

Von: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 Im Auftrag von Laurent Malvert
Gesendet: Dienstag, 14. Oktober 2014 12:58
An: jenkinsci-users@googlegroups.com
Betreff: Re: Can we print Master name in slave machine

>From Rajashekar's last message, I suppose he wants to see in the build 
>console/log on what node the current building is running, and also to which 
>master this particular node is connected.
I don't quite understand why one would need this, but I suppose if you have a 
swarm of nodes that may connect to several servers it could be helpful.

No idea on a way to do this though.

On Tue, Oct 14, 2014 at 12:21 PM, 
mailto:matthew.web...@diamond.ac.uk>> wrote:
When you say you want to print the “master name”, what exactly do you want to 
print? And where / when do you want to print it?
I don’t understand what you are trying to achieve here – can you explain in 
more detail?

From: Panikera Raj 
[mailto:panikera.raj...@gmail.com]
Sent: 14 October 2014 11:02
To: jenkinsci-users@googlegroups.com
Subject: Re: Can we print Master name in slave machine

Hi All,
Any update on this...
here is senario:

Started by upstream project 
"Iphone7.4Auto" build number 
1527

originally caused by:

Started by upstream project 
"Iphone7.10Auto" build number 
212

originally caused by:


I want print master name


Regards,

Rajashekar P





On Fri, Oct 10, 2014 at 12:31 PM, Panikera Raj 
mailto:panikera.raj...@gmail.com>> wrote:
Hi All,
Is there a way, where I can print Master name in slave machine. Since Two 
master projects will trigger one slave project.
Please help me on this.
Regards,
Rajashekar P

--
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 email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Laurent Malvert
--
You received this me

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 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 answer my previous question: “When you say you want to print the
> “master name”, what exactly do you want to print?” Provide some sample
> output.
>
>
>
>
>
> *From:* Panikera Raj [mailto:panikera.raj...@gmail.com]
> *Sent:* 15 October 2014 09:43
>
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Can we print Master name in slave machine
>
>
>
> 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 project "Iphone7.10Auto 
> " build number 212 
> 
>
> originally caused by:
>
>  Here *Iphone7.4Auto* , *Iphone7.10Auto* are Master project names
>
> My concern is when those two masters are executing on slave, I need to
> find out every time who is running. I am using shell script to get build
> generate. Is there a way where I can print master name in Shell Script
>
>
>   Regards,
>
> Panikera
>
>
>
>
>
> On Tue, Oct 14, 2014 at 5:19 PM, Eric Engel  wrote:
>
> You could print the environment variable JENKINS_URL in a pre-build step.
> The JENKINS_URL contains at least the domain name of the master, which then
> may be parsed for further use.
>
>
>
> Regards
>
> Eric
>
>
>
> *Von:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *Im Auftrag von *Laurent Malvert
> *Gesendet:* Dienstag, 14. Oktober 2014 12:58
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* Re: Can we print Master name in slave machine
>
>
>
> From Rajashekar's last message, I suppose he wants to see in the build
> console/log on what node the current building is running, and also to which
> master this particular node is connected.
>
> I don't quite understand why one would need this, but I suppose if you
> have a swarm of nodes that may connect to several servers it could be
> helpful.
>
>
>
> No idea on a way to do this though.
>
>
>
> On Tue, Oct 14, 2014 at 12:21 PM,  wrote:
>
> When you say you want to print the “master name”, what exactly do you want
> to print? And where / when do you want to print it?
>
> I don’t understand what you are trying to achieve here – can you explain
> in more detail?
>
>
>
> *From:* Panikera Raj [mailto:panikera.raj...@gmail.com]
> *Sent:* 14 October 2014 11:02
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Can we print Master name in slave machine
>
>
>
> Hi All,
>
> Any update on this...
>
> here is senario:
>
>  Started by upstream project "Iphone7.4Auto 
> " build number 1527 
> 
>
> originally caused by:
>
> Started by upstream project "Iphone7.10Auto 
> " build number 212 
> 
>
> originally caused by:
>
>
>
> I want print master name
>
>
> Regards,
>
> Rajashekar P
>
>
>
>
>
>
>
>
>
> On Fri, Oct 10, 2014 at 12:31 PM, Panikera Raj 
> wrote:
>
> Hi All,
>
> Is there a way, where I can print Master name in slave machine. Since Two
> master projects will trigger one slave project.
>
> Please help me on this.
>
> Regards,
> Rajashekar P
>
>
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> Laurent Malvert
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> 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
> email

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 answer my previous question: “When you say you want to print the 
“master name”, what exactly do you want to print?” Provide some sample output.


From: Panikera Raj [mailto:panikera.raj...@gmail.com]
Sent: 15 October 2014 09:43
To: jenkinsci-users@googlegroups.com
Subject: Re: Can we print Master name in slave machine

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 project 
"Iphone7.10Auto" build number 
212

originally caused by:

Here Iphone7.4Auto , Iphone7.10Auto are Master project names
My concern is when those two masters are executing on slave, I need to find out 
every time who is running. I am using shell script to get build generate. Is 
there a way where I can print master name in Shell Script


Regards,
Panikera


On Tue, Oct 14, 2014 at 5:19 PM, Eric Engel mailto:e...@ivu.de>> 
wrote:
You could print the environment variable JENKINS_URL in a pre-build step. The 
JENKINS_URL contains at least the domain name of the master, which then may be 
parsed for further use.

Regards
Eric

Von: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 Im Auftrag von Laurent Malvert
Gesendet: Dienstag, 14. Oktober 2014 12:58
An: jenkinsci-users@googlegroups.com
Betreff: Re: Can we print Master name in slave machine

>From Rajashekar's last message, I suppose he wants to see in the build 
>console/log on what node the current building is running, and also to which 
>master this particular node is connected.
I don't quite understand why one would need this, but I suppose if you have a 
swarm of nodes that may connect to several servers it could be helpful.

No idea on a way to do this though.

On Tue, Oct 14, 2014 at 12:21 PM, 
mailto:matthew.web...@diamond.ac.uk>> wrote:
When you say you want to print the “master name”, what exactly do you want to 
print? And where / when do you want to print it?
I don’t understand what you are trying to achieve here – can you explain in 
more detail?

From: Panikera Raj 
[mailto:panikera.raj...@gmail.com]
Sent: 14 October 2014 11:02
To: jenkinsci-users@googlegroups.com
Subject: Re: Can we print Master name in slave machine

Hi All,
Any update on this...
here is senario:


Started by upstream project 
"Iphone7.4Auto" build number 
1527

originally caused by:

Started by upstream project 
"Iphone7.10Auto" build number 
212

originally caused by:


I want print master name


Regards,

Rajashekar P





On Fri, Oct 10, 2014 at 12:31 PM, Panikera Raj 
mailto:panikera.raj...@gmail.com>> wrote:
Hi All,
Is there a way, where I can print Master name in slave machine. Since Two 
master projects will trigger one slave project.
Please help me on this.
Regards,
Rajashekar P

--
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 email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Laurent Malvert
--
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 email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 email 
to 
jenkinsci-users+unsubscr...@googlegroups.com

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 project "Iphone7.10Auto
" build number 212

originally caused by:


Here *Iphone7.4Auto* , *Iphone7.10Auto* are Master project names

My concern is when those two masters are executing on slave, I need to find
out every time who is running. I am using shell script to get build
generate. Is there a way where I can print master name in Shell Script



Regards,
Panikera


On Tue, Oct 14, 2014 at 5:19 PM, Eric Engel  wrote:

>  You could print the environment variable JENKINS_URL in a pre-build
> step. The JENKINS_URL contains at least the domain name of the master,
> which then may be parsed for further use.
>
>
>
> Regards
>
> Eric
>
>
>
> *Von:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *Im Auftrag von *Laurent Malvert
> *Gesendet:* Dienstag, 14. Oktober 2014 12:58
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* Re: Can we print Master name in slave machine
>
>
>
> From Rajashekar's last message, I suppose he wants to see in the build
> console/log on what node the current building is running, and also to which
> master this particular node is connected.
>
> I don't quite understand why one would need this, but I suppose if you
> have a swarm of nodes that may connect to several servers it could be
> helpful.
>
>
>
> No idea on a way to do this though.
>
>
>
> On Tue, Oct 14, 2014 at 12:21 PM,  wrote:
>
> When you say you want to print the “master name”, what exactly do you want
> to print? And where / when do you want to print it?
>
> I don’t understand what you are trying to achieve here – can you explain
> in more detail?
>
>
>
> *From:* Panikera Raj [mailto:panikera.raj...@gmail.com]
> *Sent:* 14 October 2014 11:02
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Can we print Master name in slave machine
>
>
>
> Hi All,
>
> Any update on this...
>
> here is senario:
>
>
>  Started by upstream project "Iphone7.4Auto 
> " build number 1527 
> 
>
> originally caused by:
>
> Started by upstream project "Iphone7.10Auto 
> " build number 212 
> 
>
> originally caused by:
>
>
>
> I want print master name
>
>
> Regards,
>
> Rajashekar P
>
>
>
>
>
>
>
>
>
> On Fri, Oct 10, 2014 at 12:31 PM, Panikera Raj 
> wrote:
>
> Hi All,
>
> Is there a way, where I can print Master name in slave machine. Since Two
> master projects will trigger one slave project.
>
> Please help me on this.
>
> Regards,
> Rajashekar P
>
>
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> Laurent Malvert
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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,

Jennifer

-- 
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 email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.