@@ -28,6 +28,17 @@ const jenkinsColourToWebDashColour = new Map<string, string>([
2828 ] , // build aborted but now running
2929] ) ;
3030
31+ const jenkinsColourToStatus = new Map < string , string > ( [
32+ [ "red" , "failed" ] , // build broken
33+ [ "blue" , "succeeded" ] , // build success
34+ [ "aborted" , "aborted" ] , // build aborted
35+ [ "yellow" , "unstable" ] ,
36+ [ "yellow_anime" , "running (unstable)" ] , // build running but was broken
37+ [ "red_anime" , "running (failed)" ] , // build running but was broken
38+ [ "blue_anime" , "running (succeeded)" ] , // build running but was successful
39+ [ "aborted_anime" , "running (aborted)" ] , // build aborted but now running
40+ ] ) ;
41+
3142export default function JenkinsJobs ( ) {
3243 const [ data , setData ] = useState < Array < IfcWallDisplayJob > > ( [ ] ) ;
3344
@@ -79,7 +90,7 @@ export default function JenkinsJobs() {
7990 }
8091 target = { "_blank" }
8192 >
82- { job [ "name" ] }
93+ { job [ "name" ] } { `( ${ jenkinsColourToStatus . get ( job [ "color" ] ) } )` }
8394 </ a >
8495 ) ) }
8596 </ div >
0 commit comments