Update Jenkinsfile

This commit is contained in:
MegaMech 2021-12-18 03:08:15 -07:00 committed by GitHub
parent f64253c39f
commit 45f8d5b5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 4 deletions

19
Jenkinsfile vendored
View File

@ -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)
}
}
}