Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
006c0b6a
Unverified
Commit
006c0b6a
authored
4 years ago
by
G33tha
Committed by
GitHub
4 years ago
Browse files
Options
Download
Patches
Plain Diff
Update auto_build_deploy_player.groovy
parent
38dfb6e7
release-3.4.0-shared-lib
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vars/auto_build_deploy_player.groovy
+11
-11
vars/auto_build_deploy_player.groovy
with
11 additions
and
11 deletions
+11
-11
vars/auto_build_deploy_player.groovy
+
11
−
11
View file @
006c0b6a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets