File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
material/src/main/java/com/indix/mlflow_gocd Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 2323import com .thoughtworks .go .plugin .api .response .DefaultGoPluginApiResponse ;
2424import com .thoughtworks .go .plugin .api .response .GoPluginApiResponse ;
2525import org .apache .commons .lang3 .StringUtils ;
26- import org .apache .commons .io .IOUtils ;
2726
2827import java .io .IOException ;
2928import java .util .*;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public Boolean execute(Run run) {
1919 return run .hasTagOfValue (key , value );
2020 }
2121 });
22- promotedRuns .sort ((o1 , o2 ) -> Long .parseLong (o1 .info .end_time ) > Long .parseLong (o2 .info .end_time ) ? 1 : 0 );
22+ promotedRuns .sort ((o1 , o2 ) -> Long .parseLong (o1 .info .end_time ) <= Long .parseLong (o2 .info .end_time ) ? 1 : - 1 );
2323
2424 return promotedRuns .size () > 0 ? promotedRuns .get (0 ) : null ;
2525 }
You can’t perform that action at this time.
0 commit comments