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
38dfb6e7
Unverified
Commit
38dfb6e7
authored
4 years ago
by
G33tha
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1497 from project-sunbird/kube2-changes
updated hsared lib to deploy jobs form kubernetes2 folder
parents
a0a80a89
4499e32d
release-3.4.0-shared-lib
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vars/auto_build_deploy.groovy
+5
-0
vars/auto_build_deploy.groovy
vars/auto_build_deploy_player.groovy
+3
-1
vars/auto_build_deploy_player.groovy
with
8 additions
and
1 deletion
+8
-1
vars/auto_build_deploy.groovy
+
5
−
0
View file @
38dfb6e7
...
...
@@ -24,6 +24,7 @@ def call(){
if
(
module
==
"Core"
)
{
module
=
"Kubernetes"
module2
=
"Kubernetes2"
}
if
(
jobName
==
"KnowledgePlatform"
)
{
...
...
@@ -35,6 +36,10 @@ def call(){
jobName
=
"Yarn"
deployStatus
=
build
job:
"Deploy/$envDir/$module/$jobName"
,
parameters:
[
string
(
name:
'private_branch'
,
value:
"$automated_private_repo_branch"
),
string
(
name:
'branch_or_tag'
,
value:
"$automated_public_repo_branch"
),
string
(
name:
'job_names_to_deploy'
,
value:
"DeDuplication_1,DeNormalization_1,DruidEventsValidator_1,EventsRouter_1,TelemetryExtractor_1,TelemetryLocationUpdater_1,TelemetryRouter_1,TelemetryValidator_1,DeviceProfileUpdater_1,AssessmentAggregator_1,DerivedDeDuplication_1,ContentCacheUpdater_1,UserCacheUpdater_1,ShareEventsFlattener_1"
)],
propagate:
false
}
if
(
module
==
"Kubernetes"
)
{
deployStatus
=
build
job:
"Deploy/$envDir/$module/$jobName"
,
parameters:
[
string
(
name:
'private_branch'
,
value:
"$automated_private_repo_branch"
),
string
(
name:
'branch_or_tag'
,
value:
"$automated_public_repo_branch"
)],
propagate:
false
deployStatus
=
build
job:
"Deploy/$envDir/$module2/$jobName"
,
parameters:
[
string
(
name:
'private_branch'
,
value:
"$automated_private_repo_branch"
),
string
(
name:
'branch_or_tag'
,
value:
"$automated_public_repo_branch"
)],
propagate:
false
}
else
{
deployStatus
=
build
job:
"Deploy/$envDir/$module/$jobName"
,
parameters:
[
string
(
name:
'private_branch'
,
value:
"$automated_private_repo_branch"
),
string
(
name:
'branch_or_tag'
,
value:
"$automated_public_repo_branch"
)],
propagate:
false
}
...
...
This diff is collapsed.
Click to expand it.
vars/auto_build_deploy_player.groovy
+
3
−
1
View file @
38dfb6e7
...
...
@@ -48,10 +48,12 @@ def call(){
if
(
module
==
"Core"
)
{
module
=
"Kubernetes"
module2
=
"Kubernetes2"
}
deployStatus
=
build
job:
"Deploy/$envDir/$module/$jobName"
,
parameters:
[
string
(
name:
'private_branch'
,
value:
"$automated_private_repo_branch"
),
string
(
name:
'branch_or_tag'
,
value:
"$automated_public_repo_branch"
)],
propagate:
false
deployStatus2
=
build
job:
"Deploy/$envDir/$module2/$jobName"
,
parameters:
[
string
(
name:
'private_branch'
,
value:
"$automated_private_repo_branch"
),
string
(
name:
'branch_or_tag'
,
value:
"$automated_public_repo_branch"
)],
propagate:
false
if
(
deployStatus
.
currentResult
==
"SUCCESS"
)
{
println
ANSI_BOLD
+
ANSI_GREEN
+
"Deploy/$envDir/$module/$jobName succeeded. 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