how to modify/add/delete tool installations on a slave using Groovy?

2014-09-15 Thread Nico Mommaerts
Hey,

atm I am using a Groovy script to configure our different Jenkins masters, 
including the tool installations, eg:

mavenDesc = Jenkins.instance.getDescriptorByName(hudson.tasks.Maven);
if (mavenDesc != null) {
  MavenInstallation mi = new MavenInstallation(maven3.0.2, 
/home/jenkins/apache-maven-3.0.2);
  MavenInstallation mi32 = new MavenInstallation(maven3.2.3, 
/home/jenkins/apache-maven-3.2.3);
  mavenDesc.setInstallations(mi, mi32);
}

This works fine but now I want to do the same for the slaves (different OS 
so different locations). Can't figure out how though...this is the furthest 
I have gotten:

for (aSlave in jenkins.slaves) {
  for ( ToolLocationNodeProperty.ToolLocation toolLocation : aSlave.
getNodeProperties().get(ToolLocationNodeProperty.class).getLocations()) {
//println(toolLocation.getKey())
//println(toolLocation.getType())
println(toolLocation.getName())
println(toolLocation.getHome())
  }
}

All instances seem immutable though and I don't seem to find any way to add 
a Tool location to a slave.

Any ideas?

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


https certificate for https://pkg.jenkins-ci.org not valid

2014-09-15 Thread Guillaume Boucherie
Hi,

It seems that the https certificate for https://pkg.jenkins-ci.org site is 
no longer valid.
Could check that ?

Thanks
Guillaume Boucherie

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


Run A Script on Delete Project?

2014-09-15 Thread Robert Dunkley
Is it possible to run a Bash or Groovy script every time a job is deleted? 
Need to cleanup MySQL DB and a few other bits when a job is deleted.

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


Reg:using deploy plugin deploy into ear and war files

2014-09-15 Thread bandi pavankumar reddy
Hi friends i am using deploy plugin in jenkins deploying artifacts into
Jboss server it s displaying error like this if any body know that solution
give to me reply

Started by user pavankumar http://172.29.157.101:8080/jenkins/user/uascadmin
Building remotely on sample
http://172.29.157.101:8080/jenkins/computer/sample in workspace
D:\workspace\sampleproject
Copied 930 artifacts from Build
http://172.29.157.101:8080/jenkins/job/Build/ build number 26
http://172.29.157.101:8080/jenkins/job/Build/26/
Deploying D:\workspace\sampleproject\AgencyAllocationEAR.ear to
container JBoss 5.x Remote
  The undeployment phase of the redeploy action has failed:
org.codehaus.cargo.util.CargoException: Cannot undeploy deployable
org.codehaus.cargo.container.deployable.EAR[AgencyAllocationEAR.ear]
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to
exceptionorg.codehaus.cargo.util.CargoException
http://stacktrace.jenkins-ci.org/search?query=org.codehaus.cargo.util.CargoException:
Cannot deploy deployable
org.codehaus.cargo.container.deployable.EAR[AgencyAllocationEAR.ear]
at 
org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deploy(JBoss5xRemoteDeployer.java:216)
http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.deployentity=method
at 
org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeploy(AbstractDeployer.java:212)
http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.cargo.container.spi.deployer.AbstractDeployer.redeployentity=method
at 
hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:76)
http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter.deployentity=method
at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:116)
http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter$1.invokeentity=method
at 
hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:103)
http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.deploy.CargoContainerAdapter$1.invokeentity=method
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2462)
http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$FileCallableWrapper.callentity=method
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.performentity=method
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRequest.performentity=method
at hudson.remoting.Request$2.run(Request.java:328)
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Request$2.runentity=method
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.InterceptingExecutorService$1.callentity=method
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:63)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.security.auth.login.LoginException:
java.lang.NoSuchFieldError: TRACE
at 
org.jboss.logging.log4j.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:94)
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:150)
at 
org.jboss.security.ClientLoginModule.initialize(ClientLoginModule.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeCreatorPriv(Unknown 
Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)

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


Jenkins copy files to next/current build number

2014-09-15 Thread techie24by7
Hello All, 

How you doing. I have question on copying files to current/next build 
number after build completion. 


*Path :*  (22 is build number) , 


/var/lib/jenkins/jobs/workspace/builds/22/robot-plugin 


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/d/optout.


Pass one environment variable to another

2014-09-15 Thread Mayank Jhawar
Hi All Jenkins users

I am new to the jenkins world and trying my hands on to build and release 
for TIBCO Ear's.

So i have this structure in SVN

Codebase  - Branch
  - Trunk
  - Tags
  - GoldenCopy


I have multiple projects in Tag

//SVN_LOCATION/Project1/Tag1
//SVN_LOCATION/Project1/Tag2
//SVN_LOCATION/Project1/Tag3
//SVN_LOCATION/Project2/Tag1
//SVN_LOCATION/Project2/Tag2


Now i want to move //SVN_LOCATION/Project1/Tag2 to the next environment 
(Suppose from Test to UAT)

All i want is to pass the project name from first svn tag of parameterized 
to the second set.

I am currently using the This build is parameterized (Please see the 
screenshot below)

Can any one help me please.
I am stuck big time.
Please remember i am a newbie to jenkins world, so if you guys can be as 
explanitory as you can, it will be of great help.
I am not using any ANT scripts, i am using plain windows shell as this is 
on a windows box and i dont know ANT.

https://lh5.googleusercontent.com/-7SpTPS2smlc/VBcMp8eWDbI/UXM/mnu138KyWUE/s1600/jenkins.PNG


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


Re: https certificate for https://pkg.jenkins-ci.org not valid

2014-09-15 Thread Daniel Beck
I notified the infra team, they're looking into it.

On 15.09.2014, at 11:39, Guillaume Boucherie guillaume.bouche...@gmail.com 
wrote:

 Hi,
 
 It seems that the https certificate for https://pkg.jenkins-ci.org site is no 
 longer valid.
 Could check that ?
 
 Thanks
 Guillaume Boucherie
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

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


JUC SF Oct 23, 2014: Early Bird Discounts End This Sunday

2014-09-15 Thread Alyssa Tong
Hi All,

A friendly reminder to take advantage of the Early Bird prices for JUC SF
Oct 23, 2014. Prices will increase after this Sunday Sept 21.

Agenda is here
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+User+Conference+US+West+%28San+Francisco%29+Agenda

Registrations:

   - Attend in Person
   
https://www.eventbrite.com/e/jenkins-user-conference-us-west-san-francisco-oct-23-2014-tickets-10558684309
   - FREE Live Stream
   
https://www.eventbrite.com/e/jenkins-user-conference-us-west-san-francisco-live-stream-tickets-12240011203

thanks
alyssa

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


Re: Cucumber Test Result Plugin - It does not appear at my window the test results

2014-09-15 Thread Jose Otavio Carlomagno Filho
I have the same problem when using the plugin. It seems to be installed and 
configured correctly, I ran the job and it finished successfully, but I 
don't see those pretty Cucumber test results.

The end of the build log shows:

[Cucumber Tests] Parsing results.
[Cucumber Tests] parsing cucumber.json


Seems to be working correctly, I even see there's a cucumberResult.xml file 
generated inside the build folder, but when I click the Test Result link it 
just shows the default Jenkins reports.



On Wednesday, June 4, 2014 4:32:50 PM UTC-3, teilo wrote:

 If you mean the graph you need at least to runs before it will display. 

 For the individual build you shoul have a Testresult link that will let 
 you drill down into the results.
 If you don't have that can you share the end of your build log. 


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


Re: Upgrade from 1.526 - current: pitfalls?

2014-09-15 Thread Mark Waite
If the system has not been upgraded in that long, you should probably
consider using the long term support release (LTS) instead of upgrading to
the latest tip of development.

Mark Waite

On Mon, Sep 15, 2014 at 2:59 PM, Jamie Lawrence jlawre...@anchorfree.com
wrote:

 Hi all,

 I¹ve inherited a Jenkins install that (to my naïve eyes) looks pretty
 straightforward. It is 1.526, few plugins, Centos environment.

 Going through the Wiki and poking around Google, I¹m not seeing anything
 indicating much in the way of upgrade pain in going from 1.526 to 1.580,
 aside from the usual misc. seemingly one-off reports. Does anyone know
 differently? I¹m taking the usual precautions, this is coming up as a
 separate system first, etc. Are there any good reasons to not upgrade to
 1.580?

 Thanks,

 -j

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




-- 
Thanks!
Mark Waite

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


Re: Upgrade from 1.526 - current: pitfalls?

2014-09-15 Thread Jamie Lawrence

 If the system has not been upgraded in that long, you should probably consider
 using the long term support release (LTS) instead of upgrading to the latest 
 tip
 of development.

Is that because this particular system does not seem to get enough attention, 
or because there are changes in between that are potentially problematic and I 
should use it as a waypoint on the way to catching up, or some other reason?

Thanks for the input.

-j

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


Re: Upgrade from 1.526 - current: pitfalls?

2014-09-15 Thread Mark Waite
On Mon, Sep 15, 2014 at 3:08 PM, Jamie Lawrence jlawre...@anchorfree.com
wrote:


If the system has not been upgraded in that long, you should probably
 consider
using the long term support release (LTS) instead of upgrading to the
 latest tip
  of development.

  Is that because this particular system does not seem to get enough
 attention, or because there are changes in between that are potentially
 problematic and I should use it as a waypoint on the way to catching up, or
 some other reason?


I'm not aware of problematic changes in that range.  I've preferred to stay
on the LTS version because it gets more testing, has longer time between
updates, and is only constructed after some time of people test driving
various of the cutting edge versions.

Mark Waite


  Thanks for the input.

  -j

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




-- 
Thanks!
Mark Waite

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


Re: Upgrade from 1.526 - current: pitfalls?

2014-09-15 Thread Jamie Lawrence
 I'm not aware of problematic changes in that range.  I've preferred to stay on
 the LTS version because it gets more testing, has longer time between
 updates, and is only constructed after some time of people test driving
 various of the cutting edge versions.

Thanks for the explanation. I appreciate it.

-j

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


Re: Upgrade from 1.526 - current: pitfalls?

2014-09-15 Thread Daniel Beck
Generally, if you prefer rarely updating Jenkins, the LTS would be a better 
choice. Four major releases per year, with two bugfix releases for each of them.

- Jenkins uses Jetty as default container (when running `java -jar 
jenkins.war`) since 1.535, resulting in possible issues with very large form 
submissions (like the resolved JENKINS-20327). See there for a solution.
- You'll need to upgrade some plugins that use core API that has been removed 
in 1.577 if you haven't already. Email-ext is probably the most prominent one.
- Then there's a new feature since 1.566 that by default lowercases all user 
names on disk, so if you have users named 'Foo', 'FOO', and 'foo', only one of 
them will be left after the upgrade. This should not make changes to 
permissions assignments necessary though.
- If you're using the Jenkins REST API, prepare to have quite a bit of spam in 
your jenkins.log since 1.577. This'll be reduced in the future again.

On 15.09.2014, at 22:59, Jamie Lawrence jlawre...@anchorfree.com wrote:

 Hi all,
 
 I¹ve inherited a Jenkins install that (to my naïve eyes) looks pretty
 straightforward. It is 1.526, few plugins, Centos environment.
 
 Going through the Wiki and poking around Google, I¹m not seeing anything
 indicating much in the way of upgrade pain in going from 1.526 to 1.580,
 aside from the usual misc. seemingly one-off reports. Does anyone know
 differently? I¹m taking the usual precautions, this is coming up as a
 separate system first, etc. Are there any good reasons to not upgrade to
 1.580? 
 
 Thanks,
 
 -j
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 

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


Re: Upgrade from 1.526 - current: pitfalls?

2014-09-15 Thread Jamie Lawrence


On 9/15/14, 2:27 PM, Daniel Beck m...@beckweb.net wrote:

Generally, if you prefer rarely updating Jenkins, the LTS would be a
better choice. Four major releases per year, with two bugfix releases for
each of them.

[...]

Thanks for the information - that¹s a really very handy list.

I do appreciate it.

-j

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


Can not display new builds when i set discard old builds.

2014-09-15 Thread 丁建雄
Hi all,

I set discard old builds in my jenkins. It's work, but new builds can not 
display automatically. I need reload configuration from disk manually.
Is there any way can automate display new builds whit discard old builds?


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/d/optout.


Re: Can not display new builds when i set discard old builds.

2014-09-15 Thread 丁建雄
My jenkins version is 1.538


在 2014年9月16日星期二UTC+8上午11时26分54秒,丁建雄写道:

 Hi all,

 I set discard old builds in my jenkins. It's work, but new builds can 
 not display automatically. I need reload configuration from disk manually.
 Is there any way can automate display new builds whit discard old builds?


 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/d/optout.


Stuck build numbers

2014-09-15 Thread Marius Gedminas
I've got a Jenkins job 'ivija-my360' that shows builds #1-#19 in the
history sidebar, builds a build #20 every time I try to build it, and
then forgets about it immediately.

It also says last stable build is #24.

$ ls -l /var/lib/jenkins/jobs/ivija-my360/
total 28
drwxr-xr-x 26 jenkins jenkins 4096 Sep 16 07:23 builds
-rw-r--r--  1 jenkins jenkins 2412 Sep 15 22:38 config.xml
-rw-r--r--  1 jenkins jenkins 5130 Sep 16 07:23 disk-usage.xml
lrwxrwxrwx  1 jenkins jenkins   22 Sep 15 23:08 lastStable - 
builds/lastStableBuild
lrwxrwxrwx  1 jenkins jenkins   26 Sep 15 23:08 lastSuccessful - 
builds/lastSuccessfulBuild
-rw-r--r--  1 jenkins jenkins3 Sep 15 23:08 nextBuildNumber
drwxr-xr-x  4 jenkins jenkins 4096 Sep 15 19:49 outOfOrderBuilds
-rw-r--r--  1 jenkins jenkins  244 Sep 16 07:36 scm-polling.log

$ cat /var/lib/jenkins/jobs/ivija-my360/nextBuildNumber
21

$ ls -l /var/lib/jenkins/jobs/ivija-my360/builds/
total 96
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 1 - 2013-02-22_16-31-37
lrwxrwxrwx 1 jenkins jenkins   19 Feb 28  2013 10 - 2013-02-28_08-21-38
lrwxrwxrwx 1 jenkins jenkins   19 Mar 20  2013 11 - 2013-03-20_07-04-11
lrwxrwxrwx 1 jenkins jenkins   19 Apr  9  2013 12 - 2013-04-09_14-22-59
lrwxrwxrwx 1 jenkins jenkins   19 Apr  9  2013 13 - 2013-04-09_17-14-00
lrwxrwxrwx 1 jenkins jenkins   19 Apr  9  2013 14 - 2013-04-09_19-02-26
lrwxrwxrwx 1 jenkins jenkins   19 Apr  9  2013 15 - 2013-04-09_20-46-00
lrwxrwxrwx 1 jenkins jenkins   19 Apr 16  2013 16 - 2013-04-16_15-40-00
lrwxrwxrwx 1 jenkins jenkins   19 Apr 19  2013 17 - 2013-04-19_09-24-25
lrwxrwxrwx 1 jenkins jenkins   19 Sep 15 19:59 19 - 2014-09-15_19-59-26
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 2 - 2013-02-22_16-31-55
lrwxrwxrwx 1 jenkins jenkins   19 Sep 15 23:08 20 - 2014-09-15_23-08-09
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_16-31-37
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_16-31-55
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_16-32-55
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_16-33-55
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_18-56-57
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_19-30-01
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_20-22-16
drwxr-xr-x 2 jenkins jenkins 4096 Feb 22  2013 2013-02-22_20-56-34
drwxr-xr-x 2 jenkins jenkins 4096 Feb 27  2013 2013-02-22_21-04-49
drwxr-xr-x 2 jenkins jenkins 4096 Mar 12  2013 2013-02-28_08-21-38
drwxr-xr-x 2 jenkins jenkins 4096 Apr  5  2013 2013-03-20_07-04-11
drwxr-xr-x 2 jenkins jenkins 4096 Apr  9  2013 2013-04-09_14-22-59
drwxr-xr-x 3 jenkins jenkins 4096 Apr  9  2013 2013-04-09_17-14-00
drwxr-xr-x 3 jenkins jenkins 4096 Apr  9  2013 2013-04-09_19-02-26
drwxr-xr-x 3 jenkins jenkins 4096 Apr 15  2013 2013-04-09_20-46-00
drwxr-xr-x 3 jenkins jenkins 4096 Apr 16  2013 2013-04-16_15-40-00
drwxr-xr-x 3 jenkins jenkins 4096 May 29  2013 2013-04-19_09-24-25
drwxr-xr-x 3 jenkins jenkins 4096 Jul 15  2013 2013-06-27_06-10-43
drwxr-xr-x 3 jenkins jenkins 4096 Jul 16  2013 2013-07-16_13-56-38
drwxr-xr-x 2 jenkins jenkins 4096 Jul 16  2013 2013-07-16_15-33-53
drwxr-xr-x 2 jenkins jenkins 4096 Jul 16  2013 2013-07-16_17-47-12
drwxr-xr-x 2 jenkins jenkins 4096 Mar 16  2014 2013-07-17_15-40-49
drwxr-xr-x 2 jenkins jenkins 4096 Sep 16 00:02 2014-09-15_19-59-26
drwxr-xr-x 2 jenkins jenkins 4096 Sep 16 07:23 2014-09-15_23-08-09
lrwxrwxrwx 1 jenkins jenkins   19 Jul 16  2013 21 - 2013-07-16_15-33-53
lrwxrwxrwx 1 jenkins jenkins   19 Jul 16  2013 22 - 2013-07-16_17-47-12
lrwxrwxrwx 1 jenkins jenkins   19 Jul 17  2013 24 - 2013-07-17_15-40-49
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 3 - 2013-02-22_16-32-55
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 4 - 2013-02-22_16-33-55
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 5 - 2013-02-22_18-56-57
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 6 - 2013-02-22_19-30-01
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 7 - 2013-02-22_20-22-16
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 8 - 2013-02-22_20-56-34
lrwxrwxrwx 1 jenkins jenkins   19 Feb 22  2013 9 - 2013-02-22_21-04-49
lrwxrwxrwx 1 jenkins jenkins2 Sep 16 01:06 lastFailedBuild - 19
lrwxrwxrwx 1 jenkins jenkins2 Jul 17  2013 lastStableBuild - 24
lrwxrwxrwx 1 jenkins jenkins2 Jul 17  2013 lastSuccessfulBuild - 24
lrwxrwxrwx 1 jenkins jenkins2 Dec 11  2013 lastUnstableBuild - -1
lrwxrwxrwx 1 jenkins jenkins2 Sep 16 07:23 lastUnsuccessfulBuild - 20

$ ls -l /var/lib/jenkins/jobs/ivija-my360/outOfOrderBuilds/
drwxr-xr-x 3 jenkins jenkins 4096 May 31  2013 2013-05-29_12-19-08
drwxr-xr-x 3 jenkins jenkins 4096 Jul 17  2013 2013-07-17_14-15-20


I have seen the some builds are out of order, do you want to sweep them
under the rug warning in Manage Jenkins once or twice, and pushed the
button.  This warning doesn't show up now.

I'm running Jenkins 1.580.


This is similar to https://issues.jenkins-ci.org/browse/JENKINS-15156.
What's different from the comments is that 

Re: Jenkins/GitHub integration

2014-09-15 Thread Marius Gedminas
On Fri, Sep 12, 2014 at 11:34:44AM -0400, Mike Seda wrote:
 Hi All,
 I am a Systems Administrator who was recently asked to perform a
 Jenkins/GitHub integration.
 
 The requirements are...
 
 1) When a GitHub pull request is made, start a Jenkins build.
 2) Tell GitHub through the APIs that a Jenkins build is running.
 3) When the Jenkins build finishes, inform GitHub that the Jenkins
 build succeeded/failed.
 4) Update the GitHub pull request with a comment containing the URL
 of the webapp built for the branch after having deployed it.
 
 I am being told by my internal Developers that Requirement # 1
 involves exposing my Jenkins server to the 1000+ GitHub IPs [as
 documented below]:
 https://help.github.com/articles/what-ip-addresses-does-github-use-that-i-should-whitelist
 
 The most secure of the two options [HTTPS with HTTP Basic Auth]
 presented at the above link has me confused though... Where do we
 configure the username and password for the HTTPS with HTTP Basic
 Auth in GitHub? I know how to configure it on my end, but how do I
 tell GitHub about it - so that the GitHub POST to my Jenkins server
 will actually succeed?

Put a reverse HTTP proxy in front of Jenkins that allows anyone
anonymous access to /github-webhook and nothing else.

Supposedly this is secure (the GitHub plugin doesn't trust the data
submitted but just extracts the repository name and polls it to see
whether there were any real changes).

Excerpt from my Apache config:

  Location /
AuthType Basic
AuthName jenkins.example.com
AuthUserFile /etc/apache2/htpasswd
Require valid-user
  /Location
  Location /github-webhook
# 
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-SecurityImplications
# says it's fine
Allow from all
Satisfy Any
  /Location

 Also, is there any way to meet the above requirements without
 exposing my Jenkins server to GitHub?

You only need that one endpoint and only for your requirement (1).

 Please let me know how most folks meet the aforementioned
 requirements - as I am told that this is already a solved problem
 for many shops.
 
 BTW, we are pretty certain that we will need the following plugin:
 https://wiki.jenkins-ci.org/display/JENKINS/Github+pull+request+builder+plugin
 
 However, I am not quite sure how to leverage it at the moment.

(I haven't used it yet.)

Marius Gedminas
-- 
When the grammar checker identifies an error,
it suggests a correction and can even makes
some changes for you.
-- Microsoft Word for Windows 2.0 User's Guide.


signature.asc
Description: Digital signature