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-SunbirdEd-portal-old
Commits
17f5b902
Commit
17f5b902
authored
4 years ago
by
keshavprasadms
Browse files
Options
Download
Patches
Plain Diff
fix: updating JFs as per new jenkins jobs parameter
parent
12b16153
master
Dark_theme
SB-25589
SB-28090
aws_fileRead
dependabot/npm_and_yarn/src/app/client/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/app/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/app/express-4.17.3
dependabot/npm_and_yarn/src/app/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/OpenRAP/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/desktop/OpenRAP/express-4.17.3
dependabot/npm_and_yarn/src/desktop/OpenRAP/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/OpenRAP/qs-6.5.3
dependabot/npm_and_yarn/src/desktop/decode-uri-component-0.2.2
dependabot/npm_and_yarn/src/desktop/express-4.17.3
dependabot/npm_and_yarn/src/desktop/jsonwebtoken-9.0.0
dependabot/npm_and_yarn/src/desktop/qs-6.10.3
filters_5.1.1
gcp
gcp_test
keshavprasadms-patch-1
release-3.7.0
release-3.7.1
release-3.7.2
release-3.8.0
release-3.8.1
release-3.8.2
release-3.8.3
release-3.9.0
release-3.9.1
release-3.9.2
release-3.9.3
release-4.0.0
release-4.0.1
release-4.0.2
release-4.1
release-4.1.0
release-4.1.1
release-4.10.0
release-4.10.0.1
release-4.10.1
release-4.10.2
release-4.10.2.1
release-4.10.2.2
release-4.10.3
release-4.2.0
release-4.2.1
release-4.3.0
release-4.3.1
release-4.4.0
release-4.4.1
release-4.5.0
release-4.5.1
release-4.5.2
release-4.6.0
release-4.7.0
release-4.7.1
release-4.8.0
release-4.8.5
release-4.9.0
release-4.9.1
release-5.0.0
release-5.0.0.1
release-5.0.0.2
release-5.0.0.3
release-5.0.1
release-5.0.2
release-5.1.0
release-5.1.1
revert-8284-release-5.0.0
sharathkashyap-patch-1
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+4
-18
Jenkinsfile
with
4 additions
and
18 deletions
+4
-18
Jenkinsfile
+
4
−
18
View file @
17f5b902
...
...
@@ -16,24 +16,10 @@ node('build-slave') {
println
(
ANSI_BOLD
+
ANSI_GREEN
+
"Found environment variable named hub_org with value as: "
+
hub_org
+
ANSI_NORMAL
)
}
// cleanWs()
if
(
params
.
github_release_tag
==
""
)
{
checkout
scm
commit_hash
=
sh
(
script:
'git rev-parse --short HEAD'
,
returnStdout:
true
).
trim
()
branch_name
=
sh
(
script:
'git name-rev --name-only HEAD | rev | cut -d "/" -f1| rev'
,
returnStdout:
true
).
trim
()
build_tag
=
branch_name
+
"_"
+
commit_hash
+
"_"
+
env
.
BUILD_NUMBER
// Creating artifact version
artifact_version
=
branch_name
+
"_"
+
commit_hash
println
(
ANSI_BOLD
+
ANSI_YELLOW
+
"github_release_tag not specified, using the latest commit hash: "
+
commit_hash
+
ANSI_NORMAL
)
}
else
{
def
scmVars
=
checkout
scm
checkout
scm:
[
$class
:
'GitSCM'
,
branches:
[[
name:
"refs/tags/$params.github_release_tag"
]],
userRemoteConfigs:
[[
url:
scmVars
.
GIT_URL
]]]
build_tag
=
params
.
github_release_tag
+
"_"
+
env
.
BUILD_NUMBER
// Creating artifact version
commit_hash
=
sh
(
script:
'git rev-parse --short HEAD'
,
returnStdout:
true
).
trim
()
branch_name
=
sh
(
script:
'git name-rev --name-only HEAD | rev | cut -d "/" -f1| rev'
,
returnStdout:
true
).
trim
()
artifact_version
=
branch_name
+
"_"
+
commit_hash
println
(
ANSI_BOLD
+
ANSI_YELLOW
+
"github_release_tag specified, building from github_release_tag: "
+
params
.
github_release_tag
+
ANSI_NORMAL
)
}
checkout
scm
checkout
scm:
[
$class
:
'GitSCM'
,
branches:
[[
name:
"${params.github_release_tag}"
]],
userRemoteConfigs:
[[
url:
scmVars
.
GIT_URL
]]]
commit_hash
=
sh
(
script:
'git rev-parse --short HEAD'
,
returnStdout:
true
).
trim
()
build_tag
=
sh
(
script:
"echo "
+
params
.
github_release_tag
.
split
(
'/'
)[-
1
]
+
"_"
+
commit_hash
+
"_"
+
env
.
BUILD_NUMBER
,
returnStdout:
true
).
trim
()
echo
"build_tag: "
+
build_tag
stage
(
'Build'
)
{
...
...
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