Unverified Commit 006c0b6a authored by G33tha's avatar G33tha Committed by GitHub
Browse files

Update auto_build_deploy_player.groovy

No related merge requests found
Showing with 11 additions and 11 deletions
+11 -11
......@@ -38,10 +38,10 @@ def call(){
// slack_notify("SUCCESS", tag_name, customUploadStatus.fullProjectName, customUploadStatus.number, customUploadStatus.absoluteUrl)
// email_notify()
cdnStatus = build job: "Deploy/$envDir/$module/PlayerCDN", parameters: [string(name: 'private_branch', value: "$automated_private_repo_branch"), string(name: 'branch_or_tag', value: "$automated_public_repo_branch"), string(name: 'cdn_enable', value: "true")], propagate: false
// cdnStatus = build job: "Deploy/$envDir/$module/PlayerCDN", parameters: [string(name: 'private_branch', value: "$automated_private_repo_branch"), string(name: 'branch_or_tag', value: "$automated_public_repo_branch"), string(name: 'cdn_enable', value: "true")], propagate: false
if (cdnStatus.currentResult == "SUCCESS") {
println ANSI_BOLD + ANSI_GREEN + "Deploy/$envDir/$module/PlayerCDN succeeded. Triggering deployment.." + ANSI_NORMAL
// if (cdnStatus.currentResult == "SUCCESS") {
// println ANSI_BOLD + ANSI_GREEN + "Deploy/$envDir/$module/PlayerCDN succeeded. Triggering deployment.." + ANSI_NORMAL
// slack_notify("SUCCESS", tag_name, cdnStatus.fullProjectName, cdnStatus.number, cdnStatus.absoluteUrl)
// email_notify()
......@@ -69,14 +69,14 @@ def call(){
currentBuild.result = "UNSTABLE"
}
}
else {
println ANSI_BOLD + ANSI_RED + "Deploy/$envDir/$module/PlayerCDN failed. Notifying via email and slack.." + ANSI_NORMAL
slack_notify("FAILURE", tag_name, cdnStatus.fullProjectName, cdnStatus.number, cdnStatus.absoluteUrl)
email_notify()
currentBuild.result = "UNSTABLE"
}
// }
// else {
// println ANSI_BOLD + ANSI_RED + "Deploy/$envDir/$module/PlayerCDN failed. Notifying via email and slack.." + ANSI_NORMAL
// slack_notify("FAILURE", tag_name, cdnStatus.fullProjectName, cdnStatus.number, cdnStatus.absoluteUrl)
// email_notify()
// currentBuild.result = "UNSTABLE"
// }
}
else {
println ANSI_BOLD + ANSI_RED + "ArtifactUplaod/$envDir/$module/PlayerCustom failed. Notifying via email and slack.." + ANSI_NORMAL
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment