Skip to content

Commit

Permalink
Fix build status in Grid view (#933)
Browse files Browse the repository at this point in the history
fixes: #932

Signed-off-by: Lan Xia <Lan_Xia@ca.ibm.com>
  • Loading branch information
llxia authored Nov 7, 2024
1 parent ab779ad commit 63ff346
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function ResultSummary() {
buildsRes,
]);
const parentBuildInfo = buildInfo[0] || {};
let childBuildsResult = 'UNSTABLE';
let childBuildsResult = 'UNDEFINED';
let javaVersion = null;
const buildMap = {};
let jdkVersionOpts = [];
Expand Down
10 changes: 6 additions & 4 deletions test-result-summary-client/src/utils/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ export const getInfoFromBuildName = (buildName) => {

export const setBuildsStatus = (build, currStatus) => {
const buildResultPriority = {
ABORT: 3,
FAILIURE: 2,
UNSTABLE: 1,
SUCCESS: 0,
PROGRESSING: 5,
ABORTED: 4,
FAILURE: 3,
UNSTABLE: 2,
SUCCESS: 1,
UNDEFINED: 0,
};

if (build.status != 'Done' || currStatus === 'PROGRESSING') {
Expand Down

0 comments on commit 63ff346

Please sign in to comment.