patternjavascriptMinor
Bamboo equivalent to Jenkins color
Viewed 0 times
jenkinscolorbambooequivalent
Problem
I'm currently building out a radiator screen to bridge a few different areas of our CI\CD pipeline, pulling in metrics as well as build statuses. We're also migrating from Jenkins to Bamboo
In Jenkins, when you do a rest call to the job/api/json it, one of the response fields is a color, which acts as an initial health. Great for colour coding, especially when things go red!
However, as far as I can see, there isn't a bamboo equivalent. The two calls I'm using so far in bamboo are
Any clues or pointers as to where I can get the info from?
p.s. Writing this app in React \ Node
In Jenkins, when you do a rest call to the job/api/json it, one of the response fields is a color, which acts as an initial health. Great for colour coding, especially when things go red!
However, as far as I can see, there isn't a bamboo equivalent. The two calls I'm using so far in bamboo are
/result/{projectKey}-{buildKey}/{buildNumber : ([0-9]+)|(latest)}
/result/status/{projectKey}-{buildKey}-{buildNumber : ([0-9]+)}Any clues or pointers as to where I can get the info from?
p.s. Writing this app in React \ Node
Solution
Bamboo doesn't have a color status like Jenkins per say, but it does have a very similar build status indicated by a circle with a symbol within it. This status is available for both the entire build plan and for an individual build.
For your GET request, you will want to use the same api calls that you are using to get the buildstate value to get a SUCCESSFUL or FAILED state.
For your GET request, you will want to use the same api calls that you are using to get the buildstate value to get a SUCCESSFUL or FAILED state.
Context
StackExchange DevOps Q#4900, answer score: 2
Revisions (0)
No revisions yet.