Multiple build's results to be reported on separate lines to Gerrit

2015-04-24 Thread Shambhu Sharma
Hi,

 I am new to Jenkins and Gerrit. I am using version of Gerrit 
(2.8.5)  Jenkins (1.596.2). I have written multiple jobs in jenkins with 
Gerrit event trigger patchset created. I wanted the results to be 
displayed on separate lines in Gerrit under reviewer tab. Please let me 
know how to achieve this. E.g., 
Job1: Commit message check
Job2: Build compile

In Gerrit, under reviewer I want verdict from both jobs to be displayed 
separately. i.e.

Reviewer Code-ReviewVerifiedJob1  
  Job2


Regards,
Shambhu.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2496c621-0e46-4473-a013-0a3772240d03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Git plugin: The following untracked working tree files would be overwritten by checkout

2015-04-24 Thread Tomhe


In some circumstances the git plugin fails during submodule update for us:


stderr: error: The following untracked working tree files would be overwritten 
by checkout: tool/scons/scons-LICENSEtool/scons/scons-README 
tool/scons/scons-time.pytool/scons/scons.py tool/scons/sconsign.py  
tool/scons/site_scons/site_init.py  
tool/scons/site_scons/site_tools/codecheck.py   
tool/scons/site_scons/site_tools/doxygen.py 
tool/scons/site_scons/site_tools/metrics.py 
tool/scons/site_scons/site_tools/qac.py 
tool/scons/site_scons/utilities.pyPlease move or remove them before you can 
switch branches.Aborting


Is it possible to configure the plugin to force the update of the submodules?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/358d5332-21d1-4124-8169-418c704aa211%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins slave restart

2015-04-24 Thread Mark Waite
Yes, that was what I was suggesting.

If your performance tests need enough consistency that the Jenkins slave
agent growth is a real problem, then it seems like you should consider not
executing the slave on the target node at all.  It seems like you may also
want to reboot the computer before starting the performance tests, and take
other measures to assure the computer is not affected by other programs
running on the machine unnecessarily (like virus scanners and corporate
administrative jobs and ...).

Mark Waite

On Fri, Apr 24, 2015 at 6:40 AM pra...@gmail.com wrote:

 Hi Mark,

 Thanks for your suggestion. We thought it was convenient to run Jenkins
 slave on the machine running the tests because Jenkins would show us the
 progress of the job while it is running and other nice to have information.

 Are you suggesting that we launch the target program using psexec from
 within Jenkins master? This definitely looks like a promising solution. We
 will give it a try if other options fail.

 For now we are using task scheduler to run Jenkins slave.jar. it seems to
 work.

 Thanks




 On Thursday, April 23, 2015 at 12:47:49 AM UTC+5:30, Mark Waite wrote:

 If you're running performance tests, isn't the presence of any other
 processes a risk to the repeatability of your performance test?

 Wouldn't it be better to use a Jenkins slave (or master) to launch the
 target program from a remote machine, without a Jenkins slave agent on the
 machine running  the tests?

 Mark Waite

 On Wed, Apr 22, 2015 at 8:17 AM Dunnigan, Terrence J 
 terrence@boeing.com wrote:

 Two thoughts.



 1)  When running Jenkins as a service, can you run as a user,
 instead of local system? And can you give that user permissions to your
 share?

 2)  From a command window, “shutdown /r /t 0” will restart the
 machine. If you’re not running as a service you’ll need to log in before
 the slave reconnects.



 Terry



 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On
 Behalf Of *pra...@gmail.com


 *Sent:* Wednesday, April 22, 2015 5:09 AM

 *To:* jenkins...@googlegroups.com
 *Subject:* Jenkins slave restart



 Hi,



 We have recently adopted Jenkins to manage performance testing lab which
 comprises of many performance testing servers.



 *A little background of the problem we have:*



 Lately we have been observing some discrepancy in the readings due to
 memory consumption of Jenkins slave - memory usage goes up and down.



 For reliability we need same readings when a single test is executed
 multiple times. But that doesn't seem to happen now after adopting Jenkins.



 We have observed that Jenkins slave memory usage increases gradually
 over a period of time and suspecting that this could be affecting the
 stability of the performance tests.



 *Question:*



 So now we want to figure out a way to restart Jenkins slave after every
 performance test we perform on the server. Using Jenkins slave as a service
 is preventing us to access some network shares so we were forced to start
 Jenkins slave using the java -jar option.

 Is there a way we can restart Jenkins slaves after every test run on the
 slave?



 I have also attached herewith the list of plugins I have installed.
 Please advise if any of these plugins could be causing the increasing
 memory usage of Jenkins slave.

 I can share more details about my setup if it helps.



 Thank you for your time and advice.



 Regards,

 Praneeth











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


 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/799ea334-37b4-4475-b317-37e8f4d6952c%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/799ea334-37b4-4475-b317-37e8f4d6952c%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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-use...@googlegroups.com.


 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D16A820%40XCH-PHX-205.sw.nos.boeing.com
 https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D16A820%40XCH-PHX-205.sw.nos.boeing.com?utm_medium=emailutm_source=footer
 .
 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.
 To view this discussion on the web visit
 

Re: Git plugin: The following untracked working tree files would be overwritten by checkout

2015-04-24 Thread Mark Waite
There is an Advanced submodule behaviours section under the Additional
Behaviours button in the git section of the job configuration page.  If
Recursively update submodules is checked, then it should update those
submodules.

If the additional behavior is added to clean before checkout, that may help
your case as well.

There are many, many ways that submodule configurations and parameters can
interact with the plugin, and there are very few automated tests of those
many different cases.  Automated test submissions to better test submodule
support in the git plugin and the git client plugin would certainly be
viewed positively.

There are some command line git versions (the 1.7.2.5 version included with
Debian 6, for instance), which aren't new enough to be as well behaved with
submodules as later versions of git.  Since that old version is not
officially supported with the git plugin (due to other gaps in
functionality), it is no surprise that it is not as well behaved as newer
versions of git.

There are two different pending pull requests which propose to always
include submodules in clean (git clean -xffd).  However, neither of the
pull requests have tests, and I'm not a user of submodules generally, so I
don't have enough interactive test experience to allow those changes into
the plugin without much more testing.

If you're interested in more reading about submodules, checkout, and clean,
consider:

https://issues.jenkins-ci.org/browse/JENKINS-7376
https://issues.jenkins-ci.org/browse/JENKINS-13910
https://issues.jenkins-ci.org/browse/JENKINS-7445
https://issues.jenkins-ci.org/browse/JENKINS-26660
https://issues.jenkins-ci.org/browse/JENKINS-27625
https://issues.jenkins-ci.org/browse/JENKINS-27082

The most upvoted request for the git plugin asks for credential support in
submodules:


Mark Waite

On Fri, Apr 24, 2015 at 3:46 AM Tomhe tom...@gmail.com wrote:

 In some circumstances the git plugin fails during submodule update for us:


 stderr: error: The following untracked working tree files would be 
 overwritten by checkout:   tool/scons/scons-LICENSE
 tool/scons/scons-README tool/scons/scons-time.pytool/scons/scons.py   
   tool/scons/sconsign.py  tool/scons/site_scons/site_init.py  
 tool/scons/site_scons/site_tools/codecheck.py   
 tool/scons/site_scons/site_tools/doxygen.py 
 tool/scons/site_scons/site_tools/metrics.py 
 tool/scons/site_scons/site_tools/qac.py 
 tool/scons/site_scons/utilities.pyPlease move or remove them before you can 
 switch branches.Aborting


 Is it possible to configure the plugin to force the update of the submodules?

  --
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/358d5332-21d1-4124-8169-418c704aa211%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/358d5332-21d1-4124-8169-418c704aa211%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHvbJO%2BUprNw-duTyqmJ%3DYToYHsNk1BY1kJefCAgLjSfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


jenkins draw up an snapshot (stop slave agent) (pstools)

2015-04-24 Thread Jonas Meier
Hello Jenkins Users,

in my company we use the build pipeline plugin for an update test.
Recently, we have an problem with the last job.
The job does create an snapshot of the slave.
Before jenkins starts to create the snapshot, jenkins kill the *jp2launcher* 
on the external server. 
(We use *pstools* to kill the slave agent)
*Psexec* shows no effect and the slave agent continues.

condensed:

   1. install snapshot
   2. test update
   3. stop slave agent
   4. do an snapshot


Sorry for my bad english.
I hope you can help me.

greetings from Germany
Jonas Meier


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7eb70055-afdd-412e-b749-dea2bcf42279%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Handling testcases involving reboot during execution of Job on Slave

2015-04-24 Thread Mark Waite
My apologies.  My description was wrong.  It makes it sound simpler than it
actually is, or at least it sounds simpler than the technique I'm actually
using to reboot a slave agent.

I reviewed the Jenkins job which I have that reboots a Windows machine in
hopes of reducing the number of times a job will fail due to busy files.
In that job, I have an ant script which schedules a reboot soon after the
current time.  That allows the job which schedules the reboot to complete
successfully.

It also requires that a subsequent job be configured to delay its start
long enough for the computer to reboot and reconnect the Jenkins slave.  I
suspect you'll need to make guesses and watch behavior to decide the length
of that delay.

The build.xml file for the reboot task contains this:

  !-- StackOverflow special thanks for this technique --
  scriptdef name=generateguid language=javascript
attribute name=property /
![CDATA[project.setProperty( attributes.get( property ),
java.util.UUID.randomUUID() );]]
  /scriptdef

  target name=reboot description=Reboot this computer
tstamp
  format property=current.time pattern=HH:mm/
/tstamp
tstamp
  !-- Schedule reboot 1 minute from now --
  format property=reboot.time pattern=HH:mm offset=2
unit=minute/
/tstamp
echoIt is ${current.time}, rebooting at ${reboot.time}/echo
generateguid property=guid /
exec osfamily=windows executable=schtasks.exe failonerror=true
  arg value=/Create/
  arg value=/RU/ arg value=Reboot/ !-- user name of an
Administrator user --
  arg value=/RP/ arg value=/ !-- insert the password of your
Reboot user --
  arg value=/SC/ arg value=Once/
  arg value=/ST/ arg value=${reboot.time}/
  arg value=/TN/ arg value=Reboot-${guid}/
  arg value=/TR/ arg value=shutdown /r /t 2/
/exec
  /target

Mark Waite

On Fri, Apr 24, 2015 at 1:28 AM Ankit Singhal ankising...@gmail.com wrote:

 Hi Mark,

 Thanks for the reply. Can you please help me in detailing the steps of
 doing it. I tried following


- Created a build-flow name  Start test
- After that created 3 freestyle projects.
- Project1 : Before Reboot
- Command: echo Before Reboot
- Project 2 : Reboot
- Command : shutdown /r /t 0
- Project 3  : After reboot
- Command : echo after reboot
- Then run the above 3 projects from build-flow
- The Start test project fails after project 2 runs as the node goes
offline.

  Is there anyway to wait project 3 , till the node comes back online.

 Regards
 Ankit




 On Friday, April 24, 2015 at 7:22:32 AM UTC+5:30, Mark Waite wrote:

 When I've needed to run something on a freshly booted machine,
 particularly as part of a series of jobs, I've generally been able to do
 that by partitioning the work into multiple jobs, with the job which must
 execute on the newly booted slave being configured to run on the slave.

 A single job can't run successfully on the slave node being rebooted
 (during the reboot), because, as you note, it will fail the job.  Multiple
 jobs allow you to have the job wait for the slave agent to become
 available, then it immediately starts the job.

 On Thu, Apr 23, 2015 at 12:27 PM Ankit Singhal ankis...@gmail.com
 wrote:

 Hi

 I need some help in solving the reboot problem.

 The Workflow is as follows:

 1) Project 1 creates a Windows Installable package.
 2) Project 2 is called once the Project1 is completed and Package is
 pushed to Slave associated with Project 2.
 3) Project 2 now runs some commands on Slave 2

 Command 1 : Install Package on Slave 2
 Command 2 : Run some commands to enable the software.
 Command 3 : Reboot the machine.

 4) This might break the Job running in Project 2.
 5) After reboot , we need to run some more commands on Slave 2 to run
 some more tests.
 6) After tests are completed , the full Job in Project 2 is done.

 In nutshell , how to handle the reboot scenario , so that the job is not
 broken in between.

 Regards
 Ankit

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


 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/d2f0f06b-5dcf-4875-92b0-30f0c8dbbe04%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/d2f0f06b-5dcf-4875-92b0-30f0c8dbbe04%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/d5548546-f61d-4476-981c-245669283299%40googlegroups.com
 

Re: Jenkins slave restart

2015-04-24 Thread pranyt
Hi Mark,
 
Thanks for your suggestion. We thought it was convenient to run Jenkins 
slave on the machine running the tests because Jenkins would show us the 
progress of the job while it is running and other nice to have information.
 
Are you suggesting that we launch the target program using psexec from 
within Jenkins master? This definitely looks like a promising solution. We 
will give it a try if other options fail.
 
For now we are using task scheduler to run Jenkins slave.jar. it seems to 
work.
 
Thanks
 
 
 

On Thursday, April 23, 2015 at 12:47:49 AM UTC+5:30, Mark Waite wrote:

 If you're running performance tests, isn't the presence of any other 
 processes a risk to the repeatability of your performance test?

 Wouldn't it be better to use a Jenkins slave (or master) to launch the 
 target program from a remote machine, without a Jenkins slave agent on the 
 machine running  the tests?

 Mark Waite

 On Wed, Apr 22, 2015 at 8:17 AM Dunnigan, Terrence J 
 terrence@boeing.com javascript: wrote:

  Two thoughts.

  

 1)  When running Jenkins as a service, can you run as a user, 
 instead of local system? And can you give that user permissions to your 
 share?

 2)  From a command window, “shutdown /r /t 0” will restart the 
 machine. If you’re not running as a service you’ll need to log in before 
 the slave reconnects.

  

 Terry

  

 *From:* jenkins...@googlegroups.com javascript: [mailto:
 jenkins...@googlegroups.com javascript:] *On Behalf Of *
 pra...@gmail.com javascript:
 *Sent:* Wednesday, April 22, 2015 5:09 AM
 *To:* jenkins...@googlegroups.com javascript:
 *Subject:* Jenkins slave restart

  
  
 Hi,
  
  
  
 We have recently adopted Jenkins to manage performance testing lab which 
 comprises of many performance testing servers. 
  
  
  
 *A little background of the problem we have:*
  
  
  
 Lately we have been observing some discrepancy in the readings due to 
 memory consumption of Jenkins slave - memory usage goes up and down.
  
  
  
 For reliability we need same readings when a single test is executed 
 multiple times. But that doesn't seem to happen now after adopting Jenkins.
  
  
  
 We have observed that Jenkins slave memory usage increases gradually over 
 a period of time and suspecting that this could be affecting the stability 
 of the performance tests.
  
  
  
 *Question:*
  
  
  
 So now we want to figure out a way to restart Jenkins slave after every 
 performance test we perform on the server. Using Jenkins slave as a service 
 is preventing us to access some network shares so we were forced to start 
 Jenkins slave using the java -jar option.
  
 Is there a way we can restart Jenkins slaves after every test run on the 
 slave? 
  
  
  
 I have also attached herewith the list of plugins I have installed. 
 Please advise if any of these plugins could be causing the increasing 
 memory usage of Jenkins slave.
  
 I can share more details about my setup if it helps.
  
  
  
 Thank you for your time and advice.
  
  
  
 Regards,
  
 Praneeth
  
  
  
  
  
  
  
  
  
  
  
 -- 
 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 javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/799ea334-37b4-4475-b317-37e8f4d6952c%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/799ea334-37b4-4475-b317-37e8f4d6952c%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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-use...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D16A820%40XCH-PHX-205.sw.nos.boeing.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/9AD8B655B5126D4FAE1397203CDDBF2D16A820%40XCH-PHX-205.sw.nos.boeing.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/78643d68-4945-40d1-8211-e02062f6112b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 1.607 - Environment Variables Stuck

2015-04-24 Thread Varun Jain
Hey everyone.

I'm facing an issue where the environment variables seem stuck and 
un-updating when running tasks via Jenkins on Windows Slaves. Here are the 
steps I do to reproduce, and resolve the problem

1. Create new Node and set JUST the home directory
2. Run job with just echo %PATH%
3. Modify PATH, restart Jenkins Slave
4. Echo PATH via command line, outputs as the correct NEW Path
5. Run job with jenkins. OLD path is output

Resolution:
Delete and recreate slave

Thanks,
VJ

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PATH stuck on Windows slaves

2015-04-24 Thread Simon Richter
Hi,

I have a Windows slave attached to a master instance running on a Linux
system, and find that the PATH environment variable (or really, all
variables) get stuck at the value they are first seen at.

When I create a new environment variable in Windows and restart the
Jenkins service, the variable shows up both in the node overview and in
the builds. Deleting variables does not work, neither does changing.

When I delete and recreate the node in the master's setup, a fresh set
of environment variables is fetched.

Is this intentional? Can I somehow force a re-read?

   Simon

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/553AE4C1.7000109%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Jenkins - Recent Code changes

2015-04-24 Thread Mark Waite
It is associated with a source code repository.

On Fri, Apr 24, 2015 at 2:29 PM Pradeep Anand pradyp.an...@gmail.com
wrote:

 Hello,

 Is Recent Code changes function of Jenkins (Changes for a specific build)
 are associated with a source code repository? in other words, if I am doing
 a build from my local machine (no code is downloaded from any source code
 repository) then why CHANGES section post build remains empty?

 Best Regards

 --
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/f977e99a-5734-40ae-9daf-6465d748b45e%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/f977e99a-5734-40ae-9daf-6465d748b45e%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFd40%2BSpOfD76MMMGWsfGWuQzFiM2YoEarjcaBL8y4QcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Efficiently copying artifacts

2015-04-24 Thread Simon Richter
Hi,

I have a project that outputs a few large files (compiled DLL and static
library) as well as a few hundred header files as artifacts for use by
the next project in the dependency chain. Copying these in and out of
workspaces takes quite a long time, and the network link is not even
near capacity, so presumably handling of multiple small files is not
really efficient.

Can this be optimized somehow, e.g. by packing and unpacking the files
for transfer? Manual inspection of artifacts is secondary, I think.

   Simon

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/553AD99B.7060308%40hogyros.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


RPMSign Plugin

2015-04-24 Thread lupindeterd
Hello,

Any idea how I can set/configure the GPG key for this plugin? 

There's a drow-down/selector but can find the way to set it up.



thanks lupin

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9b5cabbb-f815-4981-b589-d8c69458d4f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Handling testcases involving reboot during execution of Job on Slave

2015-04-24 Thread Jason Pyeron
 -Original Message-
 From: Mark Waite
 Sent: Friday, April 24, 2015 8:13
 
 My apologies.  My description was wrong.  It makes it sound 
 simpler than it actually is, or at least it sounds simpler 
 than the technique I'm actually using to reboot a slave agent.
 
 
 I reviewed the Jenkins job which I have that reboots a 
 Windows machine in hopes of reducing the number of times a 
 job will fail due to busy files.  In that job, I have an 
 ant script which schedules a reboot soon after the current 
 time.  That allows the job which schedules the reboot to 
 complete successfully.
 
 It also requires that a subsequent job be configured to delay 

Many VM (I am assuming the machine is a VM today) system support screen shots. 
We take screen shots at regular intervals during the reboot process. We then 
take the md5sum of the bitmap (much easier than parsing the image content), 
once the expected screen is up it is ready for the next job.

In summary:

1. Job ends with success and schedules reboot.
2. Job waits for reboot to complete, fails if timeout elapses.
3. Job finishes tests.

 its start long enough for the computer to reboot and 
 reconnect the Jenkins slave.  I suspect you'll need to make 
 guesses and watch behavior to decide the length of that delay.
 
 The build.xml file for the reboot task contains this:
 
   !-- StackOverflow special thanks for this technique --
   scriptdef name=generateguid language=javascript
 attribute name=property /
 ![CDATA[project.setProperty( attributes.get( property 
), java.util.UUID.randomUUID() );]]
   /scriptdef
 
   target name=reboot description=Reboot this computer
 tstamp
   format property=current.time pattern=HH:mm/
 /tstamp
 tstamp
   !-- Schedule reboot 1 minute from now --
   format property=reboot.time pattern=HH:mm 
 offset=2 unit=minute/
 /tstamp
 echoIt is ${current.time}, rebooting at ${reboot.time}/echo
 generateguid property=guid /
 exec osfamily=windows executable=schtasks.exe 
 failonerror=true
   arg value=/Create/
   arg value=/RU/ arg value=Reboot/ !-- user name 
 of an Administrator user --
   arg value=/RP/ arg value=/ !-- insert the 
 password of your Reboot user --
   arg value=/SC/ arg value=Once/
   arg value=/ST/ arg value=${reboot.time}/
   arg value=/TN/ arg value=Reboot-${guid}/
   arg value=/TR/ arg value=shutdown /r /t 2/
 /exec
   /target
 
 Mark Waite
 
 On Fri, Apr 24, 2015 at 1:28 AM Ankit Singhal 
 ankising...@gmail.com wrote:
 
 
   Hi Mark,
 
   Thanks for the reply. Can you please help me in 
 detailing the steps of doing it. I tried following
 
 
   *   Created a build-flow name  Start test
   
   *   After that created 3 freestyle projects.
   
   *   Project1 : Before Reboot
   
   *   Command: echo Before Reboot
   
   *   Project 2 : Reboot
   
   *   Command : shutdown /r /t 0
   
   *   Project 3  : After reboot
   
   *   Command : echo after reboot
   
   *   Then run the above 3 projects from build-flow
   
   *   The Start test project fails after project 2 
 runs as the node goes offline.
   
 
Is there anyway to wait project 3 , till the node 
 comes back online.
 
   Regards
   Ankit
 
 
 
 
   On Friday, April 24, 2015 at 7:22:32 AM UTC+5:30, Mark 
 Waite wrote:
 
   When I've needed to run something on a freshly 
 booted machine, particularly as part of a series of jobs, 
 I've generally been able to do that by partitioning the work 
 into multiple jobs, with the job which must execute on the 
 newly booted slave being configured to run on the slave.
   
 
   A single job can't run successfully on the 
 slave node being rebooted (during the reboot), because, as 
 you note, it will fail the job.  Multiple jobs allow you to 
 have the job wait for the slave agent to become available, 
 then it immediately starts the job.
 
 
   On Thu, Apr 23, 2015 at 12:27 PM Ankit Singhal 
 ankis...@gmail.com wrote:
   
 
   Hi
 
   I need some help in solving the reboot problem.
 
   The Workflow is as follows:
 
   1) Project 1 creates a Windows 
 Installable package.
   2) Project 2 is called once the 
 Project1 is completed and Package is pushed to Slave 
 associated with Project 2.
   3) Project 2 now runs some commands on Slave 2
 
   Command 1 : Install Package on Slave 2
   Command 2 : Run some commands to enable 
 the software.
   Command 3 : Reboot the machine.
 
   4) This might break the Job running in 
 Project 2.
   5) After 

Jenkins Docker 0.9beta plugin. How to stop Jenkins Slave from Cloning the Git repos each time- How to re-use workspace?

2015-04-24 Thread krishna kunapuli
Hi,
 I was able to setup Jenkins running in a docker container and configure 
plug-in to kick off builds on slaves. How ever, each time a job is run 
jenkins slave container is trying to clone the entire git repository, 
downloading all the artifacts for the project. In my case it take 
15minutes. This is least efficient. How do I re-use a slave workspace?

Thanks,
K

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get last job status and SCM information for a parameter combination run of a job

2015-04-24 Thread laxmi Lachi
HI,

I am using parameter build trigger plugin and starting a initiator job 
which passes different values for same parameter.
For example for Branch parameter I will pass branch a, b and c and that 
will start 3 jobs from same configuration.

The next time I start the initiator job it should not start build for 
branch b if there was no change since the last build.
How can I accomplish this?

Thanks,
Laxmi.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ecb0b873-5501-404f-a45e-f1085595ec37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploy in Wildfly using Jenkins

2015-04-24 Thread Erick Macedo
Good afternoon people,

I'm trying to perform deploy a war in wildfly via jenkins using the Deploy 
plugin jenkins, however it only allows container to the JBoss 7.x

I would like to perform the deploy via jenkins even without using the 
plugin Apache Maven Deploy Plugin

Someone managed to do this and can help me?

thank you

Erick Macedo

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3d791d00-2259-49b2-9b52-0d29b6e5d110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Docker 0.9beta plugin. How to stop Jenkins Slave from Cloning the Git repos each time- How to re-use workspace?

2015-04-24 Thread Nigel Magnay
Build a slave image with a copy of the git repository and any known
artifacts within it. Then the build will only be fetching the diffs.


On Fri, Apr 24, 2015 at 4:18 PM, krishna kunapuli kunapul...@gmail.com
wrote:

 Hi,
  I was able to setup Jenkins running in a docker container and configure
 plug-in to kick off builds on slaves. How ever, each time a job is run
 jenkins slave container is trying to clone the entire git repository,
 downloading all the artifacts for the project. In my case it take
 15minutes. This is least efficient. How do I re-use a slave workspace?

 Thanks,
 K

 --
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPYP83TO6vS%3DP%3DbK_oTW5fkCBvbz-uS3HBPoPYu6HCVaOAoPWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Docker 0.9beta plugin. How to stop Jenkins Slave from Cloning the Git repos each time- How to re-use workspace?

2015-04-24 Thread Mark Waite
Another alternative is to build a slave image with a bare copy of the git
repository, then use that bare copy as a reference repository in the job
definition (see the Additional Behaviours section of the git section of
the job configuration).  The reference repository reduces the data transfer
by pointing to the bare repo and only pulling new changes.

Mark Waite

On Fri, Apr 24, 2015 at 10:59 AM Nigel Magnay nigel.mag...@gmail.com
wrote:

 Build a slave image with a copy of the git repository and any known
 artifacts within it. Then the build will only be fetching the diffs.


 On Fri, Apr 24, 2015 at 4:18 PM, krishna kunapuli kunapul...@gmail.com
 wrote:

 Hi,
  I was able to setup Jenkins running in a docker container and configure
 plug-in to kick off builds on slaves. How ever, each time a job is run
 jenkins slave container is trying to clone the entire git repository,
 downloading all the artifacts for the project. In my case it take
 15minutes. This is least efficient. How do I re-use a slave workspace?

 Thanks,
 K

 --
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/CAPYP83TO6vS%3DP%3DbK_oTW5fkCBvbz-uS3HBPoPYu6HCVaOAoPWQ%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CAPYP83TO6vS%3DP%3DbK_oTW5fkCBvbz-uS3HBPoPYu6HCVaOAoPWQ%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtE4ZRt-od6-GzR-%2BwAFbMxLguaChZMQE3TNrQTB%2Bvdqqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Handling testcases involving reboot during execution of Job on Slave

2015-04-24 Thread Ankit Singhal
Hi Mark,

Thanks for the reply. Can you please help me in detailing the steps of 
doing it. I tried following


   - Created a build-flow name  Start test
   - After that created 3 freestyle projects.
   - Project1 : Before Reboot
   - Command: echo Before Reboot
   - Project 2 : Reboot
   - Command : shutdown /r /t 0
   - Project 3  : After reboot
   - Command : echo after reboot
   - Then run the above 3 projects from build-flow
   - The Start test project fails after project 2 runs as the node goes 
   offline.
   
 Is there anyway to wait project 3 , till the node comes back online.

Regards
Ankit




On Friday, April 24, 2015 at 7:22:32 AM UTC+5:30, Mark Waite wrote:

 When I've needed to run something on a freshly booted machine, 
 particularly as part of a series of jobs, I've generally been able to do 
 that by partitioning the work into multiple jobs, with the job which must 
 execute on the newly booted slave being configured to run on the slave.

 A single job can't run successfully on the slave node being rebooted 
 (during the reboot), because, as you note, it will fail the job.  Multiple 
 jobs allow you to have the job wait for the slave agent to become 
 available, then it immediately starts the job.

 On Thu, Apr 23, 2015 at 12:27 PM Ankit Singhal ankis...@gmail.com 
 javascript: wrote:

 Hi

 I need some help in solving the reboot problem.

 The Workflow is as follows:

 1) Project 1 creates a Windows Installable package.
 2) Project 2 is called once the Project1 is completed and Package is 
 pushed to Slave associated with Project 2.
 3) Project 2 now runs some commands on Slave 2

 Command 1 : Install Package on Slave 2
 Command 2 : Run some commands to enable the software.
 Command 3 : Reboot the machine.

 4) This might break the Job running in Project 2.
 5) After reboot , we need to run some more commands on Slave 2 to run 
 some more tests.
 6) After tests are completed , the full Job in Project 2 is done.

 In nutshell , how to handle the reboot scenario , so that the job is not 
 broken in between.

 Regards
 Ankit

  -- 
 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 javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/d2f0f06b-5dcf-4875-92b0-30f0c8dbbe04%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/d2f0f06b-5dcf-4875-92b0-30f0c8dbbe04%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d5548546-f61d-4476-981c-245669283299%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Doubts about Publish Over SSH Plugin

2015-04-24 Thread Erick Macedo
Hi,

Publish plugin installed SSH in jenkins to perform deploy the artifacts 
generated by the maven on a linux server with wildfly.

In SSH Server Name added the server and test the connection is ok.

The problem is in session with field Transfers Source files, these files 
are as to which path? the .m2 maven?

Well I have two jobs, one to generate the war to include the war in .m2 and 
to deploy, the latter which can utilize the plugin to deploy.

Jobs is automated so that when the build job is finished the deploy job 
begins.

Someone uses this plugin to help me?

thank you

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f7e304b6-7a71-4493-9ac6-2016842ae1f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Docker 0.9beta plugin. How to stop Jenkins Slave from Cloning the Git repos each time- How to re-use workspace?

2015-04-24 Thread krishna kunapuli
I took a ssh ready slave image and sudo-ed to the container as jenkins, ran 
git clone,  ran a basic build and committed to docker. When I run a docker 
container from this new image. I could see the files in there. I don't see 
expected result of just git update when I use this new image as my slave. 

Additional note, I inspected the dynamic containers created by jenkins and 
don't see source directory. I don't understand what I am missing.





On Friday, April 24, 2015 at 10:59:08 AM UTC-6, nigelm wrote:

 Build a slave image with a copy of the git repository and any known 
 artifacts within it. Then the build will only be fetching the diffs.


 On Fri, Apr 24, 2015 at 4:18 PM, krishna kunapuli kunap...@gmail.com 
 javascript: wrote:

 Hi,
  I was able to setup Jenkins running in a docker container and configure 
 plug-in to kick off builds on slaves. How ever, each time a job is run 
 jenkins slave container is trying to clone the entire git repository, 
 downloading all the artifacts for the project. In my case it take 
 15minutes. This is least efficient. How do I re-use a slave workspace?

 Thanks,
 K

 -- 
 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 javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/596918ea-7de9-4df8-8c60-769dbdb5ff15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins - Recent Code changes

2015-04-24 Thread Pradeep Anand
Hello,

Is Recent Code changes function of Jenkins (Changes for a specific build) 
are associated with a source code repository? in other words, if I am doing 
a build from my local machine (no code is downloaded from any source code 
repository) then why CHANGES section post build remains empty?

Best Regards

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f977e99a-5734-40ae-9daf-6465d748b45e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Doubts about Publish Over SSH Plugin

2015-04-24 Thread Richard Bywater
The path of files to transfer is relative to the workspace. Usually you'd
transfer over an artifact either created by the job or brought in via
something like the Copy Artifacts plugin.

Richard

On 8:55AM, Sat, 25/04/2015 Erick Macedo erickfmac...@gmail.com wrote:

 Hi,

 Publish plugin installed SSH in jenkins to perform deploy the artifacts
 generated by the maven on a linux server with wildfly.

 In SSH Server Name added the server and test the connection is ok.

 The problem is in session with field Transfers Source files, these files
 are as to which path? the .m2 maven?

 Well I have two jobs, one to generate the war to include the war in .m2
 and to deploy, the latter which can utilize the plugin to deploy.

 Jobs is automated so that when the build job is finished the deploy job
 begins.

 Someone uses this plugin to help me?

 thank you

 --
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/f7e304b6-7a71-4493-9ac6-2016842ae1f9%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/f7e304b6-7a71-4493-9ac6-2016842ae1f9%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui947BfxfXfz3GGBXWMes48JTh-Eaa4o1XvJM8czEPZum_CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.