user7264011
user7264011

Reputation:

build now option is not coming for job in jenkins

I am new user to jenkins. My jenkins version is 1.594. When we got the confirmation from jenkins team about onboarding the jenkin job, i did not find the build now option for the job.

Upvotes: 15

Views: 19814

Answers (7)

Isar Ahmad
Isar Ahmad

Reputation: 1

I have just disabled my job and than enabled it. I am able to take build on this job.

Upvotes: 0

Adam Winter
Adam Winter

Reputation: 1934

In my case, I had accidentally hit the red X on Behaviors (under Branch Sources with a multi-branch pipeline). The default behavior "Discover branches" should be there. You can put it back by choosing the Add option below.

Upvotes: 0

Brian Heise
Brian Heise

Reputation: 1

Another reason why "build now" might not appear is if your Jenkins couldn't find your Jenkinsfile. Scan your project and check the log.

If you find a line that says 'Jenkinsfile' not found, then that's your problem. Check the git repo and make sure the file is there and make sure there isn't a typo in the name.

Upvotes: 0

Martijn
Martijn

Reputation: 5611

I just bumped into the same problem, but none of the mentioned solutions worked. I had created a new job using the Copy from functionality. I was then sent to the job configuration page. I left this page without pressing Save or Apply, and the Build now link did not appear. I then went back to the configuration page, pressed Save, and the Build with parameters link became visible.

Upvotes: 44

Himanshu Kumar
Himanshu Kumar

Reputation: 1

You can choose "This build is parameterized" in configure and add a dummy Boolean parameter, check default value. Then you will get a build button

Upvotes: 0

lxj616
lxj616

Reputation: 61

Add one more possible answer:

Under some circumstances, you may automatically logout and stay at the same page(no button available), try login again fixed my problem...

Upvotes: 6

dildeepak
dildeepak

Reputation: 1389

Build now option does not come in either of the below reasons:

  1. Project might be disabled. Please enable it or ask the concerned team to enable it.
  2. You do not have enough permission to build the project. Please raise the concerned permission.

Upvotes: 7

Related Questions