如何设置詹金斯身份验证令牌? [英] How can I set the jenkins authentication token?

查看:62
本文介绍了如何设置詹金斯身份验证令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的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.

但是,我的服务器没有此类字段,并且我正在运行最新版本(1.546).我的看起来像这样:

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

.

如您所见,这看起来并不像文档所说的那样.

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

如何设置此令牌?

推荐答案

您缺少远程(例如,从脚本中)的 Trigger构建构建触发器:

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

这仅在启用安全性的情况下可见.为了从新下载的1.546 WAR中获得此选项,我将配置全局安全性任何人都可以做更改为至少已登录用户可以做任何事情.为了简化测试/提高测试速度,我在安全领域下选择了 Jenkins自己的用户数据库,并选择了允许用户注册:

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:

这篇关于如何设置詹金斯身份验证令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆