使用Azure Batch作为Jenkins的节点 [英] use Azure Batch as Jenkins' node
问题描述
我有一个Jenkins服务器,该服务器与其他计算机作为节点运行良好.我也有一个Azure Batch帐户和一个工作池.有没有办法将两者连接在一起,以便将Jenkins任务发送到Azure批处理池?
I have a Jenkins server that is running well with other machines as node. I have also a Azure Batch account and a working pool. Is there a way to connect both so that Jenkins tasks are sent to the Azure Batch pool?
到目前为止,我只找到了这个 https://github.com/Azure/batch-jenkins 是用于并行执行测试的构建后插件,这不是我想要的.我只需要向Azure发送命令行.
So far I have only found this https://github.com/Azure/batch-jenkins that is a post-build plugin to execute tests in parallel, that's not what I am looking for. I just need to send a command line to Azure.
谢谢
推荐答案
由于您的要求是向Azure发送命令行,所以我建议您有一个简单的Jenkins作业(自由式作业或管道作业)即可完成要求.
As your requirement is to send a command line to Azure so I would suggest you to have a simple Jenkins job (either freestyle job or pipeline job) which would accomplish the requirement.
先决条件: