Skip to content

Commit b2e2b0b

Browse files
committed
Do not sort list. Print em in the order that the projects yaml have put em
1 parent 931118d commit b2e2b0b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/commander.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,7 @@ export class Commander {
101101
}
102102

103103
static runList(parser: Parser) {
104-
const stageNames = Array.from(parser.getStages()).map((s) => s.name);
105-
const jobs = Array.from(parser.getJobs()).sort((a, b) => {
106-
const whenPrio = ["never"];
107-
if (a.stage !== b.stage) {
108-
return stageNames.indexOf(a.stage) - stageNames.indexOf(b.stage);
109-
}
110-
return whenPrio.indexOf(b.when) - whenPrio.indexOf(a.when);
111-
});
104+
const jobs = Array.from(parser.getJobs());
112105

113106
let whenPadEnd = 0;
114107
parser.getJobs().forEach(j => whenPadEnd = Math.max(j.when.length, whenPadEnd));

0 commit comments

Comments
 (0)