Cloud slave never provisioned (sometimes)

2015-01-20 Thread thomas . suckow
 

I am trying to track down an issue where a cloud slave is never provisioned 
for a job that is scheduled. The annoying part is that it doesn't always 
happen, I would estimate about 1 in 4 times. I am specifically using the 
docker-plugin and the job is triggered by gerrit. Only one job appears to 
be affected and there are many other similar jobs that are similar (docker 
slave with a gerrit trigger)

I have added more debug logging to the docker-plugin to monitor how 
provisioning occurs. Sure enough provision() is never called, though 
canProvision is and returns true for the label expression.


I am not sure how I can inspect more into how Jenkins provisions cloud 
slaves and figure out why it never does. If another job comes along, it 
will provision for that job and leave this one.


Log snippet:

Jan 16, 2015 4:23:11 PM 
com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ToGerritRunListener
 
onTriggered   

INFO: Project [redacted-project] triggered by Gerrit: [PatchsetCreated: 
Change-Id for #1126: [redacted] PatchSet: 1]

Jan 16, 2015 4:23:11 PM 
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger 
schedule 

INFO: Project [redacted-project] Build Scheduled: true By event: 1126/1
 

Jan 16, 2015 4:23:17 PM com.nirima.jenkins.plugins.docker.DockerCloud 
canProvision  

INFO: Docker can provision 'centos6redacted'? true



Any thoughts appreciated,

Thomas

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/cd8d7e9e-ccf8-47e5-9c09-1bd06d95cef8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: BuildWrapper before SCM checkout?

2012-12-21 Thread Thomas Suckow

This is a good reference, thank you!

I looked at the BuildWrapper API, but somehow read right past 
preCheckout. Maybe I should clean my glasses ;)


Regards,
Thomas

On 12/20/2012 06:32 PM, alok kumar wrote:

Hi,
I guess you can try this 
_https://wiki.jenkins-ci.org/display/JENKINS/pre-scm-buildstep_ for 
your requirement below _

_
Let me know if that works for you.

Thanks,
Alok
On Fri, Dec 21, 2012 at 12:49 AM, thomas.suc...@pnnl.gov 
mailto:thomas.suc...@pnnl.gov thomas.suc...@pnnl.gov 
mailto:thomas.suc...@pnnl.gov wrote:


I am new to plugin development and am mostly looking to enhance an
existing one.

The SSH-Agent plugin is a BuildWrapper which unfortunately means
it runs after all the code is checked out from scm.

Is there another task type that would occur before scm checkout so
that the ssh-agent could be setup and used to checkout/clone the code?