我如何在詹金斯获得工作范围证书? [英] How Can I have job scope Credentials in Jenkins?

查看:303
本文介绍了我如何在詹金斯获得工作范围证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这个问题及其解决方案存在于某处,但我找不到它,请首先对不起.

First sorry if this question and its solution exist somewhere but I cannot find it.

我希望能够在工作内部创建凭据,并且只能在该工作内部使用,这是一种工作范围凭据.

I would like to be able to create credentials inside a job and only usable inside this job, a kind of job scope credential.

目前,凭据插件仅建议全局和系统范围,因此凭据可用于所有作业.

For the moment Credential plugins only propose Global and System scope so the credentials are avaialble to all jobs.

凭据绑定插件似乎也不能解决我的问题,但是公平地说,我不确定要了解其所有功能,因此我不希望使用文本或文件提供程序.

The Credentials Binding Plugin does not seem to solve my problem either but to be fair, I am not sure to understand all its features and I would prefer not use text or file provider.

我用 詹金斯1.589 凭据插件1.18

I use jenkins 1.589 Credential Plugin 1.18

致谢

推荐答案

使用文件夹和凭据绑定"插件,您可以在文件夹级别上定义仅适用于该文件夹内作业的凭据.创建文件夹后,文件夹级别的存储将变为可用.

Using the Folders and Credentials Binding plugin, you can define credentials on the folder level that are only available for the job(s) inside this folder. The folder level store becomes available once you made the folder.

来源: https ://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs

这篇关于我如何在詹金斯获得工作范围证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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