Bug 829788

Summary: Manually created job on OpenShift Jenkins won't build
Product: OKD Reporter: Pete Muir <pmuir>
Component: ContainersAssignee: Bill DeCoste <wdecoste>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: jhonce
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-10 21:23:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pete Muir 2012-06-07 14:46:30 UTC
Description of problem: 

On manually creating a new job on a jenkins node, this error occurs in the system log

Jun 7, 2012 9:56:50 AM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Provisioning new node for workload = 2 and label = null
Jun 7, 2012 9:56:50 AM hudson.triggers.SafeTimerTask run
SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@8719e failed
java.lang.UnsupportedOperationException: No Label
	at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:461)
	at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:227)
	at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
	at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:308)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
	at java.util.TimerThread.mainLoop(Timer.java:534)
	at java.util.TimerThread.run(Timer.java:484)

Version-Release number of selected component (if applicable):

Production on 7th June 2012

How reproducible:

Always

Steps to Reproduce:
1. Create a new freestyle project, manually
2. Try to build it


Additional info:

The issue is caused because no label expression is provided

Workaround:

Add a label expression as created by the jenkins-client - perhaps - still testing ;-)

Comment 1 Bill DeCoste 2012-07-12 01:03:33 UTC
You need a label - this becomes the name of the builder. This is as designed.