Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Trigger builds remotely" does not appear after installing Build Token Root Plugin in Jenkins

I have installed Build Token Root Plugin (Version 1.2) in Jenkins. But the "Trigger builds remotely" options doesn't appear.

The end goal is to trigger Jenkins from SlackBot. I followed this tutorial.

I must be doing something very silly. Please help.

Stackoverflow articles referred with no vain

Hudson - missing Trigger builds remotely option

Triggering builds remotely in Jenkins

like image 840
Munai Das Udasin Avatar asked Aug 11 '15 07:08

Munai Das Udasin


People also ask

How do I get Trigger builds remotely in Jenkins?

Create a remote Jenkins build trigger in three stepsCreate a Jenkins build job and enable the Trigger builds remotely checkbox. Provide an authentication token; This can be any text string of your choice. Invoke the Jenkins build URL to remotely trigger the build job.

Which command is used to trigger build remotely in Jenkins?

Use the Build Token Root Plugin. This plugin allows you to use the Trigger builds remotely feature without requiring the username and password. All you need is the token you generated before.

How do I add a build trigger in Jenkins?

Follow the steps as mentioned below to trigger a Jenkins job automatically based on GitHub's webhook configurations: Step 1: Go to the Configuration page of the respective job and under the build trigger section, check the "GitHub hook trigger for GITScm polling" checkbox and click on the Save button.

Where do we configure triggers in Jenkins?

You can see the build triggers option in job's -> Configure setting.


2 Answers

You need to read it: Quick and Simple Security

  • Enable the security setting, go to http://yourhost/jenkins/configureSecurity and select enable security, then choose Delegate to servlet container for security realm and Legacy mode for authorization strategy. Or, you may click on the Manage Jenkins link on the left side of the main Jenkins dashboard page to get to the configuration page, then click Configure Global Security.

  • To log into Jenkins go to http://yourhost/jenkins/loginEntry, or click on the login link located on the top right hand corner of any Jenkins Dashboard page.

  • This will bring you to the Login page. Enter the user name and password, and click on the Submit button. This will take you back to the main Jenkins dashboard. You will now see the Manage Jenkins link on the left side of the page.

  • To logout simply click the logout link located on the top right hand corner of any Jenkins dashboard page.

Anonymous read access required

The preceding instructions require that anonymous users have read access to Jenkins. If you disable overall read access for anonymous users, the Build Token Root Plugin allows use of tokens.

like image 104
Tuan Avatar answered Sep 23 '22 15:09

Tuan


Be carreful while applying the accepted answer. It locked me out of Jenkins.
Here is an alternative:
* Security Realm: Jenkins' own user database (uncheck Allow users to sign up)
* Authorization: Logged-in users can do anything

The “Trigger builds remotely” then appears.

like image 35
rdupz Avatar answered Sep 24 '22 15:09

rdupz