Sort stages by priority

master
Harald Wolff 2020-12-09 17:15:58 +01:00
parent 65d64c2484
commit 353397e523
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using ln.build.commands;
using ln.build.semver;
using ln.json;
@ -78,6 +79,8 @@ namespace ln.build.pipeline
public void Run()
{
stages.Sort((a,b)=>a.Priority-b.Priority);
foreach (Stage stage in stages)
{
CommandEnvironment.Logger.Log(LogLevel.INFO,"-------------------------------------------------------------------------------------");