Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lcgcmake
Manage
Activity
Members
Labels
Plan
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sft
lcgcmake
Commits
d7835e50
Commit
d7835e50
authored
4 years ago
by
Pere Mato Vila
Browse files
Options
Downloads
Plain Diff
Merge branch '
SPI-1891
' into 'LCG_100-patches'
Add RPM revision as parameter in Jenkins
parents
b3c8f59b
76b60db2
Branches
Branches containing commit
No related tags found
1 merge request
!771
Add RPM revision as parameter in Jenkins
Pipeline
#2626879
passed
4 years ago
Stage: sweep
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/scripts/install_binary_tarfile.py
+2
-1
2 additions, 1 deletion
cmake/scripts/install_binary_tarfile.py
jenkins/Jenkinsfile-release
+1
-0
1 addition, 0 deletions
jenkins/Jenkinsfile-release
jenkins/Jenkinsfunctions.groovy
+6
-0
6 additions, 0 deletions
jenkins/Jenkinsfunctions.groovy
with
9 additions
and
1 deletion
cmake/scripts/install_binary_tarfile.py
+
2
−
1
View file @
d7835e50
...
...
@@ -69,7 +69,8 @@ def install_tarfile(urltarfile, prefix, lcgprefix, with_hash=True, with_link=Tru
if
os
.
path
.
exists
(
postinstall
)
:
#---Replace the old post-install script with new one
with
open
(
postinstall
)
as
f
:
if
'
#!/bin/sh
'
in
f
.
read
():
script
=
f
.
read
()
if
'
#!/bin/sh
'
in
script
or
'
RPM_INSTALL_PREFIX
'
not
in
script
:
f
.
close
()
shutil
.
copy
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
post-install.sh
'
),
postinstall
)
os
.
environ
[
'
INSTALLDIR
'
]
=
prefix
...
...
This diff is collapsed.
Click to expand it.
jenkins/Jenkinsfile-release
+
1
−
0
View file @
d7835e50
...
...
@@ -39,6 +39,7 @@ pipeline {
choice(name: 'RPM_DRYRUN', choices: ['no', 'yes'], description: 'RPMs publish dryrun')
booleanParam(name: 'RPM_TEST', defaultValue: false, description: 'RPMs tests')
string(name: 'RPM_REPOSITORY', defaultValue: '', description: 'RPM repository e.g /eos/project/l/lcg/www/lcgpackages/lcg/repo/7/LCG_97/ or empty')
string(name: 'RPM_REVISION_NUMBER', defaultValue: '', description: 'RPM revision number (default is the LCG numeric version)')
}
//---Options----------------------------------------------------------------------------------------------------------
options {
...
...
This diff is collapsed.
Click to expand it.
jenkins/Jenkinsfunctions.groovy
+
6
−
0
View file @
d7835e50
...
...
@@ -24,6 +24,11 @@ def buildPackages() {
ctest -VV -DCTEST_LABELS=Release -S lcgcmake/jenkins/lcgcmake-build.cmake
"""
}
//---Fail the release if the build stage fails-------------------------------------------------------------------------
if
(
params
.
BUILDMODE
==
'release'
&&
currentBuild
.
result
==
'UNSTABLE'
)
{
echo
'Setting the build state to FAILURE for BUILDMODE equal to release'
currentBuild
.
result
=
'FAILURE'
}
//---Update a number of variables after the build step-----------------------------------------------------------------
PLATFORM
=
sh
(
returnStdout:
true
,
script:
'lcgcmake/jenkins/getPlatform.py'
).
trim
()
barePLATFORM
=
([
PLATFORM
.
split
(
'-'
)[
0
].
split
(
'\\+'
)[
0
]]+
PLATFORM
.
split
(
'-'
)[
1
..
3
]).
join
(
'-'
).
replace
(
'gcc7'
,
'gcc8'
).
replace
(
'dbg'
,
'opt'
)
...
...
@@ -181,6 +186,7 @@ def testPythonImport() {
def
createRPMS
()
{
sh
label:
'create-rpms'
,
script:
"""
cd ${WORKSPACE}/install
export RPM_REVISION_NUMBER=${RPM_REVISION_NUMBER}
${WORKSPACE}/lcgcmake/jenkins/package_release.py ${WORKSPACE} ${LCG_VERSION} ${PLATFORM} ${TARGET} ${BUILDMODE} ${COMPILER}
"""
}
...
...
This diff is collapsed.
Click to expand it.
Pere Mato Vila
@mato
mentioned in commit
e0ca8186
·
4 years ago
mentioned in commit
e0ca8186
mentioned in commit e0ca8186dc466add860add8799d128c16efe3937
Toggle commit list
Andre Philippe Sailer
@sailer
mentioned in commit
ad2ab89e
·
4 years ago
mentioned in commit
ad2ab89e
mentioned in commit ad2ab89e7432c5306361b7b5726e79a008f5aaf9
Toggle commit list
Preview
0%
Loading
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