वरुण
वरुण

Reputation: 1665

Maven build is not getting scheduled on Jenkins

I am using Jenkins version 1.554.2. I have various maven project jobs. I have recently created a new maven job on Jenkins. It ran once on Jenkins. Now when I click on Build Now, It only shows tool tip Build Scheduled but does not schedule the build. My other maven project are running perfectly.

Maven version:3.2.1 Java version:1.7.0_55

Job type : maven2/3 project

Installed plugins:

 Install   
Build Blocker Plugin
Cobertura Plugin
Coverity plugin
Cppcheck Plug-in
Credentials Plugin
CVS Plug-in
Dashboard View
dbCharts
Duplicate Code Scanner Plug-in
Email Extension Plugin
Environment File Plugin
Environment Injector Plugin
External Monitor Job Type Plugin
Files Found Trigger
FindBugs Plug-in    
Green Balls
HTML Publisher plugin
Hudson Build-Publisher plugin
Hudson Personal View
Javadoc Plugin
Join plugin
LDAP Email Plugin
LDAP Plugin
Mailer Plugin
MapDB API Plugin
Maven Dependency Update Trigger
Maven Integration plugin
Nested View Plugin
OWASP Markup Formatter Plugin
Plot plugin
PMD Plug-in
promoted builds plugin
Radiator View Plugin
Sectioned View Plugin
Security Realm by custom script
Sidebar Link
SLOCCount Plug-in
SSH Credentials Plugin
SSH Slaves plugin
Static Analysis Collector Plug-in
Static Analysis Utilities
Subversion Plug-in
Task Scanner Plug-in
TextFinder plugin
Translation Assistance plugin
Valgrind Plug-in
ViewVC Plugin
Warnings Plug-in
Windows Slaves Plugin

Upvotes: 1

Views: 301

Answers (1)

Paul Hicks
Paul Hicks

Reputation: 13999

When this has happened to me it was because all my nodes were configured to allow only jobs that were restricted to a label that was associated with that node. When I created new jobs and forgot to restrict them to run only on nodes with a label, then they would never leave the build queue.

Use the job's "Restrict where this job can be run" parameter to configure which nodes (or node labels) the job can run on. Use the node's "Leave this machine for tied jobs only" usage parameter to configure which jobs can run on this node.

Upvotes: 0

Related Questions