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
2b470b78
Unverified
Commit
2b470b78
authored
6 years ago
by
Keshav Prasad
Committed by
GitHub
6 years ago
Browse files
Options
Download
Patches
Plain Diff
feat: DO-701 Branch override message display
parent
cf70f9ce
shared-lib_627aacd
shared-lib
release-3.4.0-shared-lib
release-2.7.0-shared-lib
release-2.6.0-shared-lib
release-2.5.0-shared-lib
release-2.4.0-shared-lib
release-2.0.0-shared-lib
release-1.15.0-shared-lib
release-1.15-shared-lib-interim
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vars/ansible_playbook_run.groovy
+7
-1
vars/ansible_playbook_run.groovy
with
7 additions
and
1 deletion
+7
-1
vars/ansible_playbook_run.groovy
+
7
−
1
View file @
2b470b78
...
...
@@ -20,8 +20,14 @@ def call(Map pipelineParams) {
error
'Please resolve errors and rerun..'
}
def
checkDir
=
new
File
(
'../private'
)
if
(
params
.
private_branch
!=
null
&&
params
.
private_branch
!=
""
)
if
(
params
.
private_branch
!=
null
&&
params
.
private_branch
!=
""
){
env
.
private_repo_branch
=
params
.
private_branch
println
(
ANSI_BOLD
+
ANSI_YELLOW
+
'Info: Branch override is enabled'
+
ANSI_NORMAL
)
}
else
println
(
ANSI_BOLD
+
ANSI_YELLOW
+
'Info: Branch override is disabled'
+
ANSI_NORMAL
)
if
(!
checkDir
.
exists
())
checkout
scm:
[
$class
:
'GitSCM'
,
branches:
[[
name:
private_repo_branch
]],
extensions:
[[
$class
:
'GitLFSPull'
],
[
$class
:
'CloneOption'
,
depth:
1
,
noTags:
true
,
reference:
''
,
shallow:
true
]],
userRemoteConfigs:
[[
credentialsId:
private_repo_credentials
,
url:
private_repo_url
]]]
else
...
...
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