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
7da25a46
Unverified
Commit
7da25a46
authored
5 years ago
by
Keshav Prasad
Committed by
GitHub
5 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: Removing upstream checks
parent
2b470b78
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/docker_params.groovy
+2
-17
vars/docker_params.groovy
with
2 additions
and
17 deletions
+2
-17
vars/docker_params.groovy
+
2
−
17
View file @
7da25a46
...
...
@@ -12,15 +12,6 @@ def call(){
// Check if the job was triggered by an upstream project
// If yes, get the name of the upstream project else job was started manually
stage
(
'check upstream'
)
{
values
=
[:]
def
upstream
=
currentBuild
.
rawBuild
.
getCause
(
hudson
.
model
.
Cause
$UpstreamCause
)
triggerCause
=
upstream
?.
shortDescription
if
(
triggerCause
!=
null
)
triggerCause
=
triggerCause
.
split
()[
4
].
replaceAll
(
'"'
,
''
)
values
.
put
(
'absolute_job_path'
,
triggerCause
)
}
stage
(
'parameter checks'
){
ansiColor
(
'xterm'
)
{
if
(!
env
.
hub_org
){
...
...
@@ -41,14 +32,8 @@ def call(){
error
'Please resolve errors and rerun..'
}
if
(
values
.
absolute_job_path
!=
null
){
copyArtifacts
projectName:
values
.
absolute_job_path
,
flatten:
true
}
else
{
copyArtifacts
projectName:
params
.
absolute_job_path
,
flatten:
true
values
.
put
(
'absolute_job_path'
,
params
.
absolute_job_path
)
}
copyArtifacts
projectName:
params
.
absolute_job_path
,
flatten:
true
values
.
put
(
'absolute_job_path'
,
params
.
absolute_job_path
)
image_name
=
sh
(
returnStdout:
true
,
script:
'jq -r .image_name metadata.json'
).
trim
()
if
(
params
.
image_tag
==
""
)
{
...
...
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