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 23
23
import com .thoughtworks .go .plugin .api .response .DefaultGoPluginApiResponse ;
24
24
import com .thoughtworks .go .plugin .api .response .GoPluginApiResponse ;
25
25
import org .apache .commons .lang3 .StringUtils ;
26
- import org .apache .commons .io .IOUtils ;
27
26
28
27
import java .io .IOException ;
29
28
import java .util .*;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public Boolean execute(Run run) {
19
19
return run .hasTagOfValue (key , value );
20
20
}
21
21
});
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 );
23
23
24
24
return promotedRuns .size () > 0 ? promotedRuns .get (0 ) : null ;
25
25
}
You can’t perform that action at this time.
0 commit comments