Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the jenkins authentication token?

Tags:

jenkins

On my Jenkins build server, I want to set an Authentication Token so that only users that know the token can fire off builds. (As described here.)

This doc page says that it should be configurable under my job's "Build Triggers" configuration.

However, my server has no such fields, and I'm running the latest version (1.546). Mine looks like this:

this.

As you can see, this doesn't really look like the docs say it should.

How can I set this token?

like image 674
Grant Birchmeier Avatar asked Jan 09 '14 22:01

Grant Birchmeier


1 Answers

You're missing the Trigger builds remotely (e.g., from scripts) Build Trigger:

Trigger builds remotely

This is only visible with Security enabled. To get this option from a freshly downloaded 1.546 WAR, I changed Configure Global Security from Anyone can do anything to at least Logged-in users can do anything. For ease/speed of testing, under Security Realm I selected Jenkins’ own user database and Allow users to sign up:

enter image description here

like image 77
Zach Young Avatar answered Oct 10 '22 18:10

Zach Young