From 45f8d5b5cacf9fec0b96f97c722bc8100317f83e Mon Sep 17 00:00:00 2001 From: MegaMech Date: Sat, 18 Dec 2021 03:08:15 -0700 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b5a773221..4b82a2fcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,6 @@ -def progressBadge = addEmbeddableBadgeConfiguration(id: "totalProgress", subject: "Total Progress") +def totalProgBadge = addEmbeddableBadgeConfiguration(id: "totalProgress", subject: "Total Progress") +def gameCodeProgBadge = addEmbeddableBadgeConfiguration(id: "codeProgress", subject: "Game Code Progress") +def audioProgBadge = addEmbeddableBadgeConfiguration(id: "audioProgress", subject: "Audio Code Progress") pipeline { agent any @@ -26,10 +28,19 @@ pipeline { steps { script { progress = sh( - script: "python3 progress.py badge1", + script: "python3 progress.py totalBadge", returnStdout: true).trim() - - progressBadge.setStatus(progress) + totalProgBadge.setStatus(progress) + + progress = sh( + script: "python3 progress.py gameBadge", + returnStdout: true).trim() + gameCodeProgBadge.setStatus(progress) + + progress = sh( + script: "python3 progress.py audioBadge", + returnStdout: true).trim() + audioProgBadge.setStatus(progress) } } }