Quick q regarding: Build Flow DSL + Rebuild plugin.

2013-07-01 Thread 444
I want to run a number of builds in parallel, ignoring all build statuses 
(failed, aborted, etc).

I have the following set up:

parallel (
   { ignore(ABORTED) { 
   build(BUILDA)
   } } ,
   { ignore(ABORTED) { 
   build(BUILDB) 
   } } 
)


Lets say BUILDA hangs,

I manually rebuild it by using the Rebuild plugin, then abort the hanging 
old job BUILDA, end up having a failure for project containing the above 
code... 

I don't particularly care that the Build Flow Plugin doesn't capture my 
'rebuilt' job. I am more interested if I am doing something wrong.. - I 
want the job to ignore all build statuses and report a SUCCESS.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Quick q regarding: Build Flow DSL + Rebuild plugin.

2013-07-01 Thread nicolas de loof
2013/7/1 444 lom...@gmail.com

 I want to run a number of builds in parallel, ignoring all build statuses
 (failed, aborted, etc).

 I have the following set up:

 parallel (
{ ignore(ABORTED) {
build(BUILDA)
} } ,
{ ignore(ABORTED) {
build(BUILDB)
} }
 )


 Lets say BUILDA hangs,

 I manually rebuild it by using the Rebuild plugin, then abort the
 hanging old job BUILDA, end up having a failure for project containing
 the above code...


not expected, probably a bug in ignore() to capture cancelled job



 I don't particularly care that the Build Flow Plugin doesn't capture my
 'rebuilt' job. I am more interested if I am doing something wrong.. - I
 want the job to ignore all build statuses and report a SUCCESS.


build flow anyway won't capture you rebuild as this second run wasn't
triggered by the flow, so have no reference to.



  --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Execute shell withoout -xe in jenkins job

2013-07-01 Thread VinodKumar
Hi All,
I am using execute shell option in jenkins.
My problem is jenkins is using /bin/sh -xe to run the scripts
thi -xe is causing failure for some options which are running fine without
it.
is there any option where I can avoid -xe option in jenkins?/

Thanks  Regards
Vinod



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Execute-shell-withoout-xe-in-jenkins-job-tp4671266.html
Sent from the Jenkins users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Execute shell withoout -xe in jenkins job

2013-07-01 Thread Richard Bywater
Given what the xe flags do I'd be very suprised if that was the issue - are
you sure it's not more to do with the user account which the job is
executing under?

Otherwise if you provide more details about what error/s you are seeing
then we may be able to assist.

Richard.

On Monday, July 1, 2013, VinodKumar wrote:

 Hi All,
 I am using execute shell option in jenkins.
 My problem is jenkins is using /bin/sh -xe to run the scripts
 thi -xe is causing failure for some options which are running fine
 without
 it.
 is there any option where I can avoid -xe option in jenkins?/

 Thanks  Regards
 Vinod



 --
 View this message in context:
 http://jenkins-ci.361315.n4.nabble.com/Execute-shell-withoout-xe-in-jenkins-job-tp4671266.html
 Sent from the Jenkins users mailing list archive at Nabble.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 javascript:;.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Vote for fixes in next LTS?

2013-07-01 Thread Steffen Breitbach
Hi everyone!

Is there a way to vote for fixes for the next LTS release?

We would like to see the fingerprinting and lazy loading related issues
fixed.

- Fixed file descriptor leak in fingerprint computation. (issue 18351)
- Fingerprint action deserialization problem fixed. (issue 17125)
- Optimizations in fingerprint recording. (issue 16301)
- Properly find parent POMs when fingerprinting a Maven project. (issue
17775)
- Mitigation of exception from fingerprinting in a Maven project when a
parent POM could not be located. (issue 17775)
- NullPointerException related to lazy loading when loading some builds
using fingerprinting. (issue 16845)
- Finding the last failed build for a job (e.g. from a view column)
broke lazy loading. (issue 16023)

Regards
  Steffen

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Is it possible to allow access to a whole team or group through the Bitbucket OAuth Plugin?

2013-07-01 Thread mama_k
Hi,

I would like to use the Bitbucket OAuth Plugin in combination with the 
Matrix-based security. The input field says User/group to add. Does the 
Bitbucket OAuth Plugin support adding whole teams or even better groups of 
teams to the Matrix-based security? Teams can change and I would like to 
minimize the overhead of managing the Access to Jenkins.
If I add a team by its name, only the team account is added and its members 
have no access. I also tried to add something like myTeam/Developers, 
also to no avail. The documentation of the plugin doesn't state what's 
actually supported and how it must be entered.

Thanks,
Marcel

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Jenkins master-slave connection through Java Web Start - security concerns

2013-07-01 Thread Costin Caraivan
Hello,

I'm not sure I understand entirely the Jenkins slave connection process for
Java Web Start.
When connecting slaves through Java Web Start the slave connects initially
to the Jenkins HTTP/HTTPS port, to get the JNLP file.
After that, the actual slave connection is on a different port.

First of all, I'm not sure I understand the initial connection process - is
the secret used for the connection a sort of public key?
Secondly, is the actual slave connection secure? Is it actually over HTTPS
or SSH or another secure channel?

Thank you,
_
Costin Caraivan

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re:Jenkins master-slave connection through Java Web Start - security concerns

2013-07-01 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
The connection between the slave and the master, when using JNLP to start 
slaves, is not a secure channel.

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: Jul  1 2013 07:51:55

Hello,

I'm not sure I understand entirely the Jenkins slave connection process for 
Java Web Start.
When connecting slaves through Java Web Start the slave connects initially to 
the Jenkins HTTP/HTTPS port, to get the JNLP file.
After that, the actual slave connection is on a different port.

First of all, I'm not sure I understand the initial connection process - is the 
secret used for the connection a sort of public key?
Secondly, is the actual slave connection secure? Is it actually over HTTPS or 
SSH or another secure channel?

Thank you,
_
Costin Caraivan
-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Version Number Plugin question

2013-07-01 Thread DaveS
Jenkins ver. 1.509.1 http://jenkins-ci.org/
Version Number 
Plug-Inhttps://wiki.jenkins-ci.org/display/JENKINS/Version+Number+Plugin
1.4.1https://jenkinswin1.preventice.com/pluginManager/plugin/versionnumber/thirdPartyLicenses

I am sure that the answer to this is easy, but I just haven't got it 
figured out.  I can't get the version number to increment.  I am trying to 
use the number to create directories to store files from the different 
builds.

Environment Variable Name  =  TestVersion
Version Number Format String  =  0001
Don't increment failed builds.

mkdir -p C:/NewBuilds/${TestVersion}


TestVersion is always 0001.  Tell me what I am setting incorrectly.  Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Version Number Plugin question

2013-07-01 Thread Daniel Beck
Try clicking the question mark next to the 'Version Number Format String' text 
field, the behavior is well documented.

 The version number format string is used to generate the version number. It 
 will be passed through unaltered, except that any expression of the form 
 ${variable_name, argument} will be replaced according to the table below.


The format string '${BUILDS_ALL_TIME, }' works beautifully.

0001
0002
0003
etc.

On 01.07.2013, at 22:04, DaveS dstev...@preventice.com wrote:

 Jenkins ver. 1.509.1
 Version Number Plug-In1.4.1
 
 I am sure that the answer to this is easy, but I just haven't got it figured 
 out.  I can't get the version number to increment.  I am trying to use the 
 number to create directories to store files from the different builds.
 
 Environment Variable Name  =  TestVersion
 Version Number Format String  =  0001
 Don't increment failed builds.
 
 mkdir -p C:/NewBuilds/${TestVersion}
 
 
 TestVersion is always 0001.  Tell me what I am setting incorrectly.  Thanks.
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Unable to start slave on macosx, solaris and netbsd after upgrading to jenkins 1.520

2013-07-01 Thread crbeng
These slaves were using java 1.5.  So I upgraded them all to 1.6.  But 
slaves cannot start using the same old method (launch slave agents on Unix 
machines using ssh) as before the upgrade.  I tried to debug by switching 
to launch slave vis execution of command on Master.  ssh slave-machine 
scp master:/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar 
/jenkins_home/maven-agent.jar worked fine but ssh slave-machine cd 
/jenkins/home  java -jar slave.jar failed. There is no permission 
problem. Why did the copy fail? (My other slaves e.g. linux, linux ia64, 
freebsd etc that have been using java 1.6 all came up without any problems.)
...

[07/01/13 16:14:52] [SSH] Checking java version of java

[07/01/13 16:14:52] [SSH] java -version returned 1.6.0_27.
[07/01/13 16:14:52] [SSH] Starting sftp client.
[07/01/13 16:14:52] [SSH] Copying latest slave.jar...
[07/01/13 16:14:52] [SSH] Copied 326,006 bytes.
Expanded the channel window size to 4MB
[07/01/13 16:14:52] [SSH] Starting slave process: cd '/jenkins_home'  java  
-jar slave.jar
===[JENKINS REMOTING CAPACITY]===channel started

Slave.jar version: 2.24
This is a Unix slave

hudson.util.IOException2: Failed to copy 
/jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to 
/jenkins_home/maven-agent.jar
at hudson.FilePath.copyTo(FilePath.java:1731)
at 
hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90)
at 
hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:473)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:347)
at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:712)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:498)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Remote call on b-solarisx86-02 failed
at hudson.remoting.Channel.call(Channel.java:731)
at hudson.FilePath.write(FilePath.java:1625)
at hudson.FilePath.copyTo(FilePath.java:1724)
... 12 more
Caused by: java.lang.NoClassDefFoundError: 
org/apache/commons/io/input/ProxyInputStream
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at 
hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:289)
at 
hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredField(Class.java:1880)
at 
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.init(ObjectStreamClass.java:413)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
at hudson.remoting.UserRequest.perform(UserRequest.java:98)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at 

Re: Unable to start slave on macosx, solaris and netbsd after upgrading to jenkins 1.520

2013-07-01 Thread crbeng
I tried a few times more and now it gives me remote call ... failed.  And 
I can run java -jar slave.jar locally on the slave although it gives the 
expected complaint that I should not be starting the slave from the console.

[07/01/13 16:52:10] [SSH] Checking java version of java
[07/01/13 16:52:10] [SSH] java -version returned 1.6.0_27.
[07/01/13 16:52:10] [SSH] Starting sftp client.
[07/01/13 16:52:10] [SSH] Copying latest slave.jar...
[07/01/13 16:52:10] [SSH] Copied 326,006 bytes.
Expanded the channel window size to 4MB
[07/01/13 16:52:10] [SSH] Starting slave process: cd '/jenkins_home'  java  
-jar slave.jar

===[JENKINS REMOTING CAPACITY]===channel started
java.io.IOException: Remote call on b-solarisx86-02 failed
at hudson.remoting.Channel.call(Channel.java:731)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:451)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:347)
at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:712)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:498)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

...




builder@b-solarisx86-02:/jenkins_home$ java -jar slave.jar 
WARNING: Are you running slave agent from an interactive console?
If so, you are probably using it incorrectly.
See 
http://wiki.jenkins-ci.org/display/JENKINS/Launching+slave.jar+from+from+console
===[JENKINS REMOTING 
CAPACITY]===rO0ABXNyABpodWRzb24ucmVtb3RpbmcuQ2FwYWJpbGl0eQABAgABSgAEbWFza3hwAB4=??

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.