Re: mirroring releases

2014-01-26 Thread Christopher Orr

On 01/22/2014 05:09 PM, fou noway wrote:

Hi, we would like to setup a release mirror.
As stated on http://jenkins-ci.org/content/mirrors, I tried to contact
tyler, but can't seem to be able to reach him. What should we do ?
BTW, http://jenkins-ci.org/content/mirrors and
http://mirrors.jenkins-ci.org/status.html seem outdated.


I see that one mirror appears to be offline that's mentioned in the 
list, but otherwise the mirror status page seems to be up-to-date?


Anyway, adding a mirror sounds good.  Where would it be located?
I'm sure Tyler will respond when he gets a chance.  Otherwise, I can 
remind him in person next week at FOSDEM :)


Regards,
Chris

--
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 User Conference 2014

2014-02-02 Thread Christopher Orr

Hi all,

In my Cologne-biased opinion, I agree that it's a city very central 
within (western) Europe and is easily reached by plane/train/automobile 
for a *lot* of people.
But I can also understand that Berlin is also a very well-served 
destination, and is presumably a cheaper place for people to stay, and 
it may well have the largest software dev population in Germany (as for 
*Jenkins user count*, I have no idea).


But I think so long as we're talking about a European Jenkins 
conference, i.e. it's not being marketed as Germany-specific, then I 
think the city itself shouldn't be a big issue.  I can think of people 
working in the UK and Ireland, for example, who would likely travel to 
an easily-reachable city for a good Jenkins user conference.


Regards,
Chris


On 02/02/2014 12:07 PM, Michael Hüttermann wrote:

Hi,

Fred's question is a very good one.


Best regards
Michael



Alyssa Tong  hat am 1. Februar 2014 um 17:14 geschrieben:


Hi Fred,

The date may change :o)

The thought is that Berlin is easily accessible for those coming from
outside of the city.

Where would you say has the bulk of sw engineers?

thanks,
alyssa

On Fri, Jan 31, 2014 at 4:51 AM, FredG  wrote:


Hi Alyssa,

Good to hear that there will be a JUC in Berlin on June 5h.
Unfortunately I will not be able to attend, because I'm on vacation in the
first week of June.

Just out of curiosity, what made Berlin win over Cologne as the location?

Regards,

Fred


On Friday, January 31, 2014 1:46:22 AM UTC+1, Alyssa Tong wrote:


Hi All,

Last year, many said they couldn't attend the Jenkins User Conference in
Palo Alto due to costs (travel expenses).  This year, we've decided to add
JUC East Coast (US), and Germany in addition to JUC Israel and California.
Please see conference dates below, we are working on nailing down exact
dates, pls note that some of these dates may change. With that said, the
*Call
for
Papers*is
officially open. If you have suggestions for topics and themes please do
share your ideas.

I would also like to know  where on the East Coast would be the most
central location, that would be convenient and accessible travel wise for
our attendees or if any one know which city on the East Coast has the most
Jenkins users as that can help determine which city to hold the conference.
Some cities that were suggested are Washington DC, Orlando, Philly, Boston.
Any thoughts on these cities?

WRT sponsorship, I know that Lisa has been hard at work putting together
the 2014 sponsor packages. If you're interested in sponsoring at any of
these events pls contact Lisa Wells
(lwe...@cloudbees.com). FYI, last year's sponsorship packages were taken
up very fast, space is limited.

*JUC 2014*

 - JUC Berlin, Germany [June 5]
 - JUC US East Coast [June]
 - JUC Israel [tbd - previous years has been in July]
 - JUC California [October]

*Call for Papers Deadline*

 - JUC Berlin, Germany [March 30, 2014]
 - JUC US East Coast [ March 30, 2014]
 - JUC Israel [ March 30, 2014]
 - JUC California [July 13, 2014]

Thanks in advance for your thoughts and feedback.

Regards,
Alyssa & the OC


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



To unsubscribe from this group and stop receiving emails from it, send an
email to juc-oc-ext+unsubscr...@cloudbees.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: Is every build kept in the JVM?

2012-09-22 Thread Christopher Orr
For the benefit of anybody not on the developers' mailing list, Kohsuke 
is currently implementing lazy-loading of job information!


This is currently running on ci.jenkins-ci.org and you can beta test the 
latest lazy-load build by grabbing jenkins.war from there:

https://ci.jenkins-ci.org/job/jenkins_lazy_load/

The relevant mailing list thread is here:
https://groups.google.com/group/jenkinsci-dev/browse_thread/thread/ae2e44f4b5b6903a

If you have issues with this build, there's a thread on GitHub:
https://github.com/jenkinsci/jenkins/pull/573

Regards,
Chris


On 09/10/2012 08:00 PM, Christoph Kutzinski wrote:

I'd say it's intentionally AND a memory leak ;-)
This is IMO one of the major pain points with Jenkins. We keep 'only' 3
weeks worth of builds and still it takes >40 minutes for a Jenkins
startup - spending the majority of the time in loading the builds.


Unfortunately, it doesn't seem to be easy to fix this without breaking
existing API. I had once tried to figure out an easy way to load old
builds only on demand, but gave up after several hours.

As Mark already said, the currently preferred solution is to remove old
builds.


Christoph

Am 10.09.2012 19:08, schrieb bearrito:

I wonder if that is intentional or a memory leak.

Great to know this by the way. Does it load all the metadata on service
startup or does it slowly accumulate?

-barrett

On Monday, September 10, 2012 8:58:44 AM UTC-4, Mandeville, Rob wrote:

I’m getting OOM exceptions left and right in my Jenkins instance.
It’s a fairly large installation, with over 100 slave nodes, and I’m
running in Java 6 HotSpot. I generated a heap dump (great feature
to do that via the Web page, BTW) and finding something that was
surprising to me.

It appears that every build that Jenkins “remembers” is kept in the
JVM itself. That is, when I’m keeping the last 400 runs of a given
job, I have the metadata (though not the logs, I hope…) of all 400
runs in the JVM. Is this in fact the case? Is there a way to store
build information historically without keeping it in core? Is this
a problem for other users?

Thanks in advance,

--Rob

The information in this message is for the intended recipient(s)
only and may be the proprietary and/or confidential property of
Litle & Co., LLC, and thus protected from disclosure. If you are not
the intended recipient(s), or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any use, dissemination, distribution or copying of
this communication is prohibited. If you have received this
communication in error, please notify Litle & Co. immediately by
replying to this message and then promptly deleting it and your
reply permanently from your computer.







Re: jenkins-maven-android when running throwing the error "android-sdk-linux/platforms" is not a directory"

2012-09-23 Thread Christopher Orr
Just to complete this thread, it was resolved on StackOverflow (well, 
the Ubuntu version) as being a permissions issue:

http://askubuntu.com/q/190938/91943


On 09/22/2012 04:17 AM, sam wrote:

paste bin
http://pastebin.com/Dwe7hjXm

On Saturday, September 22, 2012 11:31:02 AM UTC+9:30, sam wrote:

start setting up the jenkins-maven-android and i'm facing an issue
when running the jenkin job.

* My Machine Details

>  $uname -a

>  Linux development2 3.0.0-12-virtual #20-Ubuntu SMP Fri Oct
>  7 18:19:02 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

* Steps to install the Android SDK in Ubuntu
https://help.ubuntu.com/community/AndroidSDK

since i'm working on headless env (ssh to client machine) i used
following command to install the platform tools

android update sdk --no-ui

* download apache maven and install on
http://maven.apache.org/download.html

mvn -version output

>  root@development2:/opt/android-sdk-linux/tools# mvn -version Apache
>  Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+)
Maven home: /opt/apache-maven-3.0.4

Java version: 1.6.0_24, vendor: Sun Microsystems Inc.

Java home: /usr/lib/jvm/java-6-openjdk/jre Default

locale: en_US,

platform encoding: UTF-8

OS name: "linux",

version: "3.0.0-12-virtual",

arch: "amd64",

family: "unix"

root@development2:/opt/android-sdk-linux/tools#

* ran the following two command as mention in below

>  sudo apt-get update
>  sudo apt-get install ia32-libs

http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk


http://developer.android.com/sdk/installing/index.html


As error suggest i gave the path to android SDK in jenkins build
config still im getting the error
clean install -Dandroid.sdk.path=/opt/android-sdk-linux

Can someone help me to resolve this.

Thanks

Error I'm Getting

Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal

com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources
(default-generate-sources) on project base-template: Execution
default-generate-sources of goal

com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources
failed: Path "/opt/android-sdk-linux/platforms" is not a directory.
Please provide a proper Android SDK directory path as configuration
parameter ... in the plugin
. As an alternative, you may add the parameter to
commandline: -Dandroid.sdk.path=... or set environment variable
ANDROID_HOME.
cause : Execution default-generate-sources of goal

com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources
failed: Path "/opt/android-sdk-linux/platforms" is not a directory.
Please provide a proper Android SDK directory path as configuration
parameter ... in the plugin
. As an alternative, you may add the parameter to
commandline: -Dandroid.sdk.path=... or set environment variable
ANDROID_HOME.
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal

com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources
(default-generate-sources) on project base-template: Execution
default-generate-sources of goal

com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources
failed: Path "/opt/android-sdk-linux/platforms" is not a directory.
Please provide a proper Android SDK directory path as configuration
parameter ... in the plugin
. As an alternative, you may add the parameter to
commandline: -Dandroid.sdk.path=... or set environment variable
ANDROID_HOME.
at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)

at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

at

org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

at

org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at
org.jvnet.hudson.maven3.launcher

Re: Slides from user conference

2012-10-10 Thread Christopher Orr
I think previously https://twitter.com/jenkinsconf has posted some 
slides and/or videos.


You could try asking there, or checking with the organisers at Cloudbees.

Regards,
Chris


On 10/02/2012 01:25 AM, Sarah Woodall wrote:

I attended the Jenkins User Conference in San Francisco yesterday. Some
very interesting talks. A few of the speakers mentioned that their
slides would be available online afterwards, and I'm wondering how I get
hold of a pointer to these. Can anyone help?

Thanks,
Sarah




Re: Slides from user conference

2012-10-10 Thread Christopher Orr

Thanks a lot for the info!

Would somebody mind converting the slides for "How Jenkins Builds the 
Netflix Global Streaming Service" from a (presumably) Apple Keynote file 
to a PDF?


Thanks,
Chris


On 10/10/2012 10:31 PM, Alyssa Tong wrote:

Hi,

we have some slides posted here
<http://www.cloudbees.com/jenkins-user-conference-2012-san-francisco-abstracts.cb>.
Some speakers has not gotten back to me w/ their slides but as soon as I
have it I will get it posted on this link. We are also in the process of
editing the video recordings. Once that is available it will be posted
on the same link (as the slides).

thanks for attending JUC.

Regards,
alyssa

On Wed, Oct 10, 2012 at 12:53 PM, Christopher Orr mailto:ch...@orr.me.uk>> wrote:

I think previously https://twitter.com/__jenkinsconf
<https://twitter.com/jenkinsconf> has posted some slides and/or videos.

You could try asking there, or checking with the organisers at
Cloudbees.

Regards,
Chris



On 10/02/2012 01:25 AM, Sarah Woodall wrote:

I attended the Jenkins User Conference in San Francisco
yesterday. Some
very interesting talks. A few of the speakers mentioned that their
slides would be available online afterwards, and I'm wondering
how I get
hold of a pointer to these. Can anyone help?

Thanks,
Sarah





--





Re: What is the difference between multi configuration job and matrix based job?.

2012-10-11 Thread Christopher Orr

There is no difference -- they're two names for the same thing.

Are there any particular wiki pages you saw this on?  Perhaps we can 
edit them to clarify the language a bit.


Regards,
Chris


On 11/10/12 15:07, Varghese Renny wrote:

  I am not understanding it from wiki. Please explain it with examples.

   Regards,
   varghese




Re: What is the difference between multi configuration job and matrix based job?.

2012-10-12 Thread Christopher Orr
I guess you're referring to the "parent" build that appears when 
executing a multi-configuration job, which monitors the child builds.


This doesn't actually consume an additional executor.  But if you want 
to control which slave this runs on, you can use the Matrix Tie Parent 
Plugin: https://wiki.jenkins-ci.org/display/JENKINS/Matrix+Tie+Parent+Plugin


Regards,
Chris


On 12/10/12 07:42, Varghese Renny wrote:

Why using additional executor for slave node running
multiconfiguration job?

   Regards,
   varghese




Re: wrong Jenkins picture

2012-10-15 Thread Christopher Orr

According to the changelog at http://jenkins-ci.org/changelog
"In celebration of the release number '486', background image will be 
80486 for a week."


So Mr Jenkins will be back in a week, it seems :)

Chris


On 15/10/12 09:14, Lars Fischer wrote:

Hello,

I upgraded to Jenkins version 1.486 and now I'm missing the friendly
Jenkins picture at the bottom.

All I see is a picture of an old 486 cpu... O_o

What went wrong?

Regards,
Lars





Re: Access to the execution slot number on a build node

2012-10-22 Thread Christopher Orr

Hi there,

On 10/23/2012 01:17 AM, Michael wrote:

I have 4 execution slots on my master node which run similar jobs.
I'd like to have access to the number of the slot that a build is
running  on that I can use it calculate a port offset for each build
so that there is no clash of ports.

Had a quick look at the API doc http://javadoc.jenkins-ci.org but
could not find anything.

Could any one point me in the right direction?


I'm not sure if this quite meets your needs, but the Port Allocator 
Plugin is intended for these types of situations:

https://wiki.jenkins-ci.org/display/JENKINS/Port+Allocator+Plugin

In any case, you should be able to use the environment variable 
"EXECUTOR_NUMBER":

https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables

Regards,
Chris


Re: Build based on tag

2012-10-24 Thread Christopher Orr

Could be a job for the Promoted Builds Plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin

That lets you define a manual step on a job, where you have to go in and 
click "Approve", e.g. to indicate that you've tested it, which can then 
trigger another job.


See also this recent blog post which mentions this:
http://blog.cloudbees.com/2012/10/continuous-integration-for-mobile-apps.html

Regards,
Chris


On 10/24/2012 09:07 PM, letstestthis wrote:

Hi

I am trying to set up a Jenkins job that will build based on tags. For
example, I go in and tag a build in jenkins as tested. I want to create
a separate job that will automatically take builds that are tagged as
tested to build. Is this possible? If so, how?




Re: ERROR: Publisher hudson.plugins.summary_report.ACIPluginPublisher aborted due to exception

2012-10-27 Thread Christopher Orr
Did you enable the "Archive the artifacts" option, as mentioned on the 
wiki page?

https://wiki.jenkins-ci.org/display/JENKINS/Summary+Display+Plugin

It seems unfortunate that the plugin can't handle it gracefully if you 
haven't, but that seems to be what's causing this.


Chris


On 10/19/2012 01:31 AM, Kamal Ahmed wrote:

Getting Exception:

*19:17:31*  TAP Reports Processing: START
*19:17:31*  Looking for TAP results report in workspace using pattern: 
**/perlcritic_tap.results

*19:17:33*  Saving reports...
*19:17:33*  Found matching files but did not find any TAP results.

*19:17:34*  ERROR: Publisher hudson.plugins.summary_report.ACIPluginPublisher 
aborted due to exception
*19:17:34*  /var/lib/jenkins/jobs/PERLAPP/builds/2012-10-18_19-15-58/archive 
does not exist.
*19:17:34*  at 
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:483)
*19:17:34*  at 
hudson.plugins.summary_report.ACIPluginPublisher.perform(ACIPluginPublisher.java:122)
*19:17:34*  at 
hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
*19:17:34*  at 
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
*19:17:34*  at 
hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
*19:17:34*  at hudson.model.Build$RunnerImpl.post2(Build.java:162)
*19:17:34*  at 
hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
*19:17:34*  at hudson.model.Run.run(Run.java:1463)
*19:17:34*  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
*19:17:34*  at 
hudson.model.ResourceController.execute(ResourceController.java:88)
*19:17:34*  at hudson.model.Executor.run(Executor.java:239)
*19:17:34*  Finished: FAILURE


Not sure where is this coming from, anyone having clue ?





Re: disable email notifications

2012-11-08 Thread Christopher Orr
Just an idea (haven't tried this myself), but you could try deleting all 
the global SMTP config and see if that allows jobs to run without 
throwing errors...



On 08/11/12 15:47, Patrick Byrne wrote:

 I see that I could remove the 'Send email notification' for each
job, but I am setting up a large number of existing jobs on a new
server, and I want to globally disable all email notifications while I
set up the environment correctly such that large numbers of jobs do not
fail and spam many users with bogus error messages.

*From:*Patrick Byrne [mailto:p.by...@samsung.com]
*Sent:* 08 November 2012 14:44
*To:* 'jenkinsci-users@googlegroups.com'
*Subject:* disable email notifications

Hello,

How can I suppress sending of email notifications in Jenkins, please?

Committers to a job are being automatically notified when a job fails, I
want to turn it off for now and I cannot see a configuration option for it.

Thanks,

Patrick





Re: Dead Executor

2012-11-09 Thread Christopher Orr
Sounds like it's possibly related to 
https://issues.jenkins-ci.org/browse/JENKINS-15652


You could add info about your stacktrace, Jenkins config and environment 
to that bug.



On 09/11/12 13:08, RogerS wrote:

Hi,

I'm relatively new to Jenkins and have created a set of jobs to build
our C/C++ project and test harnesses and run tests with the built
executables, so the jobs have trigger links to trigger the next stage.
After a 'reworking' of the jobs to use the Perforce plugin in a
different way (utilise the client spec in file) and an update to 1.488 I
am experiencing problems with Dead Executors but currently have no idea
as to where to start looking to resolve this issue. An example below.

Any help/suggestions appreciated.

Kr
Roger

Nov 9, 2012 9:10:27 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task hudson.model.Queue$MaintainTask@1de2b1 failed
java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to
load #256 DESC: lo=11,hi=10,size=11,size2=11
at
jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100)
at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813)
at hudson.model.Job.getEstimatedDuration(Job.java:820)
at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:320)
at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:303)
at hudson.model.Queue.maintain(Queue.java:1033)
at hudson.model.Queue$MaintainTask.doRun(Queue.java:1759)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

Nov 9, 2012 9:10:27 AM jenkins.model.lazy.AbstractLazyLoadRunMap search
WARNING: Assertion error: failing to load #256 DESC:
lo=11,hi=10,size=11,size2=11
java.lang.Exception
at
jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:417)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207)
at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:100)
at hudson.model.Job.getLastBuildsOverThreshold(Job.java:813)
at hudson.model.Job.getEstimatedDuration(Job.java:820)




Re: AbstractLazyLoadRunMap bug in Jenkins 1.488

2012-11-09 Thread Christopher Orr

https://issues.jenkins-ci.org/browse/JENKINS-15652 looks like it's related.

So it would likely be helpful if you add this information to that bug.

Chris


On 02/11/12 12:42, zonybob wrote:

The only way I am able to get around this issue currently is to uncheck
the following option for the Artifact Archiver:
   "Discard artifacts for all but the last successful build"

It seems to fail while trying to remove artifacts from the last build.



On Friday, November 2, 2012 7:33:36 AM UTC-4, zonybob wrote:

--

Started by user benjamin.mcdonie

[EnvInject] - Loading node environment variables.

Building remotely on Slave1 in workspace
>

Cleaning up >

Updating https://svn.ultra-prologic.com/svn/AVizAgileClient/trunk


At revision 168

no change for
https://svn.ultra-prologic.com/svn/AVizAgileClient/trunk
 since the
previous build

ERROR: Processing failed due to a bug in the code. Please report
this to jenkinsci-users@googlegroups.com


java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing
to load #8 DESC: lo=17,hi=8,size=129,size2=129

 at

jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418)

 at
hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207)

 at
hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)

 at hudson.model.Run.onLoad(Run.java:303)

 at hudson.model.RunMap.retrieve(RunMap.java:221)

 at hudson.model.RunMap.retrieve(RunMap.java:59)

 at

jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)

 at

jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:621)

 at

jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:432)

 at
hudson.model.AbstractProject.getNearestOldBuild(AbstractProject.java:1008)

 at

hudson.maven.MavenModuleSetBuild.getModuleLastBuilds(MavenModuleSetBuild.java:434)

 at
hudson.maven.MavenModuleSetBuild.getResult(MavenModuleSetBuild.java:189)

 at
hudson.tasks.ArtifactArchiver.prebuild(ArtifactArchiver.java:151)

 at

hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:835)

 at

hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:609)

 at

hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)

 at hudson.model.Run.execute(Run.java:1516)

 at
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)

 at
hudson.model.ResourceController.execute(ResourceController.java:88)

 at hudson.model.Executor.run(Executor.java:236)

project=hudson.maven.MavenModuleSet@3c6508fd[AWSAgileClient
]


project.getModules()=[hudson.maven.MavenModule@43fa92be[AWSAgileClient/com.prologic:aws-agile-client][AWSAgileClient/com.prologic:aws-agile-client][relativePath:]]


project.getRootModule()=hudson.maven.MavenModule@43fa92be[AWSAgileClient/com.prologic:aws-agile-client][AWSAgileClient/com.prologic:aws-agile-client][relativePath

:]

FATAL: Assertion error: failing to load #8 DESC:
lo=17,hi=8,size=129,size2=129

java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing
to load #8 DESC: lo=17,hi=8,size=129,size2=129

 at

jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:418)

 at
hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:207)

 at
hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:349)

 at hudson.model.Run.onLoad(Run.java:303)

 at hudson.model.RunMap.retrieve(RunMap.java:221)

 at hudson.model.RunMap.retrieve(RunMap.java:59)

 at

jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:638)

 at

jenkins.m

Re: Jenkins upgrade path

2012-11-19 Thread Christopher Orr
Just wondering... did you really mean Jenkins 1.143 (September 2007), or 
Jenkins 1.413 (May 2011)? :)



On 14/11/2012 17:09, Dale Hoshooley wrote:

I'm trying to upgrade Jenkins from version v1.143 to 1.490 and ran into
a couple of issues.

I've tried the following upgrade paths:

  * deployed new Jenkins war module to tomcat (7.x) - due to out of date
plug-ins the error log was littered with exceptions.
  * updated all installed plug-ins to latest version, deployed new
Jenkins war module to tomcat (7.x) - looked successful at first then
discovered that the subversion plug-in was missing!
  * updated all installed plug-ins to latest version, deployed new
Jenkins war module to tomcat (7.x)- tried to update subversion
plug-in as well but this never worked, Jenkins instance remained
with out the subversion plug-in.

There are over 150 projects configured (99% of the projects are Maven 2
projects) in this Jenkins instance so any manual configuration updates
would be rather time consuming.

I'm looking for a simple drop-in and upgrade solution.





Re: FYI: Jenkins Security Advisory 2012-11-20

2012-11-23 Thread Christopher Orr

Hi there,

On 21/11/12 13:33, Lars Nordin wrote:

Request to Cloudbees: please send a notification of this out on the
Jenkins user list too


There's already a mailing list for this:
https://groups.google.com/group/jenkinsci-advisories

Regards,
Chris


Re: Builds of new configuration in a matrix build are lost after some time.

2012-11-24 Thread Christopher Orr

Hi there,

I had a very similar issue recently with a Mac master (and no slaves), 
where one of the axis names was changed from "FOO" to "Foo", which 
caused problems, because Jenkins found the already-existing "axis-FOO" 
directory, but this caused problems as it didn't match "Foo" exactly.


Can you check that the axis names are matching the directory names used 
everywhere?


Chris


On 23/11/2012 10:35, B.Latinville wrote:

Hello,
I'm using Jenkins 1.487 with matrix jobs. Debian master, linux & windows
slaves.

I've just made some changes in matrix jobs. I have added new
configuration to a user defined axis.
The matrix job run properly and I could see that new configuration was
build properly :
- The parent jobs console log says " newconfiguation completed with
result SUCCESS"
I can go to the the new configuration web page, see the logs and the
artifacts.
Looking at the matrix, the bullet corresponding to the new configuration
is blue !

After some time ( less than 2 hours) the result from the build is lost.
The bullet corresponding to the new configuration is grey and indicates
NOT RUN when I pass the mouse over it.
So I cannot click on the bullet to see the build.

If I go back to the parent job console, I can click on the
"newconfiguation completed with result SUCCESS" link.
I get a web page, where everything is empty : no Build History, empty
change log, no artifacts.

I run the job again . Can see the newconfiguration build. Some hours
later , everything is gone again.

Looking on the master node , in /va/lib/jenkins/jobs, I can see
/var/lib/jenkins/jobs//job_name//configurations/../axis-xxx/newconfiguration/
I this folder everything looks fine : "builds config.xml lastStable
lastSuccessful"
In lastSuccessful I can see the log, the build.xml.
Could not understand why this does not appear in jenkins.
Any Idea why the new build are lost ? This is really annoying. I've
faced this issue on several jobs.
I did not the the problem before has someone else seen this issue ?

Thanks.

Bertrand.


Re: How does Jenkins know tests history

2012-11-25 Thread Christopher Orr
Yes, I believe that's correct -- test results are tracked based on their 
package and class name.



On 23/11/2012 11:55, Yaron Naveh wrote:

Hi

Check this image. Jenkins says this test failure is a regression (e.g.
fails this build, passed previous build). How does Jenkins know to match
the result from both builds - after all Jenkins know about the test
results only the xunit xml. So I guess Jenkins compare test names from
the Xml? In this case if a class is renamed so the full name of its
tests also changes and all this history data is lost. Is this correct?


Inline image 1


On Fri, Nov 23, 2012 at 12:35 PM, clem mailto:clemensgoer...@googlemail.com>> wrote:

Hi,

you mean the Jenkins Links / Permalinks correct ?

http://javadoc.jenkins-ci.org/hudson/model/PermalinkProjectAction.Permalink.html

I dont think, that Jenkins does a string Matching. Jenkins has its
own Methods to get
these information.

For example you can use:
item = hudson.model.Hudson.instance.getItem("job_name")
build = item.getLastBuild()

So i guess its working with a List and without any matching tests,
there shouldnt be
lost datas.

But if im wrong, im happy for any further information.

Clem




--

I'm on Twitter (@YaronNaveh )






Re: NullPointerException while trying to save job configuration

2012-11-28 Thread Christopher Orr

Did you install the Build Failure Analyzer plugin?

I started having the exact same problems -- as mentioned in the "Known 
Issues" for that plugin -- after I installed it.  Disabling the plugin 
fixed things again.



On 26/11/2012 07:01, David Resnick wrote:

Pushing Apply brings up an empty error window; pushing Save brings the
below error 500 stack trace.

I'm running Jenkins 1.491 with countless plugins. Any suggestions?

Thanks,
David


  Status Code: 500

Exception: java.lang.NullPointerException
Stacktrace:

javax.servlet.ServletException: java.lang.NullPointerException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179)
at 
net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
at 
org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
at 
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
at 
hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)

Re: stale jenkins campfire plugin is 2.1, github latest is 2.5

2012-11-30 Thread Christopher Orr

On 30/11/12 04:46, Kevin G. wrote:

The version of the campfire notifier plugin you get using the jenkins UI
package manager is 2.1, but the latest on the github project page is
2.5: https://github.com/jenkinsci/campfire-plugin

I just built the plugin from source and installed it, but is there any
reason the plugin on the UI is so old? Can that be updated?


For some weird reason, the README advocates building the plugin for 
yourself, or taking it from Jenkins-on-Jenkins.  Apparently people have 
been doing so, rather than releasing it to everybody.


I don't see a reason why this shouldn't be released properly...

Chris


Re: Build failes with android. The parameter is incorrect

2012-11-30 Thread Christopher Orr
Your path to the Android SDK looks short enough, and the android.bat 
file doesn't seem to include any other paths aside from ANDROID_SWT.  Do 
you have an ANDROID_SWT environment variable set?


Alternatively, do you have a CLASSPATH environment variable set, which 
could be too long?


Chris


On 29/11/12 15:45, Jesús Latorre wrote:

Hi,

Thanks for the reply, but I had already seen this solution and I don't
think the problem comes from there because the address isn't very long
and because previously worked without problems.

Jesús Latorre

El jueves, 29 de noviembre de 2012 15:34:19 UTC+1, Clemens escribió:

Hi Jesús,

i found multiple answers in the Web, and the most published answer
was the character length
of the classpath. Not absolute sure about your problem, to less
workaround information for me,
but maybe this is a direction, you could have a look at, to solve
your Problem.

Look at this Blog / Post: Link


Maybe this will help you.

Greetings





Re: stale jenkins campfire plugin is 2.1, github latest is 2.5

2012-12-01 Thread Christopher Orr

On 01/12/2012 02:57, Kevin G. wrote:

I don't see a reason why this shouldn't be released properly...

So should I point that out to somebody?  Not to make trouble, just want
to help out the next guy.


I did a release, as version 2.6.  It should appear in the Jenkins Update 
Centre soon-ish.


Regards,
Chris


Re: Build failes with android. The parameter is incorrect

2012-12-03 Thread Christopher Orr
Well, the ANDROID_SWT variable should definitely be optional, so I'd be 
surprised if adding that was what fixed it.


But anyway, glad it's working.

Chris


On 12/03/2012 09:00 AM, Jesús Latorre wrote:

Thank you very much! I just had defined the variable ANDROID_HOME and I
didn't have definite ANDROID_SWT. It seems like the problem has been fixed.

Jesús


El viernes, 30 de noviembre de 2012 15:06:17 UTC+1, Christopher Orr
escribió:

Your path to the Android SDK looks short enough, and the android.bat
file doesn't seem to include any other paths aside from ANDROID_SWT.
  Do
you have an ANDROID_SWT environment variable set?

Alternatively, do you have a CLASSPATH environment variable set, which
could be too long?

Chris


On 29/11/12 15:45, Jesús Latorre wrote:
 > Hi,
 >
 > Thanks for the reply, but I had already seen this solution and I
don't
 > think the problem comes from there because the address isn't very
long
 > and because previously worked without problems.
 >
 > Jesús Latorre
 >
 > El jueves, 29 de noviembre de 2012 15:34:19 UTC+1, Clemens escribió:
 >
 > Hi Jesús,
 >
 > i found multiple answers in the Web, and the most published
answer
 > was the character length
 > of the classpath. Not absolute sure about your problem, to less
 > workaround information for me,
 > but maybe this is a direction, you could have a look at, to
solve
 > your Problem.
 >
 > Look at this Blog / Post: Link
 >

<http://luxurymaster.blogspot.de/2011/09/eclipse-in-windows-cannot-run-program.html

<http://luxurymaster.blogspot.de/2011/09/eclipse-in-windows-cannot-run-program.html>>

 > Maybe this will help you.
 >
 > Greetings
 >





Re: Redeploy the old artifacts

2012-12-06 Thread Christopher Orr
Yeah, if you didn't enable "Archive the artifacts" in the old builds, 
i.e. you don't have the WAR file (or whatever it is you want to deploy), 
you'd have to take the approach of re-checking out the source, building 
and then doing whatever deployment steps you want.


But if you *did* archive the previous artifacts you could redploy them 
from another job as follows:


Install the Copy Artifact plugin.

Create a new job, enable "This build is parameterized", and add a "Build 
selector for Copy Artifact".  Call it "BUILD_TO_DEPLOY", for example. 
Choose "Specific build" and leave the build number empty (or enter a 
default, like "1").


Add a new build step: Copy artifacts from another project.  Enter the 
project name you want to copy the WAR file from.  For "Which build", 
choose "Specified by a build parameter" and as the name enter 
"BUILD_TO_DEPLOY".  Under artifacts to copy, enter "**/*.war".


Now whenever you run this job, you will have the previously built WAR 
files from whichever previous build you want, allowing you can deploy 
them however you like (e.g. "Publish over SSH" or "WebLogic Deployer" 
plugins).


Regards,
Chris


On 06/12/12 17:10, Jerry wrote:

Hi, Anba. Unless you had already set something up beforehand, it will
not be possible to deploy old builds. Jenkins typically generates
artifacts inside a workspace, and that same workspace is re-used every
time a new build is run. Thus the old artifacts are overwritten.

What you /could/ do is direct Jenkins to clone/update the source in such
a way that it's updating to the same changeset from which build 1 was
produced, then run a new build. Theoretically, this will give you an
artifact equivalent to the one built in build 1.

What are you using for source control?

-- Jerry




On Wednesday, December 5, 2012 9:46:14 PM UTC-5, Anba wrote:

Dear Friends,

I'm new to CI and Jenkins. Here i want to deploy the old artifacts
into servers. For example i have done 10 builds and deploy those
build into servers.

Here i want select very 1st build and deploy into server(with old
source code). Is this possible to achieve . if so could please help
me how to do this.

I'm using maven,svn,weblogic for my J2ee project.

Thanks
Anba





Re: significance of .jenkins diectory tree

2013-01-07 Thread Christopher Orr

On 28/12/12 21:26, Kamal Ahmed wrote:

Hi,
Does anyone know the significance of /.jenkins and the
files/Directories under it?


That's where Jenkins stores *all* of its data by default, if you start 
Jenkins as your user.

See https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins



Can i remove them without having any impact on my jenkins Instance ?


No.  If you delete it, you will lose all of your existing configuration, 
jobs and build information.


Chris


Re: Getting an error when trying to use Copy Artifact Manager

2013-01-08 Thread Christopher Orr

On 01/07/2013 04:55 PM, letstestthis wrote:

Copied 0 artifacts from "build" build number 8 Build step 'Copy artifacts
from another project' marked build as failure Finished: FAILURE. It is not
clear to me as to what the problem is because the console output just says
failure.


If zero files are copied, by default this is regarded as a failure and 
the build is failed.


This means either the files-to-copy pattern you entered was wrong, or 
you didn't archive the artifacts correctly in the other build.


You can disable failing the build if nothing is copied -- just check the 
"Optional" checkbox.


Regards,
Chris


Re: Is it possible to fail build if test time increases by X%

2013-01-08 Thread Christopher Orr

On 01/07/2013 10:57 PM, Keith B. Perry wrote:

Hi all,
Does anyone know how to do this?  Can I fail a build if a test time
increases by a certain percentage?

For example, if a test takes 100 ms today, but tomorrow it takes 5
seconds...can I have Jenkins fail the build?


You can do this for the job as a whole, using the Build Timeout plugin 
and entering a percentage value.  But currently not for individual test 
cases.


Chris


Re: Upgrading from Hudson Windows 1.395 to Jenkins

2013-01-08 Thread Christopher Orr

Upgrading directly from 1.386 is possible.

The steps are on the wiki page mentioned:
http://wiki.jenkins-ci.org/display/JENKINS/Upgrading+from+Hudson+to+Jenkins


On 01/08/2013 08:19 AM, prathima chowdary wrote:

Hello,

Is the Direct Upgrade possible for Version : Hudson ver. 1.386


If possible , Please do reply  with Detailed Steps..

Thanks
Prathima



On Thu, Jan 3, 2013 at 9:59 PM, Slide mailto:slide.o@gmail.com>> wrote:

You're asking the wrong people. Hudson devs changed the format of
the XML files, you'll need to ask them if you can downgrade from
your current version to 1.395. If you can't, then you would need to
manually convert the XML files back to the format they used to have
(which is still used by Jenkins). Once Hudson changed their XML
format, it made it very difficult to migrate from Hudson to Jenkins,
sorry.


On Thu, Jan 3, 2013 at 9:26 AM, prathima chowdary
mailto:chowdary.gprath...@gmail.com>>
wrote:

Ok if we need to downgrade what r the chages to be done..

suppose if we cant , then how can we ? Is there no solution the
hudson jobs cant be used?


On Thu, Jan 3, 2013 at 9:44 PM, Slide mailto:slide.o@gmail.com>> wrote:

There is no direct upgrade path from anything higher than
1.395. Hudson changed the format that is used for
serializing data to XML, this made Hudson and Jenkins
incompatible. If you can downgrade to Hudson 1.395, you can
then upgrade to Jenkins from there.


On Thu, Jan 3, 2013 at 9:03 AM, prathima chowdary
mailto:chowdary.gprath...@gmail.com>> wrote:

2.1.2


On Thu, Jan 3, 2013 at 6:29 PM, Slide
mailto:slide.o@gmail.com>>
wrote:

What version are you upgrading from?


On Thu, Jan 3, 2013 at 5:51 AM, prathima chowdary
mailto:chowdary.gprath...@gmail.com>> wrote:


Hello KK,

I have bulk of Jobs in Hudson . And want to
migrate From Hudson (Windows) to Jenkins (
Windows) with all the JOBS imported. So i have
followed the belwo link which is not
happening... Can u please give me the detailed
picture how to Migrate ?


https://wiki.jenkins-ci.org/display/JENKINS/Upgrading+from+Hudson+to+Jenkins

Very Urgent reply required ASAP.thanks a lottt


On Tuesday, 29 March 2011 21:45:35 UTC+5:30,
Kohsuke Kawaguchi wrote:

On 03/29/2011 08:23 AM, mke wrote:
 > Does anyone have a procedure to convert
from Hudson 1.395 on Windows to
 > Jenkins?

The issue list is for automated notification
use and not for interactive
discussion. For that, please use the users list.

The instruction for upgrade is in

http://wiki.jenkins-ci.org/__display/JENKINS/Upgrading+__from+Hudson+to+Jenkins




--
Kohsuke Kawaguchi | CloudBees, Inc. |
http://cloudbees.com/




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





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





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






Re: Jenkins Ant Compile Query

2013-01-08 Thread Christopher Orr

On 01/08/2013 11:40 AM, Justin Mulcahy wrote:

I may be posting this on the wrong forum but here goes. I have set up a
job (my First) in Jenkins to execute an ant build, the build completes
successfully but does not seem to be compiling my java class.

I have attached the Build.xml file, Jenkins job configuration, Jenkins
JDK Installation and Jenkins Console output. Any help would be greatly
appreciated.


Your "build-project" target runs  which looks for the Java files 
in the ${source} variable.


But the "source" variable never appears to be set, so there's nothing to 
compile.


Also, unrelated, the "-buildfile ..." part looks unnecessary in the 
"Targets" configuration, as it seems you've specified the filename 
(buildA.xml) already in the Advanced section?


Regards,
Chris



Re: getting currently logged in username in jenkins java plugin

2013-01-09 Thread Christopher Orr

On 09/01/13 06:12, shruthi ganesh wrote:

 I am writing a plugin to authorize an authenticated user in
jenkins. I require the username of the currently logged in user. I have
used mysql db for authentication. Is there any possibility of getting
the username?. Does jenkins store the user details of the logged in user
anywhere?.


This is probably a question better suited to the jenkinsci-dev mailing list.

I've used code like this to get the current user's ID:

  import hudson.model.User;
  import org.acegisecurity.context.SecurityContextHolder;

  String userId = 
SecurityContextHolder.getContext().getAuthentication().getName();

  User u = User.get(userId, false);

Regards,
Chris


Re: jenkins with ldap authentication

2013-01-09 Thread Christopher Orr

On 03/01/13 10:51, Levin, Ilya wrote:

I’m trying to use ldap in my Jenkins (v 1.485).

I configured the ldap connection under the security relam, and it seems
that the connection with the ldap server was established.

I did a little test and entered 2 users, a false one and an existing
one. As you can see Jenkins identified this – which tells me that the
connection exist.

HOWEVER when I try to log in as the legitimate user, Jenkins “thinks”
for about 5 min and then do nothing – doesn’t login.

Moreover Jenkins doesn’t log anything as if nothing happened – without
the log I cannot understand what went wrong.


I had to debug a weird LDAP login problem once, but either I didn't use 
the Jenkins logs, or didn't get far.


I ended up using tcpdump to see what was happening (since our LDAP 
server at the time wasn't secured).


Maybe you can do something similar to see whether Jenkins is correctly 
doing the DNS lookup and TCP connection to the LDAP server, and why/what 
is timing out.


Chris



Re: Copy Artifact plugin doesn't traverse entire upstream path

2013-02-11 Thread Christopher Orr

On 06/02/13 06:13, Daniel Becroft wrote:

If I have the following setup:

jobA -> jobB -> jobC -> jobD

As part of jobD's work, I need to copy an artifact from jobA. However,
the copy artifact plugin doesn't seem to know about jobA, and I get the
following error:

Started by upstream project "test-copy-B  
" build number1  

originally caused by:
Started by upstream project "test-copy-A  
" build number1  

originally caused by:
Started by useranonymous  
Building remotely onSCBBUILD01.supercorp.local  
  in 
workspace D:\jenkins\workspace\test-copy-C
Unable to find a build for artifact copy from: test-copy-A
Build step 'Copy artifacts from another project' marked build as failure
Finished: FAILURE


You didn't mention how you have configured the plugin, but I'm guessing 
you need to select "Latest successful build" in the "Which build" field, 
rather than trying to use "Upstream build that triggered this job".  Or 
at least enable the "Use "Last successful build" as fallback" option.


Alternatively, it looks like this pull request may cover you use case:
https://github.com/jenkinsci/copyartifact-plugin/pull/15

Regards,
Chris

--
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 1.501 only partially released

2013-02-11 Thread Christopher Orr

On 11/02/13 14:40, matthew.web...@diamond.ac.uk wrote:

My Jenkins says that 1.501 is available, but when I go to "install 
automatically", is fails with
java.io.FileNotFoundException: 
http://mirrors.jenkins-ci.org/war/1.501/jenkins.war
and that's correct, the file is not there, at least on the mirror I get

It's been that way for 4 hours or so - did something go wrong in the relase?


Quite possibly.  The mirrors are all reporting themselves as up-to-date, 
yet none of them have the 1.501 release.


I think Kohsuke or Tyler need to poke something...

Chris

--
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: JUnit Attachment Plugin - NUnit option?

2013-02-21 Thread Christopher Orr
As far as I remember, the JUnit Attachment plugin code is pretty 
JUnit-specific, directly using the JUnit support in Jenkins' core.


So I'd say there are a few potential alternatives:
- Run your NUnit XML through an XSL transform to get JUnit XML, and use 
the existing plugin.
- Do a load of work to refactor and abstract away the JUnit stuff in the 
existing plugin, making it possible to support multiple formats.

- Extend the existing NUnit plugin to support the attachment syntax.

Regards,
Chris


On 02/19/2013 11:57 PM, Daniel Becroft wrote:

Hi,

Are there any plans to extend the JUnit Attachment plugin to be able to
work with NUnit?

Or is there a way to get it to work now?

Cheers,
---
Daniel Becroft

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




Re: Issues after moving to 1.501 With Slave Nodes

2013-02-21 Thread Christopher Orr

On 02/20/2013 06:36 PM, Stephen Connolly wrote:

   I'm not complaining about the
decision to make the change.  I just don't see why the side effects
had to be a surprise.

They were hinted at in the security advisory... I do agree that there
could have been better wording for that though


This is the key point of the discussion for me: there *was* a security 
advisory posted and it mentioned that changes would be required.


If you're maintaining a Jenkins instance which you/others rely on, then 
you should be subscribed to and reading the security advisories mailing 
list.


Regards,
Chris

--
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 wins first place in purim custom content...

2013-03-04 Thread Christopher Orr

Nice! :)

On 02/27/2013 02:21 PM, Eyal Edri wrote:

Since i manage jenkins for over 2 years now it was natural to dress up as him!

I won 1st place in a custom contest of the company with it..

http://postimage.org/image/e7k9j8mbb/
(i even had 3 color balls blue/yellow/red for the builds :)

what do you think? looks the same or not?

Eyal Edri
RHEVM CI & BUILD Team leader
Red Hat



--
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: Explanation needed: Difference between User and UserProperty

2013-03-04 Thread Christopher Orr

Hi there,

There's a jenkins-dev mailing list where you're more likely to get a 
response.


But in general, a User is a user, and each one can have multiple 
UserProperties (e.g. their email address is a property, their API token 
is a property).


Chris


On 03/04/2013 02:38 PM, Jannik Kett wrote:

Hello Jenkins-users,

I use Jenkins for quite a while but now I want to write a small plugin
to satisfy my requirements.

Therefore I worked through Jenkins wiki, the different tutorials and the
source code. I think I gained a first insight on how things work, but
there are still some things missing.

I'm confused about the *Property files.
I used the User/UserProperty/UserPropertyDescriptor and
View/ViewProperty/.. class sets to understand the structure. I think I
understood what the Descriptor is good/needed for. What I havn´t got is
what is the exact difference between User and UserProperty. Because I
also found examples where a Descriptor is given but no *Property class.
What is/should be implemented in which one of them and how do they interact.

Thanks in advance!!

Jannik


--
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: How do I change my Jenkins JIRA password?

2013-03-20 Thread Christopher Orr

https://jenkins-ci.org/account/


On 19/03/13 21:46, Jeff wrote:

I'm trying to update my password on the Jenkins JIRA system after
receiving my temporary auto-generated password, but there is no change
password link anywhere on my profile page.

The help says it is not shown if using an external password management
system.  Assuming this is the case, where do I go to change it?

--
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox  !!

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




Re: 1.508 performance regression?

2013-03-31 Thread Christopher Orr

On 03/28/2013 06:27 PM, Russ Tremain wrote:

At 2:14 PM +0100 3/28/13, Michaėl Pailloncy wrote:

All pages are taking 60 seconds to load each time or just at certain
times ?


all pages, after initial boot until I shut it down.  seemed to get worse
over time.


You can open a JIRA ticket with GC logs and threads dump at the moment
of the performance issue if it's possible.


unfortunately it is a production system so I can't play with it, but I
will try to get some data the next time we attempt an upgrade.


So long as you have admin rights, you can take a thread dump at any 
time, just by visiting http://jenkins/threadDump


Regards,
Chris




thx,
-Russ




Michaėl Pailloncy
2013/3/28 Russ Tremain mailto:ru...@releasetools.org>>

I just tried upgrading from 1.486 to 1.508, and experienced severe
perfomance regression in the jenkins UI.  switching views was
taking 60+ seconds.  CPU was pegged.

Had to backgrade and all was normal once again.

I suspect the problem was in slave communication but there was
nothing out of ordinary in the logs.  We run about 25 slaves.

YMMV.

-Russ


--
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: Skype notifications from Jenkins

2013-04-09 Thread Christopher Orr

Hi there,

For info, there's already an existing Skype plugin for Jenkins, in case 
you're interested:

https://wiki.jenkins-ci.org/display/JENKINS/Skype+Plugin

Regards,
Chris


On 09/04/13 08:50, Mikko Ohtamaa wrote:

Hi,

I and my friend have been working for a while on open source project
Sevabot, friendly Skype bot
. It'a a Skype robot where
you have HTTP interrface to send messages from external services, like
Jenkins, to a chat.

Some of the project users have been successfully using this to get their
test notifications out from Jenkins. If your email inbox has issues
keeping up with the messages I suggest you try this, as many virtual
teams already use Skype from communication and getting automatic build
notifications to developer chat makes workflow more smoother.

Cheers,
Mikko


--
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: Triggering the build from Git tag

2013-05-28 Thread Christopher Orr
There's an example job configuration [1] for this which you can download 
with the Recipe Plugin [2].


Though I believe you can only do very basic wildcard matching, e.g. 
"jenkins-build/*" works as a tag name, but not "jenkins-build-*".


Regards,
Chris

[1]: 
https://github.com/jenkinsci/submitted-recipes/blob/inbound/org.jenkins-ci.recipes.git.trigger-build-by-tag.jrcp

[2]: https://wiki.jenkins-ci.org/display/JENKINS/Recipe+Plugin


On 18/04/13 16:10, Vishal Gupta wrote:

I want to trigger the build in Jenkins if a tag in GIT contains some
specific string.
Example : If tag contain string "JENKINS_BUILD" , then jenkins should
trigger the build.
How can we achieve this  ?


--
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: which plugin is this

2013-06-02 Thread Christopher Orr

On 05/31/2013 07:56 PM, Kamal Ahmed wrote:

and how do we get the pulldown Add pre-build step


I believe the Release plugin lets you add pre- and post-build steps.

--
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: 404 vs 401

2012-03-01 Thread Christopher Orr

On 06/02/2012 01:49, terry.rank...@csiro.au wrote:

When a user logs out, closes the browser, and then reopens it (clean
start) and loads a bookmark of a project URL which is valid, he gets a
404 (not found) instead of a 401 (not authorised).

I don’t think that this is really the right behaviour, I would suggest
using the 401, or redirecting it to the top level login.


AFAIK, this is a security feature -- i.e. by returning 404 no 
information is leaked to unauthorised users about the existence or 
non-existence of any given job.


But in any case, a nicer-looking error page could be good -- though I'm 
not sure whether Jenkins can directly solve this given that the 
underlying web server is presumably the one handling the 404s.


Regards,
Chris


Re: 404 vs 401

2012-03-08 Thread Christopher Orr

Hi there,

In your banking example, no information is given away by the URL itself.

Where I work, only authorised employees have access to certain Jenkins 
jobs.  Other people (e.g. contractors) should not even know that we're 
working on certain products -- whose existence they would be able to 
ascertain via URLs which return 401 rather than 404.


In any case, you can configure your web server to redirect 404s to the 
home page, e.g. in the simplest case for Apache:


ErrorDocument 404 /

Regards,
Chris


On 03/02/2012 02:44 AM, terry.rank...@csiro.au wrote:

Hi Guys

I think this is a little bit of 'security through obscurity'. For that user it 
is perfectly acceptable for them to go back to the URL they were at yesterday, 
and if they are not logged in I BELIEVE it should ask you to do so.

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes, and even teapot's seem 
to have response codes lookup 418.

My example here is from my bank which should be a little paranoid about 
security.
https://ibs.bankwest.com.au/CMWeb/ which is where they serve their personal 
banking data from does not return a 404, it pushes me back to a login page.

Where in the codebase would I custom patch it to return not authorized or a 
please logon instead of a 404?

Regards,
Terry




-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Christopher Orr
Sent: Friday, 2 March 2012 7:57 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: 404 vs 401

On 06/02/2012 01:49, terry.rank...@csiro.au wrote:

When a user logs out, closes the browser, and then reopens it (clean
start) and loads a bookmark of a project URL which is valid, he gets a
404 (not found) instead of a 401 (not authorised).

I don't think that this is really the right behaviour, I would suggest
using the 401, or redirecting it to the top level login.


AFAIK, this is a security feature -- i.e. by returning 404 no
information is leaked to unauthorised users about the existence or
non-existence of any given job.

But in any case, a nicer-looking error page could be good -- though I'm
not sure whether Jenkins can directly solve this given that the
underlying web server is presumably the one handling the 404s.

Regards,
Chris




Re: Sonar tests fail bevause xvnc plugin was terminated before execution

2012-03-08 Thread Christopher Orr

Hi there,

On 03/05/2012 03:07 PM, MSF wrote:

we have some issues with one of our jobs on our Jenkins (1.424.3 =
current LTS Version). We are using xvnc (1.10) and Sonar (1.8) plugins.
The job fails because the generated xvnc session is terminated before
Sonar is started.


Can you maybe explain your build setup a bit further?

You have a single Jenkins job, which has "Run Xvnc" as a build 
environment action, you build some code (and maybe run tests), then a 
"Run Sonar analysis" post-build action should occur.  Is that right?


I had the feeling that BuildWrappers like Xvnc only exit at the very end 
of a build, so it would be useful to see what your setup is.  Though I 
haven't checked this statement :)




We tried different versions of the plugins, but the
result is always the same. We even tried to recompile the xvnc plugin
from source with a different ordinal number like:

@Extension(ordinal = 1)

public static final class DescriptorImpl extends BuildWrapperDescriptor

or:

@Extension(ordinal = 1)

public static final class DescriptorImpl extends BuildWrapperDescriptor

but this did also change nothing in the result.


Here the ordinal only affects which BuildWrapper runs first, so it 
wouldn't affect the order of post-build actions like Sonar.




Here is the error with stack trace:

[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/home/jenkins/.jenkins/jobs/JOBNAME-Sonar/workspace/JOBNAME/JOBMODULE-tile/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Can't
connect to X11 window server using ':14' as the value of the DISPLAY
variable.; nested exception is java.lang.InternalError: Can't connect to
X11 window server using ':14' as the value of the DISPLAY variable.
java.lang.InternalError: Can't connect to X11 window server using ':14'
as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
...

[ERROR] There are test failures.


Why does Sonar even need a graphical environment to execute?

Perhaps it's just being opportunistic, seeing that the DISPLAY variable 
is set and tries to run in graphical mode.  Maybe the Xvnc plugin should 
unset the DISPLAY variable when it shuts down?




We're out of ideas right now, but it's quite important to get this
running. Is there any way to have the xvnc plugin with a X session still
running when Sonar is executed?


A possible alternative would be to create a separate Jenkins job that 
just runs Sonar, and copy all the files (test result XML, and whatever) 
from the first job that Sonar needs to look at.


Regards,
Chris


Re: Jenkins Selenium Plugin - License question

2012-03-10 Thread Christopher Orr

Hi there,

On 03/05/2012 08:31 PM, Greg Hinson wrote:

I have a question about the Selenium Plugin for Jenkins.
https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin

When I looked at the source for the plugin on github
(https://github.com/jenkinsci/selenium-plugin) I didn’t see any license
file associated with the plugin’s code.

Is the Selenium Plugin for Jenkins licensed under the same license as
Jenkins? If not, what is the license for the Selenium Plugin?


Usually unless otherwise specified, code is under the MIT Licence.
https://wiki.jenkins-ci.org/display/JENKINS/Governance+Document#GovernanceDocument-License

Plugins do not need to follow this policy, but as Kohsuke created the 
Selenium plugin, it's probably safe to say that MIT is the applicable 
licence in this case.


Regards,
Chris


Re: No more scripts in View/Dashboard description

2012-03-22 Thread Christopher Orr

Kohsuke also recently wrote the "Anything Goes" plugin for markup:
https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=60915753

Regards,
Chris


On 03/21/2012 08:40 PM, John Vacz wrote:

You can try Page Markup Plugin:
https://software.sandia.gov/trac/fast/wiki/PageMarkup

With this plugin you can effectivly inject your javascript into page head.


On 07.03.2012 12:14, Daniel Tkatch wrote:

Hey,

if this is related I don't understand how.
Any way what additional security hole could a JavaScript functionality
introduce. I was really helpful to be able to run additional
JavaScript from a view's description.

:/

Daniel


On Mar 7, 11:40 am, Ullrich Hafner wrote:

On 03/07/2012 11:31 AM, Daniel Tkatch wrote:> It's possible to use
HTML in the view description in Jenkins. I also

used a JavaScript

Re: Handling one-build-per-account configurations (Unix)

2012-03-29 Thread Christopher Orr

On 03/28/2012 08:26 PM, Mandeville, Rob wrote:

I’m running a build farm with about 60 active branches at a given time.
The machines on our build farm can comfortably run 5-8 build and test
jobs at any given time, with one stipulation: each build and test job
needs to be in its own Unix account. Getting around that is more trouble
than it’s worth.

Currently, we’ve been handling that by giving each build account on each
build machine its own one-executor slave. However, Jenkins appears to
work under the assumption of one slave per host. I could do that by
running the slave as on an account that can sudo to all the build
accounts, and having one executor per build account. The build steps
would all have to be run inside sudo commands.


Running multiple slaves on the same host should be no problem, so long 
as they have their own working directory -- which sounds like what you 
described (assuming each build account has its own home directory).


What problems are you having with that?

Chris



Re: Jenkins with iOS development

2012-04-11 Thread Christopher Orr

On 04/02/2012 12:15 AM, Sami Tikka wrote:

I am not an iOS developer myself, so I have not run into this problem.
Is there anyone here who can verify that adding the SessionCreate
setting to orgi.jenkins-ci.plist fixes the problem? Probably this is
not the whole solution. The keys and certificates still need to be
copied to the jenkins user keychain, I believe. Is there something we
can do to make it easier?


I'm not an iOS developer either, but I had the impression that the 
Jenkins Xcode Plugin was designed to automate some of this keychain stuff.


I haven't seen that mentioned here or on Stack Overflow, so perhaps it's 
worth a look:

https://wiki.jenkins-ci.org/display/JENKINS/Xcode+Plugin

Regards,
Chris


Re: Hudson timer triggers job for multiple times from time to time

2012-04-11 Thread Christopher Orr

On 04/09/2012 08:41 AM, Nan Cui wrote:

Hi,
I’m using Hudson v1.363 in my project. There is a disturbing issues
troubled me for quite a while.
Say I setup a job with a periodical schedule, and then save it. It could
be very good chance to see that Hudson triggers the job for 2 or 3 times
at the scheduled point. Attaching a snapshot.
You can see Hudson triggered the job for multiple times in a short period.
I’m not sure if you are aware of this issue, or already addressed it in
Jenkins. Plz give some advice and help me out.


Hudson 1.363 is nearly two years -- a lot has changed in the last 95 
versions!


I would try testing a newer version of Jenkins.

Regards,
Chris



Re: How do i unsubscribe from this list?

2012-04-23 Thread Christopher Orr
https://www.google.com/search?q=googlegroups+unsubscribe leads to 
https://support.google.com/groups/bin/answer.py?hl=en&answer=46608



On 04/23/2012 06:44 PM, Anton Zavrin wrote:

what's the command do i email?

--
*
Anton Zavrin
*Senior Systems Administrator
Mobile: +1 415 608 1035
Phone: +1 415 284 2770
Web: www.myvest.com 





Re: Making Feature Branches Effective with Continuous Integration

2012-04-30 Thread Christopher Orr

Hi there,

It's not automated to the extent that this Bamboo feature is, but for 
select projects I have two Jenkins jobs: one for master, and another job 
cloned from the first, but using the "Inverse" choosing strategy in the 
git plugin -- i.e. it builds all branches *except* for master.  The only 
other change I make to the "feature branch" job is to discard all but 
the last five builds and disable the trend graphs.


Or if you always name your feature branches like "feature/*", then you 
can just enter that as your git branch, rather than using the Inverse 
strategy.


So building feature branches is definitely possible today with minimal 
effort, but sure -- the ability to do this completely automatically 
(i.e. without a second job) would be cool.  Thanks for the info.


Regards,
Chris


On 04/27/2012 07:06 PM, Gustavo Leite de Mendonça Chaves wrote:

This is the title of an Atlassian Blog Post

which tells about a new feature in Bamboo 4 called Plan Branches. The
idea (as I understood it from the post, since I don't use Bamboo myself)
is that after you have configured a job for a project and pointed it to
the SCM master/trunk, you can then automatically create derived jobs
which share almost every configuration with the master's job but which
fetch the source from a specific branch. You can even enable "automatic
branch detection" so that these derived jobs are created automatically
when Bamboo detects that a new branch has been created.

Does anyone knows anything like that for Jenkins? I'd love to be able to
use it.

Gustavo.


Re: Android Lint and maven builds

2012-08-07 Thread Christopher Orr

On 07/12/2012 08:15 AM, Patrik Åkerfeldt wrote:

For some reason the android-lint report is never created for my android
maven builds. In the pre steps I generate the lint-results.xml file, and
I have verified that it exists and contains right information. Then, the
build step defines the pom and the maven target (which currently is
clean cobertura:cobertura deploy but I've tried other goals like just
clean compile). Then in post step I choose to publish the lint result,
specifying the lint-results.xml file. The build is successful but there
is no references to lint reports in the console.


Yeah, you're right.  I added the Maven job type to the plugin, but it 
won't work unless you execute some Maven goal like "android-lint" or 
"check" -- but since I guess these don't really exist for Android, it 
can't be done?


I don't really know anything about Maven, so I'm going to remove this 
from the plugin, unless somebody can tell me which goal(s) should 
trigger the plugin.


Regards,
Chris


Re: Open github ticket on failure?

2012-08-07 Thread Christopher Orr

On 06/05/2012 05:56 PM, Andrew Melo wrote:

Is there a way to have jenkins open a github ticket if a commit fails?
Or would I need to have a custom post-build step for that?


You'd have to write your own script to do that, but you could trigger it 
with the "Post build task" plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task

Regards,
Chris


Re: Open github ticket on failure?

2012-08-07 Thread Christopher Orr
There doesn't seem to be one at https://github.com/jenkinsci/jenkins -- 
but you could always send a pull request to add one...


Chris


On 08/08/2012 01:06 AM, Andrew Melo wrote:

I actually wrote a python script that pings Jenkins and github. Is there a 
contrib directory that'd be useful for?


Andrew Melo
Sent from my secret fortress.

On Aug 7, 2012, at 18:58, Christopher Orr  wrote:


On 06/05/2012 05:56 PM, Andrew Melo wrote:

Is there a way to have jenkins open a github ticket if a commit fails?
Or would I need to have a custom post-build step for that?


You'd have to write your own script to do that, but you could trigger it with the 
"Post build task" plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task

Regards,
Chris




Re: Returning 404 rather than 403

2012-08-09 Thread Christopher Orr

Hi there,

On 08/09/2012 02:33 PM, Tim Pizey wrote:

I have done a little googleing around the practice of returning 404
rather than 403
for unauthorised access.

Most people seem to think it is bad practice.

I imagine the motivation is to prevent automatic url guessing.

It would be preferable, for me, if a redirect (307 Temporary Redirect)
to the Jenkins top level url was issued,
instead of both genuinely non-existant and unauthorised urls, as I
find myself url editting quite a lot at the moment.


Check out this previous thread on the topic:
https://groups.google.com/d/msg/jenkinsci-users/97hZ7JBNWpc/ohBBu3ur4LcJ

Regards,
Chris


Re: SVN changes/commit messages, and env variable

2012-08-09 Thread Christopher Orr

Hi there,

On 08/09/2012 05:05 PM, Michael Hüttermann wrote:

with Subversion, how can I get the SCM changes that triggered that Jenkins
build (the change log, or part of it) and assign that to an environment
variable for further usage, if not already present in an env variable
somehow?

The question with slightly another direction: where in a build job could I
best place a
http://mymachine/job/buildjob/buildnumber/api/xml?xpath=//changeSet/item/msg&wrapper=messages
to get all SVN commit messages and assign the result to a Jenkins
environment variable?


That's remarkably similar to this Stack Overflow question that was just 
asked and answered:

http://stackoverflow.com/a/11837662/234938

You could just use a regular "Execute shell" build step to pull the info 
from that API URL.


Regards,
Chris


Re: backup/restore "publish over ssh" servers

2012-08-09 Thread Christopher Orr

Hi there,

On 08/09/2012 09:33 PM, Brant Boehmann wrote:

I am using the publish over ssh plugin. I have roughly 100 different
servers configured for various applications to get automatically
deployed to in a development environment.
We have outgrown our Jenkins environment and are configuring a new
environment using EC2. I'd like to somehow export all the existing ssh
server configuration from our current jenkins instance (v1.455) and
import them into our new EC2 based jenkins server (v1.475).

I do not want to simply override all of the new server configuration as
we wanted to start fresh, but I do need to get the ssh servers moved over.


The server configurations in your existing Jenkins instance should be 
stored in $JENKINS_HOME/org.jenkins-ci.plugins.publish-over-ssh.xml


You may be able to copy that file directly to your new installation.

Regards,
Chris


Re: Changing the connection check URL

2012-08-14 Thread Christopher Orr

Hi there,

On 08/13/2012 12:04 PM, Marc Esher wrote:

My Jenkins server is sitting behind a firewall that does not permit
outbound access to most of the internet. I was able to get an exclusion
for jenkins-ci.com for purposes of using Jenkins auto updater and
installing plugins. However, the connection check uses google.com to
determine whether it's net-connected. Consequently I cannot update
Jenkins or install plugins because it fails at the connection check step.

Is this configurable? If I could change the connection check to
jenkins-ci.org, then updates and plugin installs could proceed as expected.


The connectionCheckUrl is built into the update-center.json file, so 
it's not something configurable on your side.


Even if you did change it, you'd need a firewall exception for 
updates.jenkins-ci.org, which redirects to mirrors.jenkins-ci.org, which 
then redirects to some hostname in the Jenkins mirror network -- so your 
current single firewall exception wouldn't be enough.


The mirror hostnames are listed here, but there is no definite guarantee 
that these will remain stable for any period of time:

http://mirrors.jenkins-ci.org/status.html

I'm not sure how others in this situation handle it, but a possible 
alternative would be to set up an HTTP caching proxy somewhere on your 
network that is allowed full internet access, then add that proxy to the 
Update Center config.


Regards,
Chris


Re: Custom Action: Sending E-Mail

2012-08-14 Thread Christopher Orr

On 08/14/2012 11:43 AM, jwa wrote:

I've written a custom action, to integrate with some
third-party proprietary mechanisms internally within the company I work for.

This is all working well, however - I'd like to send an e-mail when the
action has finished.

Can I obtain a handle to Jenkin's e-mail facilities, so that I can use
the configured SMTP, etc?


I haven't used this myself, but a quick look at the source suggests you 
could try hudson.tasks.Mailer.getDescriptor().getSmtpServer() etc.


https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/Mailer.java

Regards,
Chris



Re: Why does http://updates.jenkins-ci.org/update-center.json redirect to a broken mirror?

2012-08-14 Thread Christopher Orr

On 08/14/2012 10:23 AM, Chris Withers wrote:

On 14/08/2012 08:47, oliver gondža wrote:

According to this status report
http://mirrors.jenkins-ci.org/status.html, mirrors.karan.org is the only
mirror that might cause problems.


*sigh*


FYI, that mirror is fixed now.

Regards,
Chris



Re: Jenkins Android Emulator plugin is no longer working

2012-08-24 Thread Christopher Orr

Hi there,

Somebody else already reported this to me and filed an issue about it: 
http://jenkins-ci.org/issue/14901


It seems to be an issue starting with SDK Tools r20.0.3 -- I'll check it 
out.


Regards,
Chris


On 08/23/2012 11:52 PM, Sam Xiao wrote:

Hi all,

I updated the Android SDK in my build machine, so I can now run ICS emulator 
image, but now Jenkins is failing to launch Android Emulator with it.  This 
very same machine + setup used to work well with my Gingerbread setup.

Not sure what's the issue, but here is the log I got. Is there any other place 
I can look for log?

Jenkins version:Jenkins ver. 1.472  
Android Emulator plugin version:  2.3  

Android SDK revision: 20.0.3



Starting xvnc
[workspace] $ /usr/bin/vncserver :2 -geometry 1024x768

New 'X' desktop is localhost:2

Starting applications specified in /var/lib/jenkins/.vnc/xstartup
Log file is /var/lib/jenkins/.vnc/localhost:2.log

$ /android_sdk/android-sdk-linux/tools/android list target
[android] Using Android SDK: /android_sdk/android-sdk-linux
[android] Waiting 60 seconds before starting emulator...
$ /android_sdk/android-sdk-linux/platform-tools/adb start-server
[android] Starting Android emulator
$ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim -ports 
48312,49016 -avd ics -no-snapshot-load -no-snapshot-save -no-window
* daemon not running. starting it now on port 58303 *
* daemon started successfully *
*[android] Emulator did not appear to start; giving up*
$ /android_sdk/android-sdk-linux/platform-tools/adb disconnect localhost:49016
[android] Stopping Android emulator
$ /android_sdk/android-sdk-linux/platform-tools/adb kill-server
Terminating xvnc.
$ /usr/bin/vncserver -kill :2
Killing Xtightvnc process ID 16012
Archiving artifacts
Checking console output
No emails were triggered.
Finished: NOT_BUILT





Re: Jenkins Android Emulator plugin is no longer working

2012-08-27 Thread Christopher Orr

Hi again,

As I just wrote in http://jenkins-ci.org/issue/14901 -- I'm really 
having a tough time reproducing this myself.


Can you give any other hints about your environment?  Which OS?  32- or 
64-bit?  Did this work on a previous version of the Android SDK Tools -- 
if so, which version?  Are your jobs running on the master, or on a slave?


Any help or ideas would be appreciated!

Thanks,
Chris


On 08/23/2012 11:52 PM, Sam Xiao wrote:

Hi all,

I updated the Android SDK in my build machine, so I can now run ICS emulator 
image, but now Jenkins is failing to launch Android Emulator with it.  This 
very same machine + setup used to work well with my Gingerbread setup.

Not sure what's the issue, but here is the log I got. Is there any other place 
I can look for log?

Jenkins version:Jenkins ver. 1.472  
Android Emulator plugin version:  2.3  

Android SDK revision: 20.0.3



Starting xvnc
[workspace] $ /usr/bin/vncserver :2 -geometry 1024x768

New 'X' desktop is localhost:2

Starting applications specified in /var/lib/jenkins/.vnc/xstartup
Log file is /var/lib/jenkins/.vnc/localhost:2.log

$ /android_sdk/android-sdk-linux/tools/android list target
[android] Using Android SDK: /android_sdk/android-sdk-linux
[android] Waiting 60 seconds before starting emulator...
$ /android_sdk/android-sdk-linux/platform-tools/adb start-server
[android] Starting Android emulator
$ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim -ports 
48312,49016 -avd ics -no-snapshot-load -no-snapshot-save -no-window
* daemon not running. starting it now on port 58303 *
* daemon started successfully *
*[android] Emulator did not appear to start; giving up*
$ /android_sdk/android-sdk-linux/platform-tools/adb disconnect localhost:49016
[android] Stopping Android emulator
$ /android_sdk/android-sdk-linux/platform-tools/adb kill-server
Terminating xvnc.
$ /usr/bin/vncserver -kill :2
Killing Xtightvnc process ID 16012
Archiving artifacts
Checking console output
No emails were triggered.
Finished: NOT_BUILT





Re: parameterize downstream job with user prompt

2012-08-29 Thread Christopher Orr

On 08/29/2012 08:46 AM, Michael Hüttermann wrote:

can I somehow parameterize a downstream build job with a String where I
offer a default value and the user gets a prompt to commit the value or
can enter a different one?


When would the user enter this?  When starting the upstream job, presumably.

So you could add that as a parameter to the upstream job, then trigger 
the second job with that parameter, using the Parameterized Trigger Plugin?


Regards,
Chris


Re: Jenkins Android Emulator plugin is no longer working

2012-08-31 Thread Christopher Orr

No, that's JENKINS-13420.

Chris


On 08/29/2012 12:49 AM, SamL wrote:

Hello Folks.
I am seeing the same problem

Jenkins Core 1.459
Android Emulator Plugin
 2.1

My slave is a 64Bit MacOs

ProductName: Mac OS X Server
ProductVersion: 10.7.4


uname -a
Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012;
root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

FATAL: Unable to serialize 
hudson.plugins.android_emulator.SdkInstaller$2@74102cd4
java.io.IOException  
: Unable to 
serialize hudson.plugins.android_emulator.SdkInstaller$2@74102cd4
athudson.remoting.UserRequest.serialize(UserRequest.java:166)  

athudson.remoting.UserRequest.(UserRequest.java:62)  

athudson.remoting.Channel.call(Channel.java:645)  


athudson.plugins.android_emulator.SdkInstaller.getPlatformFromExistingEmulator(SdkInstaller.java:310)
  


athudson.plugins.android_emulator.SdkInstaller.getPlatformForEmulator(SdkInstaller.java:294)
  


athudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:173) 
 

athudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:246) 
 

athudson.model.Build$RunnerImpl.doRun(Build.java:133)  

athudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)  

athudson.model.Run.run(Run.java:1413)  

athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)  

athudson.model.ResourceController.execute(ResourceController.java:88)  

athudson.model.Executor.run(Executor.java:238)  

Caused by:java.io.NotSerializableException  
:
 hudson.Launcher$RemoteLauncher
atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)  

atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)  

atjava.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)  

atjava.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)  

atjava.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)  

atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)  

athudson.remoting.UserRequest._serialize(UserRequest.java:155)  

athudson.remoting.UserRequest.serialize(UserRequest.java:164)  

... 12 more



On Thursday, August 23, 2012 2:52:06 PM UTC-7, Sam Xiao wrote:

Hi all,

I updated the Android SDK in my build machine, so I can now run ICS 
emulator image, but now Jenkins is failing to launch Android Emulator with it.  
This very same machine + 

Re: parameterize downstream job with user prompt

2012-08-31 Thread Christopher Orr

Hi there,

In that case, since there's some interaction required this sounds like a 
job for the Promoted Builds Plugin, with a manual promotion type. 
Though I haven't really used it myself, so I don't know how it works 
with parameters.


Regards,
Chris


On 08/29/2012 02:32 PM, Michael Hüttermann wrote:

Hello,

I want the user to confirm the parameter before the downstream job
starts. The default parameter (i.e. the parameter that is offered the
user as default, for confirming or changing) is computed during build
time of the upstream job. Any idea how to accomplish that?
Thanks.


Michael



Am Mittwoch, den 29.08.2012, 14:54 +0200 schrieb Christopher Orr
:

On 08/29/2012 08:46 AM, Michael Hüttermann wrote:

can I somehow parameterize a downstream build job with a String where I
offer a default value and the user gets a prompt to commit the value or
can enter a different one?


When would the user enter this? When starting the upstream job,
presumably.

So you could add that as a parameter to the upstream job, then
trigger the second job with that parameter, using the Parameterized
Trigger Plugin?

Regards,
Chris







Unwanted symlink behaviour with Java 1.6 and git-client-plugin 1.6.5+

2014-03-27 Thread Christopher Orr

Hi all,

We discovered a subtle bug yesterday with the Git Client plugin and its 
use of jgit (even if you're using the default command-line git 
implementation).


I just noticed that this bug was probably fixed today by a pull request, 
but it's worth letting Jenkins users know about this.



If Jenkins clones a git repo on a machine running Java 1.6, the repo 
will be created with "core.symlinks = false" in the .git/config file.
This causes Bad Things to happen if your git repo happens to rely on the 
use of symlinks.



This happens because the Git Client plugin no longer uses "git clone" to 
clone a repo, but rather a combination of "git init" then "git fetch", 
and because the "git init" behaviour is implemented by jgit, even if 
you're using the default git CLI implementation.


As of jgit 3.3.0, if you're running on a JVM which does not support 
symlinks (Java 1.6 or older), then the library will explicitly set 
"core.symlinks" to false when creating the .git directory.


This means "git init" will create a repo which claims *not* to support 
symlinks, even if your file system *does* support symlinks.
"git fetch" will then be executed (via the git binary, rather than jgit) 
and will respect the erroneous "core.symlinks" config value.  Therefore 
you end up with files rather than the symlinks you expected in your 
cloned repo.


(We actually saw this on an OS X 10.9 server with Jenkins running under 
Java 1.7 (with Java 1.6 also on the server as the non-default Java 
install), but jgit — for some reason — seems to think it's running on 
Java 1.6 and so believes symlinks aren't supported).



Partly this seems to be a Git Client problem, but also (arguably) a jgit 
problem, as they explicitly configure new repos to reject symlinks, 
under the assumption that the repo will always be manipulated via jgit.


But at least this merge from today would appear to fix the Git Client 
plugin by removing the use of jgit for "git init" for the CLI 
implementation:

https://github.com/jenkinsci/git-client-plugin/commit/f5b27a9


So, If you see any weird problems with git repos and symlinks, you know 
why! :)


Regards,
Chris

--
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: Help required for Android plugin - 'use emulator snapshots'

2014-05-13 Thread Christopher Orr

On 10/05/14 00:49, Charles Chan wrote:

I have been trying to use the snapshot functionality in the Android
plugin but somehow it keeps creating a new snapshot every time.

I looked at the code EmulatorConfig.hasExistingSnapshot(), and saw the comment. 
But I don't think it apply?

 // Work around
 // https://code.google.com/p/android/issues/detail?id=34233
 // by always using EMULATOR_ARM to view the snapshot list.


That bug does apply.  That code you quoted isn't in a released build 
yet; I'm aiming to do a new plugin release this week.


As mentioned here (and hinted at by that code), you can change the 
emulator binary in your job config to get around that Android SDK tools 
bug:

http://stackoverflow.com/questions/13381460/why-is-jenkins-android-emulator-plugin-recreating-my-emulator-snapshots-in-every

Regards,
Chris

--
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: Jenkins change language intermitentily

2014-06-17 Thread Christopher Orr
It seems that the "Default Language" field could do with some (better) 
documentation.


You could try entering "en" or "en_US" instead of "ENGLISH" in the field 
you mentioned and see if that improves things, as this value should be 
compatible with the Java Locale class.  Not having read the Java source, 
but perhaps entering "ENGLISH" causes some indeterminate behaviour 
somewhere along the line...


Regards,
Chris


On 06/13/2014 07:34 PM, Eduardo Dias wrote:

we are using locale plugin but the language changes.

$ ps -ef | grep jenkins
jenkins850 1  0 Apr05 ?00:00:00 /usr/bin/daemon
--name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins
--output=/var/log/jenkins/jenkins.log
--pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xms512m
-Xmx2048m -XX:MaxPermSize=2048m *-Duser.language=en -Duser.country=US*
-jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war
--httpPort=8080 --ajp13Port=-1
jenkins851   850  6 Apr08 ?4-07:24:47 /usr/bin/java -Xms512m
-Xmx2048m -XX:MaxPermSize=2048m -Duser.language=en -Duser.country=US
-jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war
--httpPort=8080 --ajp13Port=-1

Imagem inline 1


2014-06-12 16:56 GMT-03:00 Daniel Beck mailto:m...@beckweb.net>>:

Please be more specific what you mean by 'Jenkins is configured to
use English'.

By default, Jenkins tries to return responses in the language
preferred by the user (Accept-Language header).

Use Locale Plugin to have Jenkins ignore your users' preferences.

On 12.06.2014, at 16:52, Eduardo Dias mailto:eduardodia...@gmail.com>> wrote:

 > Hi All,
 >
 > we are experiencing a weird Jenkins behavior, without any change
in Jenkins configuration, the language changes from English to
Portuguese.The Jenkins is configured to use English.
 > To set the language back to English we just open the Jenkins
configuration and save without change nothing. The users that has
admin access use English browser, but has some viewers that can be
using Portuguese browsers, we have a team split in US and Brazil.
 >
 > Has anyone that has experienced this behavior before?
 >
 > Thanks in advance.
 >
 > Regards,
 >
 > Eduardo
 >
> --
> 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 tojenkinsci-users+unsubscr...@googlegroups.com
.
> For more options, visithttps://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.




--

Atenciosamente,

Eduardo

--
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: Google Play Developer API Jenkins Plugin

2014-08-04 Thread Christopher Orr

Hi Josh,

On 08/01/2014 08:26 PM, Josh Moore wrote:

I am wondering if anyone is working on a plugin to publish an APK to the
Google play store now that Google has released an API
 to do it? I'd
like to check before I bother trying to create a Jenkins plugin.


I wanted to take a look at writing a plugin this week (I've written the 
other Android plugins), but haven't started so far.


Do you have something already?  Were you thinking of supporting the 
other parts of the API, beyond APK upload (e.g. screenshot and other 
listing management)?


Regards,
Chris

--
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: HipChat plugin - can it be modified to publish to on prem?

2014-08-14 Thread Christopher Orr

On 08/14/2014 07:29 PM, VFloyd wrote:

Morning,
We run Jenkins on premises and are testing HipChat integration, which
would also be on premises.  There are lots of firewall, pci, etc issues.

Has anyone gotten this type of setup to work?  When we looked in GitHub
it looks like the HipChat plugin only sends info to cloud based setups.
Is that true?

Any info is appreciated.


I think it just uses the public HTTP API.  I seem to recall the HipChat 
plugin being a bit strange to configure and that it wasn't using the 
Instant Messaging plugin functionality for some reason, but maybe that's 
changed.


Assuming the on-premises version allows connections via XMPP, as the 
hosted version does, you could try using the Jabber Plugin.


Regards,
Chris

--
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: Recently upgraded to Jenkins 1.576 seeing one of the builds running continuously with no changes

2014-09-03 Thread Christopher Orr

On 08/28/2014 09:34 PM, rajesh wrote:

Hello,
we recently upgraded to Jenkins 1.576
we are using
Stash to host the git repository.
Jenkins build machine is Linux centos
the build keeps running back to back and never stops (about 17000 builds
completed ).


Have you checked the build pages, console logs or SCM polling logs for 
the job to see what reason is listed for starting a new build each time?


Chris


--
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: Block jobs running on same node

2014-09-28 Thread Christopher Orr

On 09/29/2014 12:25 AM, Andrew Sumner wrote:

I need similar behaviour to the Build Blocker Plugin but only block
matches on the same node.

Ideally if another nodes is free then the build should be shunted across
to it.

I don't want to reduce the executor count as that would stop other,
unrestricted jobs from running on these nodes.


Maybe something like 
https://wiki.jenkins-ci.org/display/JENKINS/Heavy+Job+Plugin?


-Chris

--
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: Allowing a job to run (triggered manually) only if a specific list of jobs are "blue" successful

2014-10-24 Thread Christopher Orr

On 09/10/14 15:38, Alon Nisser wrote:

Is there a way to achieve that? getting the status of other jobs and
checking if last run was "success"?

I don't want to automatically run this deployment job on the upstream
success, but to trigger this manually. but still safeguard by checking
upstream (multiple) success


You try using the Promoted Builds Plugin as described in this Stack 
Overflow answer:

http://stackoverflow.com/a/9013233/234938

--
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: Jenkins on Windows: BSoD and Fortify

2014-10-30 Thread Christopher Orr

On 28/10/14 16:56, j.g.wess...@rn.rabobank.nl wrote:

 From the Jenkins-ci.org website we understand that the BSoD problem has
been worked around in Jenkins version 1.580.x or higher. This means that
upgrading to one of the latest (non LTS) versions would be a (temporary)
solution for our problem. But, to solve BSoD’s is not the only challenge.


FWIW, Jenkins LTS 1.580.1 was released yesterday (despite the website 
still saying 1.565.3).


Regards,
Chris

--
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: Automating Jenkins Deployments with Chef

2015-01-15 Thread Christopher Orr

Hi there,

On 01/12/2015 01:46 PM, Kenneth Baltrinic wrote:

I am working on creating a chef cookbook to automate our Jenkins
infrastructure.  I am using the opscode Jenkins cookbook as my starting
point but it only has a few basic resources.  I can see I am going to
need use the cookbook's jenkins_script resource to configure Jenkins via
groovy.


What are you trying to configure via Groovy?  Quite a lot of stuff can 
be done via the REST API or the CLI, but using the Groovy console 
generally seems more suited to fairly low-level operations.


I know it's not Chef, but have you seen the Puppet module for Jenkins? 
Likely there are some insights to be found in its code:

https://forge.puppetlabs.com/rtyler/jenkins



That would be fine except I am having considerable difficulty figuring
out how to configure Jenkins via groovy.  There does not seem to be a
lot of information out there either in the Jenkins docs nor in blogs,
etc.  None of the plug-ins document their API, etc.  There are API docs
for main Jenkins which help but only if you already understand the big
picture, which is what I am struggling with right now.  I understand how
to configure all of our Jenkins boxes via the UI, but how do I learn to
translate that into knowledge of writing groovy scripts?  Right now the
only means I am seeing is to spend a very long time digging my way
through the source code itself and learning from trial and error.  Is
there another way?

How do people out there learn and use the Jenkins API?


Trial-and-error is probably the most common way :)  But this mailing 
list and the IRC channel are good resources too.


But when you say you're struggling with the big picture, what are you 
trying to do?  Plugins generally don't need to be configured, especially 
not via Groovy scripts — most plugin configuration is done per-job and 
so is bundled with with config.xml for the job.


You should be able to get pretty far by building the config you want in 
the web UI, exporting the config XML via 
$JENKINS_URL/job/$JOB_NAME/config.xml, which you can then later POST to 
the REST API in another Jenkins instance.


Regards,
Chris

--
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/54B87C86.70007%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Security in Copy Artifact Plugin

2015-01-15 Thread Christopher Orr

On 01/15/2015 01:45 PM, Nigel Robbins wrote:

Does anyone know the underlying tool/protocol (e.g. sftp) that is used
to copy artifacts between jobs/nodes ?


As with all communications between Jenkins nodes, the internal TCP 
remoting mechanism is most likely used:

https://github.com/jenkinsci/remoting

Slaves are usually connected via SSH so, in that respect, file transfers 
should be secure.  In the case of JNLP connections, I'm not sure.


Regards,
Chris

--
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/54B87DE5.4070409%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: downloads from archives.jenkins-ci.org never finish...

2015-01-16 Thread Christopher Orr

On 16/01/15 16:16, Aaron Johnson wrote:

Can someone please verify this:

I am unable to download RPMs from archives.jenkins-ci.org, example:
http://archives.jenkins-ci.org/redhat-stable/jenkins-1.424.2-1.1.noarch.rpm

The download starts, and goes very slow (less than 5Kbps) and never
finishes...


Yup, I can reproduce this from Germany; but Rackspace seems to be doing 
fine, and other nearby IP addresses seem speedy.


Since you're downloading a three-year-old package, you're being 
redirected from mirrors.j.o to archives.j.o.
I'm just speculating, but maybe there's a data transfer limit on the 
archives server which gets activated if there has been too much traffic, 
to avoid excess data transfer costs (as has happened in the past).




Because of this I am unable to create an internal mirror of RPM packages
for Jenkins.


Out of interest, why do you need to create a mirror of long-outdated 
Jenkins packages?


Regards,
Chris

--
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/54B938A6.7020706%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: how to get prqa-plugin.hpi

2015-11-18 Thread Christopher Orr
See https://issues.jenkins-ci.org/browse/INFRA-489


On 13/11/15 03:19, zhangkm wrote:
> Hi,
> why I can't get the plugin(prqa-plugin.hpi) from
> https://wiki.jenkins-ci.org/display/JENKINS/Programming+Research+Plugin ? 
> 
> It always prompts error ,"The requested URL /latest/prqa-plugin.hpi was not
> found on this server."  
> who can tell me another way to get the prqa-plugin.
> 
> Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/564D1AEA.6050707%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Future of the Maven Project Type

2015-11-18 Thread Christopher Orr
On 18/11/15 11:47, Stephen Connolly wrote:
> My plan, once I come up with a better name for literate, is to have that
> project type be able to provide smart builds of Maven projects with near
> zero configuration (other than adding a marker file to say literate
> should consider this as a valid branch)

Sounds good!


> I am a sad panda that this project type did not take off... but whatever

Am I missing something?  There are posts here every so often that
mention the amazingness of Literate, yet it's never had a release, so
nobody can install it, so I'm not surprised it hasn't taken off...

Unless you scroll to the bottom of a blog post on jenkins-ci.org from
2013, or to the bottom of the infobox-less wiki page, and then change
your Update Centre, you'll never see the plugin.

If it works even half-decently, just release it.. right? :)

Regards,
Chris

-- 
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/564D1D8E.70503%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not saving P12 certificate from Google Service Account from private key

2015-11-18 Thread Christopher Orr
Do you see the files being created in $JENKINS_HOME/credentials/gauth
(that's from memory, so not 100% sure on the path)?

Are those gauth p12 filenames listed in $JENKINS_HOME/credentials.xml?


On 18/11/15 19:45, Andrew Novinger wrote:
> For some reason Jenkins lost the original p12 certificate from Google
> for the API Service account to upload to google.  I have recreated a new
> P12 certificate, and downloaded it my local machine.  When I try to add
> the certificate to the account, it shows up, when I hit save and reopen
> the credentials, the certificate is missing.  I have tried removing the
> Google Plugin, removing all the config files I could find for it, and
> reinstall plugin, and same result as before.  Any other thoughts or
> suggestions to try to get this 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/c35d2174-6f4b-4c6e-ac17-df48ce2f11c7%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/564D1DF1.3030003%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not saving P12 certificate from Google Service Account from private key

2015-11-20 Thread Christopher Orr
Weird.  There should be `emailAddress` and `p12KeyFile` tags within
`serviceAccountConfig`.

I see that v0.4 of the plugin came out recently which, from a quick look
at the code changes, makes some changes in how the data is stored — but
I tested with 0.3, upgrading to 0.4, and re-saving with 0.4 and
everything worked fine (and there were no data changes on disk).

Do you see any errors in the Jenkins logs when you save the credential?
 Does the .p12 file get saved to $JENKINS_HOME/gauth?

Regards,
Chris


On 20/11/15 02:11, Andrew Novinger wrote:
> I do not see the file being saved in the credentials.xml file.
> 
> Here is the Google Store portion of the credentials.xml file
> 
>   
>
>  plugin="google-oauth-plugin@0.4">
>   
>   Google
>class="com.google.jenkins.plugins.credentials.oauth.JsonServiceAccountConfig"/>
>
> 
>   
> 
> -- 
> 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/d829d30c-eecc-4a2d-829b-f3577a402265%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/564FAD0B.4050704%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not saving P12 certificate from Google Service Account from private key

2015-11-21 Thread Christopher Orr
Which platform is this happening on?

There's a report from a Windows user here:
https://issues.jenkins-ci.org/browse/JENKINS-31638

It did seem to be working for me on Linux, as that user also reports.


On 21/11/15 00:30, Christopher Orr wrote:
> Weird.  There should be `emailAddress` and `p12KeyFile` tags within
> `serviceAccountConfig`.
> 
> I see that v0.4 of the plugin came out recently which, from a quick look
> at the code changes, makes some changes in how the data is stored — but
> I tested with 0.3, upgrading to 0.4, and re-saving with 0.4 and
> everything worked fine (and there were no data changes on disk).
> 
> Do you see any errors in the Jenkins logs when you save the credential?
>  Does the .p12 file get saved to $JENKINS_HOME/gauth?
> 
> Regards,
> Chris
> 
> 
> On 20/11/15 02:11, Andrew Novinger wrote:
>> I do not see the file being saved in the credentials.xml file.
>>
>> Here is the Google Store portion of the credentials.xml file
>>
>>   
>>
>> > plugin="google-oauth-plugin@0.4">
>>   
>>   Google
>>   > class="com.google.jenkins.plugins.credentials.oauth.JsonServiceAccountConfig"/>
>>
>> 
>>   
>>
>> -- 
>> 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/d829d30c-eecc-4a2d-829b-f3577a402265%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/d829d30c-eecc-4a2d-829b-f3577a402265%40googlegroups.com?utm_medium=email&utm_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/565092A2.6010302%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: How to use proxy socks with Jenkins

2015-11-27 Thread Christopher Orr
It should work if you use the regular Java proxy properties:
https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy

i.e. "socksProxyHost" and co:
https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html

Regards,
Chris


On 27/11/15 12:34, donovan.bailey2...@gmail.com wrote:
> Hi, i have installed Jenkins inside our corporate network. I would like
> to SSH to Github to pull down code but i can't work out how to configure
> Jenkins to use socks proxy 5 instead of a normal http proxy. We can only
> SSH outside if we use a socks proxy. Is it a system wide change or a
> change we need to make in Jenkins?
> 
> -- 
> 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/573d3825-290d-47dc-af47-bea8591f1606%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/5658ECCC.8090809%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: android-x86 or Genymotion emulators with Jenkins

2015-12-01 Thread Christopher Orr
Genymotion emulators should automatically become available via adb, so
you shouldn't have to do any special setup.

If not, you can get the IP address of the emulator via the Genymotion
shell (I believe the shell command is "devices list"), and then run `adb
connect $IP`.


On 01/12/15 14:36, Kirshan Luhana wrote:
> Greetings
> 
> did anyone tried android-x86 genymotion emulators with Jenkins, who do
> you connect and get console output ?
> 
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/565E3454.2030101%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Get API token using API

2015-12-01 Thread Christopher Orr
On 30/11/15 16:51, cchap...@kinaxis.com wrote:
> Is it possible to get the API token using the API after authenticating
> with the users real password?

No, user API tokens are not exposed via the API.

Regards,
Chris

-- 
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/565E3BA5.80201%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Build flow "build" function doesn't return a build object if FAILED or UNSTABLE

2015-12-01 Thread Christopher Orr
Hi there,

On 01/12/15 14:17, Valeriy Leykin wrote:
> I'm using the build flow in my jobs and I would like to get any build
> result from build object even if the build is failed or unstable.

I haven't used Build Flow, but I would guess that this is a basic
scoping problem.

BUILD_TO_RETURN is defined in the "try" block, which means it's not
visible outside of that block, i.e. it won't exist and so returns `null`
when the "catch" block tries to access it.

Try defining your variable before the "try" block:

  def BUILD_TO_RETURN
  try {
BUILD_TO_RETURN = build(...)
  } catch (...) {
...
  }

Regards,
Chris

-- 
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/565E3E1E.2050208%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: How to use proxy socks with Jenkins

2015-12-01 Thread Christopher Orr
>From the example on the wiki page, you add them as Java options:

  java -D -D -jar jenkins.war


You don't mention which OS or Jenkins package you're using, or how you
modified the startup script, so it's hard to give specific info.

But on Debian, you would modify JAVA_ARGS in /etc/default/jenkins, and
JENKINS_JAVA_OPTIONS in /etc/sysconfig/jenkins for the RPM package.

There's some more info to be found on the wiki here:
https://wiki.jenkins-ci.org/display/JENKINS/Use+Jenkins#UseJenkins-RunningJenkinsasadaemon

Regards,
Chris


On 30/11/15 10:55, donovan.bailey2...@gmail.com wrote:
> Thanks but where do you specify the socks proxy settings? Can this be
> added to the jenkins startup script? I have tried but the process
> doesn't start so i am clearly putting it in the wrong place. Has anyone
> got this successfully working?
> 
> 
> On Friday, 27 November 2015 23:52:58 UTC, Christopher Orr wrote:
> 
> It should work if you use the regular Java proxy properties:
> https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy
> <https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy>
> 
> i.e. "socksProxyHost" and co:
> 
> https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html
> 
> <https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html>
> 
> 
> Regards,
> Chris
> 
> 
> On 27/11/15 12:34, donovan.b...@gmail.com  wrote:
> > Hi, i have installed Jenkins inside our corporate network. I would
> like
> > to SSH to Github to pull down code but i can't work out how to
> configure
> > Jenkins to use socks proxy 5 instead of a normal http proxy. We
> can only
> > SSH outside if we use a socks proxy. Is it a system wide change or a
> > change we need to make in Jenkins?
> >
> > --
> > 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 
> > <mailto:jenkinsci-users+unsubscr...@googlegroups.com >.
> > To view this discussion on the web visit
> >
> 
> https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com
> 
> <https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com>
> 
> >
> 
> <https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com?utm_medium=email&utm_source=footer
> 
> <https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com?utm_medium=email&utm_source=footer>>.
> 
> > For more options, visit https://groups.google.com/d/optout
> <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
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f4059e21-db64-4214-bc4f-b252862a2801%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/f4059e21-db64-4214-bc4f-b252862a2801%40googlegroups.com?utm_medium=email&utm_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/565E3FF7.9040507%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Get job schedule from API

2015-12-04 Thread Christopher Orr
Only part of the job config is exposed in the API.  For example, SCM
info is there, but not build triggers.  I imagine you could file a
feature request for that :)

Though there is at least a way of programmatically grabbing the job
config, so if you're authenticated, you can parse the XML, e.g.:

curl -s https://ci.jenkins-ci.org/job/infra_update_center_v3/config.xml
| xpath -e '/project/triggers/hudson.triggers.TimerTrigger/spec/text()'

Regards,
Chris


On 04/12/15 17:02, cchap...@kinaxis.com wrote:
> Thanks Victor but I'm not trying to "schedule" a build.  I want a way to
> access the recurring schedule of the job from the API (i.e.  The "0 0 *
> * *" in the picture below).
> 
> 
> 
> 
> 
> On Friday, December 4, 2015 at 10:08:17 AM UTC-5, Victor Martinez wrote:
> 
> https://YOUR_JENKINS_URL/job/YOUR_JOB/api/
> 
> 
> Look at the Perform a build section
> 
> Cheers
> 
> On Friday, 4 December 2015 15:35:04 UTC+1, ccha...@kinaxis.com wrote:
> 
> Is there a way to get the schedule for a job from the API?  I
> can't find it anywhere. :(
> 
> Thanks,
> Clint
> 
> -- 
> 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/ddc8ca2e-0571-4b35-836c-41095dd19e4d%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/5661DF45.1060502%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Zero Day attack due to Apache Commons statement to widespread Java object de-serialisation vulnerability

2015-12-07 Thread Christopher Orr
Also note that, if you're planning a Jenkins upgrade anyway, there's
another Jenkins release coming out tomorrow (1.625.3) to fix one or more
new security issues:
https://groups.google.com/forum/#!topic/jenkinsci-advisories/UbJeKl4Vxbw

So, you may want to apply the CLI workaround from the blog post that
Mark linked to just now, and do a full upgrade tomorrow (or more likely
Thursday, as releases seem to be done in US West Coast working hours).

Regards,
Chris


On 08/12/15 02:09, Mark Waite wrote:
> Yes, based
> on 
> https://jenkins-ci.org/content/mitigating-unauthenticated-remote-code-execution-0-day-jenkins-cli
>  ,
> that is impacting Jenkins.
> 
> The link you posted states that Jenkins is affected.  It includes the
> link to the above Jenkins blog posting which describes a remediation you
> can take with your existing Jenkins version, and a statement that
> 1.625.2 includes the fix.  If you read those two postings, you'll be
> able to answer your own questions, including describing the bug and its
> vulnerability (whatever that means to you).
> 
> Never waste a crisis.  In this case, use it as the opportunity to
> upgrade your environment to Java 8 (or at least to Java 7), and to
> install the latest Jenkins long term support release (1.625.2).
> 
> Mark Waite
> 
> On Mon, Dec 7, 2015 at 5:56 PM Indra Gunawan (ingunawa)
> mailto:ingun...@cisco.com>> wrote:
> 
> 
> https://blogs.apache.org/foundation/entry/apache_commons_statement_to_widespread
> 
> Building on Frohoff's tool ysoserial
> , Stephen Breen (@breenmachine
> ) of Foxglove Security inspected
> various products like WebSphere, JBoss, Jenkins, WebLogic, and
> OpenNMS and describes
> 
> (http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/)
> for each of them various attack scenarios.
> 
> Both research works show that developers put too much trust in Java
> Object Serialization. Some even de-serialize objects
> pre-authentication. When deserializing an Object in Java you
> typically cast it to an expected type, and therefore Java's strict
> type system will ensure you only get valid object trees.
> Unfortunately, by the time the type checking happens, platform code
> has already created and executed significant logic. So, before the
> final type is checked a lot of code is executed from the
> readObject() methods of various objects, all of which is out of the
> developer's control. By combining the readObject() methods of
> various classes which are available on the classpath of the
> vulnerable application an attacker can execute functions (including
> calling Runtime.exec() to execute local OS commands).
> 
> The best protection against this, is to avoid using a complex
> serialization protocol with untrusted peers. It is possible to limit
> the impact when using a custom ObjectInputStream which
> overridesresolveClass
> 
> 
>  to
> implement a whitelist
> approach http://www.ibm.com/developerworks/library/se-lookahead/.
> This might however not always be possible, such as when a framework
> or application server provides the endpoint. This is rather bad
> news, as there is no easy fix and applications need to revisit their
> client-server protocols and overall architecture.
> 
> …
> 
> Is this truly impacting Jenkins?  Our IT suggests the following
> Jenkins version to upgrade before the end of year shut-down.  I want
> to know the impact of this bug, and its vulnerability.  
> 
> Remediation:
> 
>   * Jenkins main line users should update to 1.638
>   * Jenkins LTS users should update to 1.625.2
> 
> 
> Thank you
> -Indra
> 
> -- 
> 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/D28B6AAB.3D25B%25ingunawa%40cisco.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

Re: Groovy Question: revision from job?

2015-12-09 Thread Christopher Orr
Hi there,

On 09/12/15 23:40, Guy Matz wrote:
> Hi!  Anyone know how I can retrieve the git revision from a job?
> 
> I can get to the build:
> 
> j = Jenkins.instance.getJob('render-master')
> b475 = j.getBuildByNumber(475)
> 
> but I can't find a way to to get the git revision associated with that
> build.  Any thoughts would be appreciated!

Git metadata is stored in a `BuildData` action, so something like this
(untested) should work:

b475.getAction(hudson.plugins.git.util.BuildData.class).lastBuiltRevision.sha1String

Regards,
Chris

-- 
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/5668C714.30504%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy Question: revision from job?

2015-12-10 Thread Christopher Orr
Well, I had the advantage of having used that API in my own plugin before :)

But yeah, Git is just plugin like any other, so there's no magical way
of knowing how to access data from its internals.

Though if you know that "Actions" exist, and are a mechanism for plugins
to associate data with a build, you might be able to get somewhere in
general by using the Script Console as Brian mentioned, coupled with a
bit of digging on GitHub.

If you have specific questions, the mailing list or IRC are also good
bets :)

Regards,
Chris


On 10/12/15 15:18, Guy Matz wrote:
> Nicely done!!  How the heck was I supposed to know that!?  :-(  The API
> is less than intuitive and does not seem to be well documented.  Any
> advice on how to best use it?
> 
> Thanks again!!
> 
> On Wed, Dec 9, 2015 at 7:28 PM, Christopher Orr  <mailto:ch...@orr.me.uk>> wrote:
> 
> Hi there,
> 
> On 09/12/15 23:40, Guy Matz wrote:
> > Hi!  Anyone know how I can retrieve the git revision from a job?
> >
> > I can get to the build:
> >
> > j = Jenkins.instance.getJob('render-master')
> > b475 = j.getBuildByNumber(475)
> >
> > but I can't find a way to to get the git revision associated with that
> > build.  Any thoughts would be appreciated!
> 
> Git metadata is stored in a `BuildData` action, so something like this
> (untested) should work:
> 
> 
> b475.getAction(hudson.plugins.git.util.BuildData.class).lastBuiltRevision.sha1String
> 
> Regards,
> Chris
> 
> --
> 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%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/jenkinsci-users/5668C714.30504%40orr.me.uk.
> 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
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CABnTgtWXk1o10d537DPv37zJe-uFwtnvo9rjZ8E%2BzLkb%3D%2BOitw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CABnTgtWXk1o10d537DPv37zJe-uFwtnvo9rjZ8E%2BzLkb%3D%2BOitw%40mail.gmail.com?utm_medium=email&utm_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/566A03EA.20902%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: [xvfb-plugin] fails second time

2015-12-10 Thread Christopher Orr
On 10/12/15 21:19, V. Mark Lehky wrote:
> I have just installed the xvfb-plugin on my Jenkins:
> - Linux jenkins 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u6 x86_64 GNU/Linux
> - Xvfb Version: 2:1.12.4-6+deb7u6
> - Jenkins ver. 1.641
> - Xvfb plugin 1.1.2
> 
> I configured everything with defaults as per documentation.
> 
> The first time I run a job, in the logs I can see:
> 
> Xvfb starting$ Xvfb :1 -screen 0 -fbdir
> /var/lib/jenkins/xvfb-99-1021388786522495009.fbdir
> and my job runs fine.
> 
> Every *subsequent* run, the logs say:
> Xvfb starting$ Xvfb :1 -screen 0 -fbdir
> /var/lib/jenkins/xvfb-100-2665068639033469958.fbdir
> 
> ERROR: Xvfb failed to start, consult the lines above for errors
> 
> The "lines above" are just those two, nothing else. Is there a log
> somewhere? If I reboot the server, then I am back to "first time";
> however this is a pretty drastic workaround.
> What do I do to resolve this?
> 
> TIA for any advice.

I would guess that Xvfb isn't actually getting shut down after the
initial build?  Do you see it still running after a build completes?

Do you see the "Xvfb stopping" line in the output, and any other errors
around the same time?

Regards,
Chris

-- 
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/566A05E4.4060902%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: which logo do you like best?

2015-12-14 Thread Christopher Orr
Something like #2 would be good — #6 is also ok.

Don't forget to get permission to use the Jenkins trademark! :D

Regards,
Chris


On 14/12/15 20:17, Alyssa Tong wrote:
> Hello,
> 
> Planning is underway for Jenkins World 2016 in Santa Clara, CA. This
> will be a three days Jenkins conference for 2016.  I wanted to solicit
> feedback for the new Jenkins World logo.  Attached are some options to
> choose from, let us know which logo you like best and if you have better
> pls do share.
> 
> thnx
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/566F2588.3010605%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Java API for Team Foundation Server

2016-01-08 Thread Christopher Orr
On 07/01/16 18:01, Andy Falanga wrote:
> Does anyone know the source (not the code but who produces) for the Java
> API used by the Jenkins Team Foundation Server plugin?

The plugin bundles a com.microsoft.tfs.sdk JAR file:
https://github.com/jenkinsci/tfs-plugin/blob/0364972/pom.xml#L219-L225

This appears to come from Microsoft's TFS SDK for Java.

Regards,
Chris

-- 
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/56904DE7.303%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Thread hijacking

2016-01-08 Thread Christopher Orr
On 08/01/16 07:58, Dirk Heinrichs wrote:
> please don't hijack other peoples threads, it's considered bad habit.

False accusations are bad as well ;)

The parent didn't hijack any threads, as you can see from a regular
email client, the Google Groups web page for the thread, or from the
headers of the email.

-- 
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/56904E33.2090107%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Problem in Cloudbees custom build environment plugin integration with Jenkins

2016-01-08 Thread Christopher Orr
Hi there,

On 08/01/16 09:59, puneet singh wrote:
> I am using cloudbees custom build environment plugin to create docker
> container and run CI build inside it.
> I'm facing following error kindly help me with this.
> 
> ERROR: Processing failed due to a bug in the code. Please report this to 
> jenkinsci-users@googlegroups.com
> java.lang.RuntimeException
> : 
> Failed to build docker image from project Dockerfile
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:127)
> 
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage(DockerfileImageSelector.java:41)
> 
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:167)
> 

You didn't mention which version of the plugin you're using, but it
seems to be the latest version.

The plugin appears to be wrongly causing that "processing failed" error
message to be shown — that should be handled more gracefully.  Code:
https://github.com/jenkinsci/docker-custom-build-environment-plugin/blob/docker-custom-build-environment-1.6.4/src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java#L120-L128

According to that part of the source code, running the `docker build`
command failed, and any output from the docker command will have been
written to the build log, right before the error message you've posted
here.  So try looking there.

I also note that there has been a lot of activity since the most recent
plugin release, so maybe the maintainers will make a new release soon,
which will fix this or add more checks or more logging etc..

Regards,
Chris


-- 
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/569050B4.9080208%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Security best practice for Cloudbees Docker Workflow?

2016-01-09 Thread Christopher Orr
On 09/01/16 13:44, Thomas Goeppel wrote:
> Hello community,
> 
> I've been experimenting with the Cloudbees Docker Workflow plugin, and I
> really like the ease of use of this DSL. Now I'd like to get security right.
> 
> Problem: the plugin assumes that the docker binary is in the path
> .
> In my understanding this has the implication that the user that issues
> docker commands (e.g. jenkins) has to be in the docker group!
> 
> The *docker* variable provided by the docker workflow plugin limits the
> security impact by explicitly setting a non-priviledged  user with the
> "-u" option. However, at least in docker 1.9.1 I can pass a second "-u"
> option which overwrites the original settings:
> 
> docker.image('ubuntu').inside ('-v /etc:/etc-host -u 0') {
> sh '''
> whoami
> # -> root
> awk '{gsub(/[A-Z]/,"!"); print}' /etc-host/shadow
> # -> slightly masked password hashes
> '''
> }
> 
> I could also have passed in the "--privileged" flag.
> 
> For a moment I asked myself it it would be worthwhile filing an ER, as
> to have the plugin sanitize the "docker run" parameters. But the
> fundamental problem is that a Jenkins job has the right to run the
> docker commands. Running the following script would be even worse:
> 
> node {
> sh 'docker run  -v /etc:/etc-host ubuntu cat /etc-host/shadow'
> } 
> 
> 
> One option would be to write a shim for the docker command, that only
> allows a subset of commands, and sanitizes the options and parameters.

Even if you do that, the jenkins user, as part of the docker group, will
still have direct access to the unix socket that the Docker daemon uses.

As is quite often the case with a CI server, you most likely need to
either trust the users who can configure jobs (or edit Workflow scripts
(if in source control)), or lock down the Jenkins configuration to allow
only specific users.

The Docker security guide also says "only trusted users should be
allowed to control your Docker daemon":
https://docs.docker.com/engine/articles/security/

Regards,
Chris

-- 
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/5691A024.8030504%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Slack Plugin doesn't notify channel

2016-01-14 Thread Christopher Orr
Feel free to just add documentation to the wiki page (as it suggests you
do), since that's the place most people will look for information:
https://wiki.jenkins-ci.org/display/JENKINS/Slack+Plugin says

Regards,
Chris


On 14/01/16 19:28, Brenton wrote:
> So who wants to write up a PR? :)
> 
> On 13 January 2016 at 21:47, Mike Meluso  > wrote:
> 
> Yes I agree, it should be added to the instructions. I'm glad I
> found this thread or I would've given up.
> 
> On Monday, March 30, 2015 at 4:31:34 PM UTC-4, Brantone wrote:
> 
> Agreed would be handy ... even anything at this point since it's
> pretty scarce.
> It does seem slightly counter-intuitive that a Post-build action
> would be required for something that could send a notification
> before it even builds ... but, there ya have it.
> 
> On 30 March 2015 at 13:23, Hugo M  wrote:
> 
> Wow! I didn't know that I should add it as a post-build
> action. It worked like a charm. Thanks!!
> 
> Maybe this should be added to "Jenkins Instructions" section
> of the repo README?
> 
>  
> Hugo Massaroli on about.me
>   
> Hugo Massaroli
> about.me/hugo.massaroli
>  
> 
> 
> 
> 2015-03-30 14:27 GMT-03:00 Brenton Bartel :
> 
> No other dependency as far as I'm aware. Have you added
> Slack as a post-build action and checked off necessary
> options in the job itself?
> 
> 
> On 30 March 2015 at 10:13, Hugo M  wrote:
> 
> Another discovery, when I press "Test connection" I
> see things happening in the jenkins.log. But If I
> start a job, or if that job fails (job configured
> with Slack plugin), nothing appears on the log
> (nothing related with Slack plugin).
> 
> Does Slack plugin has a dependency on another
> plugin? It seems that is simply not triggering the
> post when a job start / fail / etc.
> 
>  
> Hugo Massaroli on about.me
>   
> Hugo Massaroli
> about.me/hugo.massaroli
>  
> 
> 
> 
> 2015-03-30 10:10 GMT-03:00 Hugo M :
> 
>  Hi Brantone, thanks for your answer.
> 
> Both "Test connection" in job configuration and
> in Global Settings work in the sense that a
> message is posted on Jenkins: "Slack/Jenkins
> plugin: you're all set."
> 
> If I put wrong data there I get "Success" too
> but no message is posted, and I can see errors
> in the Jenkins log.
> 
> My problem is that I'm not getting the
> notifications from the jobs anyway.
> 
> Maybe this is related with the fact that I'm
> using a private channel? But I can see the
> Jenkins message even if it's a private channel,
> so it souldn't be an issue.
> 
> 
> 
>  
> Hugo Massaroli on about.me
>   
> Hugo Massaroli
> about.me/hugo.massaroli
>  
> 
> 
> 
> 2015-03-30 4:46 GMT-03:00 Brantone
> :
> 
> I'm guessing part of what you're seeing is
> mentioned
> here: 
> https://github.com/jenkinsci/slack-plugin/issues/51
> 
> Have you verified your configs in the Manage
> Jenkins > Configure System > Global Slack
> Notifier Settings  ?
> 
> I've found that that's a better test of
> configuration and values stick better when
> individual jobs use them.
> 
> 
> On Thursday, 26 March 2015 11:59:09 UTC-7,
> Hugo M wrote:
> 
> Hello, I'm using:
> 
> https://wiki.jenkins-ci.org/__display/JENKINS/Slack+Plugin
> 
> 
> 
> Version: 1.7
>

  1   2   3   >