Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Build Now" link does nothing

I'm getting my feet wet with Jenkins and I've done something bad. Originally, I had a Bitbucket hook that triggered builds. When I had that in place, I could run builds on demand using the Build now link in the sidebar or in the view table. I decided to run job builds nightly instead and now I can't run them on demand. Clicking either Build now link just flashes a tooltip that says "Build scheduled".

I'm not sure what I did, but there are a couple of possibilities:

  • I removed the Bitbucket hook and selected the Build periodically option with a value of H H(2-10) * * *.
  • I enabled Bitbucket OAuth security and set privileges to Logged-in users can do anything.

I've tried reversing both of these, but that hasn't worked. I've also bounced the jenkins service (many, many times). I may have changed something else relevant, but I don't know what that might've been.

Has anyone else seen something like this?

like image 797
Rob Wilkerson Avatar asked Jun 12 '14 17:06

Rob Wilkerson


People also ask

Why build is getting failed in Jenkins?

To troubleshoot Jenkins pipeline failure issues On the Console Output page, check the logs to find the reason for the failure. If required, update the parameters in the deployment input configuration file. Learn about deployment input configuration file parameters at Setting up the deployment input configuration file.

How do I fix Jenkins build failure?

Go to the project page and Click on the failed build number from the 'Build History'. Look for the details: File at which the ERROR has occured, ERROR details. Then Click Workspace on the left and go to the specified file location.

What does Jenkins build now do?

It allows you to configure build triggers and offers project-based security for your Jenkins project. It also offers plugins to help you build steps and post-build actions. The types of actions you can perform in a Jenkins build step or post-build action are quite limited.

How does Jenkins know when a build fails?

This plugin analyzes the causes of failed builds and presents the causes on the build page. It does this by using a knowledge base of build failure causes that is built up from scratch. Saving statistics about failure causes is also possible.


2 Answers

I had the same symptoms, a different problem, and this tip in the comments was helpful:

...find something suspicious in Jenkins->Manage Jenkins->System Log->All Jenkins Logs

For me it turned out the jobs in the Jobs folder had the wrong owner.

like image 98
Chris Avatar answered Oct 11 '22 14:10

Chris


For me, it was that the EC2 instance I was running Jenkins on had run out of memory.

like image 42
Joel M. Avatar answered Oct 11 '22 15:10

Joel M.