Jenkins Azure凭据插件的Groovy脚本 [英] Groovy Script for Jenkins Azure Credentials Plugin

查看:128
本文介绍了Jenkins Azure凭据插件的Groovy脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前将所有配置的Jenkins服务器部署在docker容器中.我正在研究使用Azure VM代理,并希望将服务主体凭据添加为初始配置的一部分.我在弄清楚什么时遇到了问题 我的常规脚本看起来应该像这样.

I currently deploy Jenkins servers with all their configuration inside docker containers. I'm looking into using Azure VM agents and would like to add the service principal credentials as part of the initial config. I'm having a problem figuring out what my groovy script should look like.

这是别人已经做过的事情吗?我已经可以修改groovy脚本以传递自己的配置值,并以编程方式创建Azure服务主体凭证吗?

Is this something that someone else has already done? Is there already a groovy script that I can modify to pass in my own config values and have it programmatically create the azure service principal credential?

谢谢您的帮助.

Charles

推荐答案

在Azure上使用Groovy脚本配置VM模板.看看是否有帮助.

I would recommend you to refer the following article for more information on Configure VM Template using Groovy Script on Azure. See if this helps.

--------------- -------------------------------------------------- ----------------------------

如果此答案有帮助,请单击标记为答案"或投票.要提供有关您的论坛经历的其他反馈,请单击

If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here.


这篇关于Jenkins Azure凭据插件的Groovy脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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