Skip to content

Commit

Permalink
CI: notify GH check status in cloud stages (#27734) (#27747)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Sep 13, 2021
1 parent 7d56635 commit 0b3b278
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,16 @@ def generateStages(Map args = [:]) {
}

def cloud(Map args = [:]) {
withNode(labels: args.label, forceWorkspace: true){
startCloudTestEnv(name: args.directory, dirs: args.dirs)
}
withCloudTestEnv() {
try {
target(context: args.context, command: args.command, directory: args.directory, label: args.label, withModule: args.withModule, isMage: true, id: args.id)
} finally {
terraformCleanup(name: args.directory, dir: args.directory)
withGithubNotify(context: args.context) {
withNode(labels: args.label, forceWorkspace: true){
startCloudTestEnv(name: args.directory, dirs: args.dirs)
}
withCloudTestEnv() {
try {
target(context: args.context, command: args.command, directory: args.directory, label: args.label, withModule: args.withModule, isMage: true, id: args.id)
} finally {
terraformCleanup(name: args.directory, dir: args.directory)
}
}
}
}
Expand Down

0 comments on commit 0b3b278

Please sign in to comment.