issues with connecting to ftp server

2015-04-23 Thread Eric Wood
I have installed the latest stable release of Jenkins.  I have configured to 
connect to an FTP server running on windows 2012 under IIS.  I have configured 
both the publish over ftp plugin and the publish over ssh plugin to be able to 
connect to the server.
For the ftp plugin I can connect to the server using sftp, but then I upload a 
file, the plugin seems to ignore the destination folder.  No matter how I 
specify the destination as relative, absolute, /, or \ in the path, it always 
publishes the file under the root or home folder.  I configured this plugin to 
be able to create timestamped folder under the destination folder and it is 
doing that, it is just no putting the file in the destination folder ... always 
the root.
I attempt to connect via the ssh publisher and in this case I'm using the ftps 
port to connect to the server.  When test the configuration on the main 
configuration page, it fails. When I look at the log file on the server is 
actually seems to connect and seems to list the home folder. See below.  It 
appears that the connection test should work, but does not.  It fails with:
jenkins.plugins.publish_over.BapPublisherException: Failed to connect session 
for config [ftp.irondata.com]. Message [Session.connect: 
java.net.SocketTimeoutException: Read timed out]

FTP LOG File:2015-04-23 13:48:07 10.20.10.202- 10.70.10.89 990 
ControlChannelOpened - - 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202- 10.70.10.89 990 USER jenkins 331 0 0 
65695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 PASS *** 
230 0 065695061-f5fb-42f3-9eba-81b42e914ee5 /jenkins

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 OPTS 
UTF8+ON 200 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 PBSZ 0 
200 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 PROT P 
200 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 CWD 
/jenkins 250 0 065695061-f5fb-42f3-9eba-81b42e914ee5 /jenkins

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 PWD - 257 
0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 CWD temp 
250 0 065695061-f5fb-42f3-9eba-81b42e914ee5 /jenkins/temp

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 PWD - 257 
0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 TYPE I 
200 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 PASV - 
227 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 53040 
DataChannelOpened - - 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 53040 
DataChannelClosed - - 0 065695061-f5fb-42f3-9eba-81b42e914ee5 -

2015-04-23 13:48:07 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 LIST - 
226 0 065695061-f5fb-42f3-9eba-81b42e914ee5 /jenkins/temp

2015-04-23 13:50:17 10.20.10.202ID-DMZ-FTP-01\jenkins 10.70.10.89 990 
ControlChannelClosed - - 258 065695061-f5fb-42f3-9eba-81b42e914ee5 -



I cannot get it to work? 

-- 
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/1295886752.2898998.1429800174346.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Re: [workflow-plugin] What is the best way to add '--recursive' to 'git' statements

2015-04-23 Thread Tim Wojtaszek
I'd recommend trying to do this using the Snippet Generator, General SCM, 
Git ...  make sure you are on workflow 1.4 at least.

It will help you put together something like this, taking advantage of all 
the extensions available.  I'm thinking what you really want is the ' 
doGenerateSubmoduleConfigurations: true part.

checkout([$class: 'GitSCM', branches: [[name: 'master']], 
doGenerateSubmoduleConfigurations: true, extensions: [[$class: 
'WipeWorkspace'], [$class: 'SparseCheckoutPaths', sparseCheckoutPaths: 
[[path: 'build', userRemoteConfigs: [[credentialsId: 'secretc', url: 
'g...@github.com:sample/sample.git']]])

Cheers,
tim

On Tuesday, April 21, 2015 at 7:25:15 PM UTC-7, Vizionz wrote:

 Hello,

 Is it possible to add '--recursive' parameter to the workflow git 
 statement?

 git branch: ${GitBranch}, changelog: true, poll: false, url: 
 ${GitRepo}

 This statement does not pull submodules when executed.



 High Regards,
 Jc


-- 
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/e5e5e883-4964-4fa3-8711-c5692253d503%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins LTS updates

2015-04-23 Thread jpd4nt

Can this go in the FAQ?

Last time I looked the website is a manual process to update the LTS 
release number, it gets behind when kohsuke (or who ever has access) gets 
busy.
61

-- 
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/efc26e45-ca67-4b98-b359-c00eda58a4df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins LTS updates

2015-04-23 Thread Daniel Beck
This never was manual. It uses the update center metadata (and for a while 
showed the obsolete update center's metadata after an update, 6 months or so 
ago).

But in this case, I couldn't find 1.596.3 offered anywhere:

http://updates.jenkins-ci.org/stable/latestCore.txt
http://jenkins.mirror.isppower.de/updates/stable-1.596/update-center.json
http://repo.jenkins-ci.org/simple/releases/org/jenkins-ci/main/jenkins-war/
http://pkg.jenkins-ci.org/redhat-stable/
http://pkg.jenkins-ci.org/debian-stable/

On 23.04.2015, at 18:07, jpd4nt jdrawn...@nationaltheatre.org.uk wrote:

 
 Can this go in the FAQ?
 
 Last time I looked the website is a manual process to update the LTS release 
 number, it gets behind when kohsuke (or who ever has access) gets busy.
 
 -- 
 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/efc26e45-ca67-4b98-b359-c00eda58a4df%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3B95D52A-7C4B-42CA-85F7-1523C7D47ACA%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Handling testcases involving reboot during execution of Job on Slave

2015-04-23 Thread Ankit Singhal
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-users+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Empty credentials list on slave ssh configuration

2015-04-23 Thread Mic
Hi,

I am using several slave nodes connected via SSH and I have several Global 
credentials configured (ssh, scm, ...)
With the Role Strategy Plugin I have restricted the configure permission of 
some slave to only certain users (Manage and Assign Roles  Slave Roles 
section)

For example user Homer has all the permission (configuration, connection, 
read, ...) for slaves with a name beginning by SAP_
But when he goes in the configure window for a slave with name SAP_, the 
dropdown list of credentials is empty. 
This prevent him to connect the slave via ssh, because Jenkins does not 
found any credential and return the following error: Cannot find SSH User 
credentials with id: null
 
For now, the only workaround I found is to add the permission to configure 
slave for a global role called *user *(Manage and Assign Roles  Global 
Roles section).
This is not satisfying, because all users with the role *user *assigned to 
them are now able to configure every slave node.

So my question is, how to allow only certain user to configure on certain 
slave nodes ?







-- 
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/0b9b31ab-7906-4a68-9b6c-3620114d8720%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker Jenkins integration

2015-04-23 Thread Richard Bywater
Sorry - was replying from phone so didn't quite get a more fuller featured
response.

Is 192.168.59.103 the IP address of the Windows Host machine or the VM that
gets spun up on Windows to run Docker in? If its the Windows box you are
going to need to port forward to the Docker VM or expose the Docker VM onto
the network.

Richard.

On Thu, 23 Apr 2015 at 23:41 Rahul Agrawal rahulacces...@gmail.com wrote:

 Hi Richard,

 The ping requests to from my machin eto docker - vm are failing. I am
 trying to ping 192.168.59.103.


 On Thursday, 23 April 2015 16:43:37 UTC+5:30, Richard Bywater wrote:

 Is the Virtual Box network interface accessible from the other box?

 Richard

 On 10:59PM, Thu, 23/04/2015 Rahul Agrawal rahula...@gmail.com wrote:

 Hi Guys,

 I am new to Docker and I need to integrate Docker iwth jenkins. I have
 jenkins and docker in two different system, and docker runs on a Windows
 machine using a virtual box.
 So when I try to establish a connection between Jenkins and docker, it
 gives me this error javax.servlet.ServletException: 
 javax.ws.rs.ProcessingException:
 java.net.SocketTimeoutException: connect timed out at
 org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796).

 Kindly suggest some solution.

 Thanks  Regards,
 Rahul

 --
 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/ad968fbc-1f6f-433e-b3e8-d5022923210c%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/ad968fbc-1f6f-433e-b3e8-d5022923210c%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/05df9bd0-5242-4040-8278-120c00a3b723%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/05df9bd0-5242-4040-8278-120c00a3b723%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/CAMui944AAquU4Fr3xH4m_0ZzWcZhXXtws%3DFOo8WxOy-ZbkbfZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Need basic guidance on defining job that monitors gerrit

2015-04-23 Thread KARR, DAVID
I'm only somewhat familiar with Jenkins, and I need to learn how to do 
something like this:

Define a job that monitors an external gerrit server for approved artifacts, 
and when new artifacts are produced, download them to a location on the Jenkins 
server.

Eventually we will perform additional automation on the artifact, but just 
getting it downloaded is enough.

Where do I start?

-- 
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/B8D164BED956C5439875951895CB4B22283F291E%40CAFRFD1MSGUSRIA.ITServices.sbc.com.
For more options, visit https://groups.google.com/d/optout.


Running jenkins-cli.jar for https

2015-04-23 Thread Grace Lee
Hi,

Has anyone successfully run Jenkins-cli.jar for https protocol?

I kept getting connection error from client side to Jenkins on https. Could 
anyone help me on this? My sincere appreciation.

- java -Djavax.net.ssl.trustStore=/tmp/jenkins2/jenkinskeystore.jks 
-Djavax.net.ssl.trustStorePassword=password -jar jenkins-cli.jar -s 
https://jenkins2.eng.proofpoint.com:8443 help
Exception in thread main java.io.IOException: Failed to connect to 
https://jenkins2.eng.proofpoint.com:8443/
at hudson.cli.CLI.getCliTcpPort(CLI.java:266)
at hudson.cli.CLI.init(CLI.java:126)
at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)
at hudson.cli.CLI._main(CLI.java:466)
at hudson.cli.CLI.main(CLI.java:382)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection 
during handshake
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:882)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199)
at 
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)
at hudson.cli.CLI.getCliTcpPort(CLI.java:264)
... 4 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:462)
at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
... 11 more

* Where:

o   /tmp/jenkins2/jenkinskeystore.jks is a copy of 
/u/xbuild/.ssh/jenkinskeystore.jks from following server command.

o   password is same password as in the following server command

o   jar jenkins-cli.jar was extracted from 
/share/pub/build/jenkins2/bin/jenkins.war in the following server command

o   the following Jenkins server is running on Jenkins ver. 1.605.
The server process:
$ /etc/alternatives/java -Djava.awt.headless=true -server -Xms2048m -Xmx8192m 
-XX:PermSize=512m -XX:MaxPermSize=1024m 
-DJENKINS_HOME=/share/pub/build/jenkins2 -jar 
/share/pub/build/jenkins2/bin/jenkins.war 
--logfile=/share/pub/build/jenkins2/log/jenkins.log 
--webroot=/var/cache/jenkins/war --httpPort=-1 --httpsPort=8443 
--httpsKeyStore=/u/xbuild/.ssh/jenkinskeystore.jks 
--httpsKeyStorePassword=password --ajp13Port=-1 --debug=5 
--handlerCountMax=100 --handlerCountMaxIdle=20
$ hostname
jenkins2.eng.proofpoint.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/14E16BAE45DBED4D8514D0C53BC00B86C019DD2C%40hq-mdb001.corp.proofpoint.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker Jenkins integration

2015-04-23 Thread Rayees Namathponnan
Hi Rahul,

you can try this

https://wiki.jenkins-ci.org/display/JENKINS/Launch+Java+Web+Start+slave+agent+via+Windows+Scheduler

Regards,
Rayees

On Thu, Apr 23, 2015 at 3:59 AM, Rahul Agrawal rahulacces...@gmail.com
wrote:

 Hi Guys,

 I am new to Docker and I need to integrate Docker iwth jenkins. I have
 jenkins and docker in two different system, and docker runs on a Windows
 machine using a virtual box.
 So when I try to establish a connection between Jenkins and docker, it
 gives me this error javax.servlet.ServletException:
 javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: connect
 timed out at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796).

 Kindly suggest some solution.

 Thanks  Regards,
 Rahul

 --
 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/ad968fbc-1f6f-433e-b3e8-d5022923210c%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/ad968fbc-1f6f-433e-b3e8-d5022923210c%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/CAKyft7moyEsGBgqWd5XAFej7phpt2U0ps4CFAYVKgGPzQnfUQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get Jenkins to start on MacOS-X 10.10 Yosemite

2015-04-23 Thread Robin Mills
Thanks, Barry.  I did that, and some other things and got it running.  I think 
I put my solution on the web.  Anyway, it's running well.

Thanks for taking the time to help me.

Robin
http://clanmills.com
Not sent from my iPhone

 On 23 Apr 2015, at 06:06, Barry Anderson z3ndra...@gmail.com wrote:
 
 It might be worth trying just the following command:
 sudo chown jenkins /var/log/jenkins/jenkins.log
 
 Hope this helps,
 Barry
 
 On Monday, October 20, 2014 at 10:09:29 AM UTC+11, Robin Mills wrote:
 Folks
 
 I've had Jenkins running for months on my Mac Mini.  I upgraded today to 
 Yosemite and was very surprised that Jenkins refuses to start (any port, not 
 just 8080, with/without sudo)
 
 I've looked through everything in the System Preferences concerning 
 security, network, users, updated Java.  Nope!  Defeated.  Looks like some 
 new Yosemite policeman needs to be told it's OK to allow Java to open port 
 8080! (or something like that).
 
 Does anybody have any ideas?
 
 Robin
 
 538 rmills@rmillsmm:~ $ ls -alt 
 /Users/Shared/Jenkins/Home/war/WEB-INF/jenkins-cli.jar
 -rwxr-xr-x  1 jenkins  jenkins  729317  9 Sep 23:02 
 /Users/Shared/Jenkins/Home/war/WEB-INF/jenkins-cli.jar
 539 rmills@rmillsmm:~ $ java -jar 
 /Users/Shared/Jenkins/Home/war/WEB-INF/jenkins-cli.jar -s 
 http://localhost:8080
 Exception in thread main java.io.IOException: Failed to connect to 
 http://localhost:8080/
  at hudson.cli.CLI.getCliTcpPort(CLI.java:266)
  at hudson.cli.CLI.init(CLI.java:126)
 ...
 Caused by: java.net.ConnectException: Connection refused
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at 
 java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
 
 -- 
 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/oSynHdMWEwU/unsubscribe.
 To unsubscribe from this group and all its topics, 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/ef016758-2c72-4db7-a186-b7179780da3d%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/101A29DD-BCEA-457C-86FB-9CBCC488685B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Change subject in email-ext

2015-04-23 Thread Faizan Javed
I tried this script
The subject is displaying def subject = 'Some Subject'

On Friday, April 17, 2015 at 6:27:05 PM UTC+5, slide wrote:

 def subject = 'Some Subject'

 if(build.result == Result.SUCCESS) {

 subject += ' - Build Succeeded!'

 }

 subject // required so that this is returned from the script




 On Wed, Apr 15, 2015, 23:52 Faizan Javed faixa...@gmail.com javascript: 
 wrote:

 Can you show me an example of groovy script? 


 On Wednesday, April 15, 2015 at 4:53:44 PM UTC+5, slide wrote:

 You could use the SCRIPT token in the subject and have the decision 
 making done in the groovy script. I do this for lots of things.

 On Wed, Apr 15, 2015 at 12:06 AM Faizan Javed faixa...@gmail.com 
 wrote:

 I am using email-ext plugin to trigger emails after the build fails or 
 become unstable. The build becomes unstable when some of the tests fail 
 and 
 the build fails when the compilation fail.

 Can we use conditions to display different customized subject depending 
 on the cause of the email trigger?

 -- 
 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/78afab09-7faa-4721-98f7-54501aa6f9a5%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/78afab09-7faa-4721-98f7-54501aa6f9a5%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/db0054b6-eeb0-49e6-8aa5-2677d1048c3c%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/db0054b6-eeb0-49e6-8aa5-2677d1048c3c%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/bda54750-4069-4bd6-bbeb-a05c55b55684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: LDAP: does not work for jenkins 1.606 with Ldapplugin 1.6

2015-04-23 Thread Maciej Jaros

v_sathyamurthy (2015-04-02 19:00):

Hello Folks,
   I would really appreciate if some one could help me. I have 
installed jenkins 1.606 on windows,and tried to enable the global 
security link. I configured everything correctly. When enver I tried 
to test the login I always brought back to error page.

*Invalid login information. Please try again.
Try again*

*If you are a system administrator and suspect this to be a 
configuration problem, see the server console output for more details.*

My configuration looks like below:
useSecuritytrue/useSecurity
  authorizationStrategy 
class=hudson.security.FullControlOnceLoggedInAuthorizationStrategy/
  securityRealm class=hudson.security.LDAPSecurityRealm 
plugin=ldap@1.6 mailto:ldap@1.6

serverldap://dev-corpldap.com:389/server
rootDNdc=mycompany,dc=com/rootDN
inhibitInferRootDNfalse/inhibitInferRootDN
userSearchBaseou=internal,ou=users,dc=mycompany,dc=com/userSearchBase
userSearchuid={0}/userSearch
managerDNuid=bindid,ou=system,ou=users,dc=mycompany,dc=com/managerDN
managerPasswordUGFzc3dvcmRAMTIz/managerPassword
disableMailAddressResolvertrue/disableMailAddressResolver
  /securityRealm

...

If you are using AcitveDirectory (Windows domain) as LDAP then 
`userSearch` should be `sAMAccountName={0}`. Also `userSearchBase` might 
be different. This might vary between installations, but I'm using 
`CN=Users` and it works fine.


Regards,
Nux.

--
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/5538BAD6.2010300%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Re: Getting error during deployment

2015-04-23 Thread Maciej Jaros

Bharath Raj (2015-04-22 21:28):

Hi team ,
I am trying to deploy artifact through Weblogic server ..After building project 
I have written build.xml which is generating war successfully .. I am able to 
undeploy but while deploying I am getting the below error . Could you please 
help me in solving the issue and let me know the cause for the error..

  Task completed abnormally (exit code =1) .


Not sure about Weblogic server, but for Tomcat the best way to make sure 
deployment works is to stop the server (and wait for it to actually 
stop) and then copy war and then start the sever again.


Here is a stopping script which you could adjust for Weblogic server:
# Set timeout (in seconds).
# default value
TIMEOUT=240
# run-time value
if [ ! -z $1 ]; then
TIMEOUT=$1
fi
echo [INFO] Timeout will occur at:  $(date -d $TIMEOUT seconds)

# stopping...
/etc/init.d/tomcat stop

# timeout setup
END_TIME=$(date -d $TIMEOUT seconds +%s)

# waiting...
echo ---
echo   Stop log
echo - - - - - - - - - -
while read line
do
echo $line
if echo $line|grep -i INFO: Destroying ProtocolHandler \[\ajp
then
break
fi
# break if no java is running...
runningJava=`ps -A|grep -i java`
if [ -z $runningJava ]
then
echo [INFO] Java is not running
break
fi
if [ $(date +%s) -ge $END_TIME ]
then
echo [INFO] Timeout occurred - killing java
killall java
break
fi
done  (tail -5f /usr/share/apache-tomcat/logs/catalina.out)
echo -e \n---\n\n

--
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/5538BDA8.8000909%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Re: LDAP: does not work for jenkins 1.606 with Ldapplugin 1.6

2015-04-23 Thread Maciej Jaros
PS: Also `managerDN` should simply be a user name prefixed with domain 
name e.g. `MYCOMPANY\MyUser`. Any user with basic permissions should work.



Maciej Jaros (2015-04-23 11:26):

v_sathyamurthy (2015-04-02 19:00):

Hello Folks,
   I would really appreciate if some one could help me. I have 
installed jenkins 1.606 on windows,and tried to enable the global 
security link. I configured everything correctly. When enver I tried 
to test the login I always brought back to error page.

*Invalid login information. Please try again.
Try again*

*If you are a system administrator and suspect this to be a 
configuration problem, see the server console output for more details.*

My configuration looks like below:
useSecuritytrue/useSecurity
  authorizationStrategy 
class=hudson.security.FullControlOnceLoggedInAuthorizationStrategy/
  securityRealm class=hudson.security.LDAPSecurityRealm 
plugin=ldap@1.6 mailto:ldap@1.6

serverldap://dev-corpldap.com:389/server
rootDNdc=mycompany,dc=com/rootDN
inhibitInferRootDNfalse/inhibitInferRootDN
userSearchBaseou=internal,ou=users,dc=mycompany,dc=com/userSearchBase
userSearchuid={0}/userSearch
managerDNuid=bindid,ou=system,ou=users,dc=mycompany,dc=com/managerDN
managerPasswordUGFzc3dvcmRAMTIz/managerPassword
disableMailAddressResolvertrue/disableMailAddressResolver
  /securityRealm

...

If you are using AcitveDirectory (Windows domain) as LDAP then 
`userSearch` should be `sAMAccountName={0}`. Also `userSearchBase` 
might be different. This might vary between installations, but I'm 
using `CN=Users` and it works fine.


Regards,
Nux.
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5538BAD6.2010300%40mol.com.pl 
https://groups.google.com/d/msgid/jenkinsci-users/5538BAD6.2010300%40mol.com.pl?utm_medium=emailutm_source=footer.

For more options, visit https://groups.google.com/d/optout.





MOL sp. z o.o.  *Maciej Jaros*
e-mail: mac...@mol.com.pl mailto:mac...@mol.com.pl
WWW: www.mol.pl http://www.mol.pl/  
tel: 58 669 80 90
fax: 58 669 80 91

--
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/5538BB72.9020306%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Not able to generate HTML report of my Job.

2015-04-23 Thread Krishna Kumar Tiwari
Hi 

I followed the steps present 
on https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin
but stil can't see my html report on jenkins dashboard. However my job is 
running successful. 

-- 
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/a17deeab-7700-40ce-a318-73ffa9df9de2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting java exceptions while running my job from Jenkins server

2015-04-23 Thread Krishna Kumar Tiwari
Hi 

How can i find the jenkins version ? I haev attached the jenkins server 
home page snapshot.  and this is linux platform. I didn't try this in the 
past and i am trying this new. 

And I have added git source code details in my job config. and in Execute 
shell command running following kind of command.

cd /dir1/dir2/
python script.py

On Wednesday, 22 April 2015 20:17:23 UTC+5:30, Krishna Kumar Tiwari wrote:

 Hi 

 I am getting following exception while building my job. What may be the 
 problem ?

 http://pastebin.com/14C8ff6c


-- 
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/4b0849a1-9cc4-4fec-a904-defce055e890%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Docker Jenkins integration

2015-04-23 Thread Rahul Agrawal
Hi Guys,

I am new to Docker and I need to integrate Docker iwth jenkins. I have 
jenkins and docker in two different system, and docker runs on a Windows 
machine using a virtual box. 
So when I try to establish a connection between Jenkins and docker, it 
gives me this error javax.servlet.ServletException: 
javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: connect 
timed out at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796).

Kindly suggest some solution.

Thanks  Regards,
Rahul

-- 
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/ad968fbc-1f6f-433e-b3e8-d5022923210c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker Jenkins integration

2015-04-23 Thread Richard Bywater
Is the Virtual Box network interface accessible from the other box?

Richard

On 10:59PM, Thu, 23/04/2015 Rahul Agrawal rahulacces...@gmail.com wrote:

 Hi Guys,

 I am new to Docker and I need to integrate Docker iwth jenkins. I have
 jenkins and docker in two different system, and docker runs on a Windows
 machine using a virtual box.
 So when I try to establish a connection between Jenkins and docker, it
 gives me this error javax.servlet.ServletException:
 javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: connect
 timed out at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796).

 Kindly suggest some solution.

 Thanks  Regards,
 Rahul

 --
 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/ad968fbc-1f6f-433e-b3e8-d5022923210c%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/ad968fbc-1f6f-433e-b3e8-d5022923210c%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/CAMui946WfLucqLJ%3Dm7Dck45YV0g3SwUriwKLZPLinYs2sYZeCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker Jenkins integration

2015-04-23 Thread Rahul Agrawal
Hi Richard,

The ping requests to from my machin eto docker - vm are failing. I am 
trying to ping 192.168.59.103.

On Thursday, 23 April 2015 16:43:37 UTC+5:30, Richard Bywater wrote:

 Is the Virtual Box network interface accessible from the other box? 

 Richard

 On 10:59PM, Thu, 23/04/2015 Rahul Agrawal rahula...@gmail.com 
 javascript: wrote:

 Hi Guys,

 I am new to Docker and I need to integrate Docker iwth jenkins. I have 
 jenkins and docker in two different system, and docker runs on a Windows 
 machine using a virtual box. 
 So when I try to establish a connection between Jenkins and docker, it 
 gives me this error javax.servlet.ServletException: 
 javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: connect 
 timed out at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796).

 Kindly suggest some solution.

 Thanks  Regards,
 Rahul

 -- 
 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/ad968fbc-1f6f-433e-b3e8-d5022923210c%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/ad968fbc-1f6f-433e-b3e8-d5022923210c%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/05df9bd0-5242-4040-8278-120c00a3b723%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need basic guidance on defining job that monitors gerrit

2015-04-23 Thread Jim West
hi David,

  There is a gerrit plugin for jenkins that is quite handy. Once configured it 
will listen for gerrit events. You can then use these to trigger jobs. We use 
this primarily for review/gate jobs. A git review is done, patch set is 
uploaded (patch set creation event), the jenkins job tied to that repo 
(configured with scm of that repo) kicks off where we run tests and then that 
job will cast a gerrit vote.

  It's pretty hoopy.

-jimW

Sent from my iPad

 On Apr 23, 2015, at 17:00, KARR, DAVID dk0...@att.com wrote:
 
 I'm only somewhat familiar with Jenkins, and I need to learn how to do 
 something like this:
 
 Define a job that monitors an external gerrit server for approved artifacts, 
 and when new artifacts are produced, download them to a location on the 
 Jenkins server.
 
 Eventually we will perform additional automation on the artifact, but just 
 getting it downloaded is enough.
 
 Where do I start?
 
 -- 
 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/B8D164BED956C5439875951895CB4B22283F291E%40CAFRFD1MSGUSRIA.ITServices.sbc.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/79C3039A-1E89-41D6-98F9-A368D953230C%40jameswest.com.
For more options, visit https://groups.google.com/d/optout.


Re: Give permission to user via Java Code

2015-04-23 Thread Baptiste Mathus
Are you logged in with that USER1 account while using your plugin through
Jenkins?
Cheers

2015-04-14 8:59 GMT+02:00 Nitish Kumar nitishkuma...@gmail.com:

 Hi,

 Currently my java plugin for jenkins is creating and configuring jobs as
 anonymous user. I have created another user with name USER1.
 If I want to access jenkins with USER1 via java code, how should I do this.

 Currently, what I can create is Jenkins instance,
 Jenkins j=Jenkins.getInstance();

 Can someone point me right direction.


 Regards,
 Nitish


 --
 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/8fd841b9-2864-4ac8-a0f7-fa4b75d5e682%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/8fd841b9-2864-4ac8-a0f7-fa4b75d5e682%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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/CANWgJS5%2Bg%3DxBetetC41b0w9sNDTWm1%3Dg-JCMQFqouwAAsVUtgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Workflow 1.5 problems

2015-04-23 Thread Baptiste Mathus
Hi,

For 1) this plugin needs to be integrated. Or to be upgraded so that it
supports the WorkflowJob (possibly file an issue for the Workspace Cleanup
Plugin).
For 2) known issue see https://issues.jenkins-ci.org/browse/JENKINS-25550
and the ML archive.

Cheers

2015-04-13 21:12 GMT+02:00 Craig Rodrigues rodr...@freebsd.org:

 Hi,

 I am using:

 Jenkins 1.608
 Workflow 1.5
 FreeBSD 9.3

 I have the following workflow job:
 https://jenkins.freebsd.org/job/HEAD_Build_and_Test/

 source code for the job is here:


 https://github.com/freebsd/jenkins-config/blob/master/jobs/HEAD_Build_and_Test/config.xml

 I encountered two problems:

 (1)  There is no Wipe out Current Workspace option for this job
 (2)  Once in a while, a workflow will run, and get stuck.  It never
 completes,
and if I click on the X to stop it, it does not stop.  I don't
 have an example
of this behavior right now, because I restarted Jenkins, but I have
 seen it a few times.

 Are these known problems?  Are there any workarounds?

 --
 Craig

 --
 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/CAG%3DrPVfDNoQPtxzQ%2BGVKCb7E_S5ofjYuGvvui%2BsMgtRc%3Dn_Vag%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CAG%3DrPVfDNoQPtxzQ%2BGVKCb7E_S5ofjYuGvvui%2BsMgtRc%3Dn_Vag%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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/CANWgJS6sEb7Gw975Z7P8Bq7_9gMKk-%3DV9TZbjb_koEfLj-Es%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan java.lang.Object java.lang.Object

2015-04-23 Thread Baptiste Mathus
In the job, did you check run in sandbox ?

2015-04-15 23:07 GMT+02:00 Rinaldo DiGiorgio digitalrina...@gmail.com:

 Hi,

   I have configured workflow to use an anonymous git repository for the
 workflow script. I get the following error.

 Scripts not permitted to use staticMethod 
 org.codehaus.groovy.runtime.ScriptBytecodeAdapter compareLessThan 
 java.lang.Object java.lang.Object



 The In Process Script approval plugin shows no scripts to approve.
 Suggestions. Does workflow actually work with an SCM for the groovy script?




  --
 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/a04ae4c5-88e0-434b-92f6-7b34dbc9d065%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/a04ae4c5-88e0-434b-92f6-7b34dbc9d065%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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/CANWgJS4Ox098Zrr%2BNa-LDazrS61p-%2BqY4V5ibTrUg_tymoFRwQ%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-23 Thread Mark Waite
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 ankising...@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-users+unsubscr...@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/CAO49JtHYOSyt3C1V9WLd_nqT0Cb5CZrDrZQU9A6UD%3D5KNrWjTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.