更改詹金斯的工作顺序 [英] Change order of jobs in Jenkins

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

问题描述

在Jenkins仪表板中,我有四个工作.

In my Jenkins dashboard I have four jobs.

job a
job b
job c 
job d

是否可以更改这些作业的显示顺序?

Is it possible to change the order in which these jobs are displayed?

谢谢

推荐答案

Jenkins默认情况下按升序对作业进行排序. 1,2,3,A,b,c等.但是,您也许可以使用此仪表板插件来提供更接近您所要查找的内容

Jenkins, by default sorts jobs in ascending order. 1,2,3,A,b,c, etc. However, you may be able to use this Dashboard Plugin to provide something closer to what you're looking for

https://wiki.jenkins-ci.org/display/JENKINS/Dashboard+View

此外,还有一个插件可以根据优先级对队列中的作业进行排序.

In addition, there is a plugin that sorts jobs in the queue based on priority.

https://wiki.jenkins-ci.org/display/JENKINS/Priority+Sorter +插件

我遇到了针对Jenkins的JIRA问题,该问题建议按降序排序,但是您可能希望将顺序移动一下作为问题添加到JIRA或考虑为此目的创建插件.

I came across a JIRA issue for Jenkins which suggested sorting in descending order, but just moving around the order may be something you want to add to JIRA as an issue or look into creating a plugin for this purpose.

https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial

一个简单的事情是在作业名称的开头添加一个数字,以指示作业应在列表中的位置.

One simple thing to do would be to add a number to the beginning of the jobs' names to indicate where they should be in the list.

1-工作2
2-工作3
3-工作1

1 - Job 2
2 - Job 3
3 - Job 1

这篇关于更改詹金斯的工作顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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