詹金斯改变标签的要求 [英] jenkins change label as requested

查看:135
本文介绍了詹金斯改变标签的要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用詹金斯自动化我们的测试基础设施。要求是给用户使用詹金斯节点的私人测试或调试使用私有詹金斯作业,然后放回打上标签节点池的能力;所以被标记在特定的标签运行的其他工作可以无干扰运行。

We use jenkins for automation for our test infrastructure. The requirement is to give users the ability to use a jenkins node for their private test or debug using private jenkins jobs and then put back in the pool of nodes marked with labels; so that other jobs that were marked to run on particular labels can be run without interference.

我们可以通过让用户改变标签做到这一点,但剪掉的锻炼,因为用户(接近50)作出自己的标签名称,它需要时间,管理员重新分配节点(甚至与工艺)和precious测试岁月不饶人的影响。

We can achieve this by letting users alter label, but that didnt workout as users (nearly 50) are making their own label names and it takes time for admin to reassign the nodes (even with process) and precious test time is getting affected.

我们正在寻找一些解决方案,如提供的按钮一样(因为詹金斯无法看到该节点再不能使用此选项,因此用户无法运行的节点上詹金斯的工作),借此节点脱机,但可能与能力的能力运行脚本。

we are looking for some solution such as ability to provide buttons like take this node offline (cant use this option since jenkins cannot see the node anymore and so users cannot run jenkins job on the node) but may be with the ability to run scripts.

我已经做了这方面的一些研究,但有一些要求妥协,所以我决定从社区寻求帮助......建议?

I have done some research on this but have to compromise on some requirements, so i decided to seek help from the community... SUGGESTIONS?

推荐答案

你看看这个问题:

<一个href=\"http://stackoverflow.com/questions/20577994/how-to-take-jenkins-master-node-offline-using-cli\">How使用CLI采取詹金斯主节点脱机?

在第一的问题,也有一些CLI到一个节点离线进行。

In the 1st question, there are some CLI to make a node offline.

也许你可以创建主服务器上的专用作业带有一个参数(节点名称)。这项工作将调用詹金斯CLI停止您的节点。

Maybe you can create a dedicated job on the master with one parameter (the node name). This job will call the Jenkins CLI to stop your node.

这篇关于詹金斯改变标签的要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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