Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change order of jobs in Jenkins

Tags:

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?

Thanks

like image 403
More Than Five Avatar asked Jul 28 '13 14:07

More Than Five


People also ask

How do I move jobs in Jenkins?

Goto manage Jenkins > manage plugins > search for cloudbees folder plugin > install without restart. this will add an option called move that will move your jobs from one folder to another.

How can you Organise use number of jobs in Jenkins?

To set this: 1) Scroll down to the 'Build triggers' tab on the configure page. 2) Select the 'Build after other projects are built' checkbox. This will bring up a text box where you can list any number of projects.

How do I move Jenkins to a new view?

1) Click on the view in which you want to add the newly created Job as shown in pic. 2) Click on Edit View on left side and then select the appropriate job under Job Filter using the check box. 3) Once you selected the required Job click on save button. This job will be now shown under the view.


1 Answers

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+Plugin

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 - Job 2
2 - Job 3
3 - Job 1

like image 156
dseibert Avatar answered Oct 03 '22 19:10

dseibert