Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Computing
cbmroot
Commits
37023bcf
Commit
37023bcf
authored
3 years ago
by
Administrator
Committed by
Florian Uhlig
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move a second job/runner in the job matrix
parent
475f503d
No related branches found
No related tags found
1 merge request
!377
Restructure CI pipeline implementation and start using the new singularity runners
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+58
-41
58 additions, 41 deletions
.gitlab-ci.yml
with
58 additions
and
41 deletions
.gitlab-ci.yml
+
58
−
41
View file @
37023bcf
...
@@ -223,37 +223,37 @@ CbmRoot_Merge_macosx:
...
@@ -223,37 +223,37 @@ CbmRoot_Merge_macosx:
-
cat Dart.cfg
-
cat Dart.cfg
-
$PWD/Dart.sh MergeRequest Dart.cfg
-
$PWD/Dart.sh MergeRequest Dart.cfg
CbmRoot_Merge_Singularity
:
#
CbmRoot_Merge_Singularity:
stage
:
build
#
stage: build
tags
:
#
tags:
-
CbmRoot_singularity
#
- CbmRoot_singularity
only
:
#
only:
refs
:
#
refs:
-
merge_requests
#
- merge_requests
variables
:
#
variables:
-
$CI_MERGE_REQUEST_PROJECT_PATH == "computing/cbmroot" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
#
- $CI_MERGE_REQUEST_PROJECT_PATH == "computing/cbmroot" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
script
:
#
script:
-
echo $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH
#
- echo $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH
-
echo $CI_MERGE_REQUEST_PROJECT_PATH
#
- echo $CI_MERGE_REQUEST_PROJECT_PATH
-
if [ "$CI_MERGE_REQUEST_PROJECT_PATH" != "computing/cbmroot" ]; then
#
- if [ "$CI_MERGE_REQUEST_PROJECT_PATH" != "computing/cbmroot" ]; then
-
echo "Should not come here"
#
- echo "Should not come here"
-
exit
1
#
- exit 1
-
fi
#
- fi
-
echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
#
- echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
-
echo $CI_MERGE_REQUEST_ID
#
- echo $CI_MERGE_REQUEST_ID
-
echo $CI_MERGE_REQUEST_IID
#
- echo $CI_MERGE_REQUEST_IID
-
echo "export LINUX_FLAVOUR=Debian10" >> Dart.cfg
#
- echo "export LINUX_FLAVOUR=Debian10" >> Dart.cfg
-
echo "export FAIRSOFT_VERSION=apr21" >> Dart.cfg
#
- echo "export FAIRSOFT_VERSION=apr21" >> Dart.cfg
-
echo "export FAIRROOT_VERSION=v18.6.3" >> Dart.cfg
#
- echo "export FAIRROOT_VERSION=v18.6.3" >> Dart.cfg
-
echo "export SIMPATH=/cvmfs/fairsoft.gsi.de/debian10/fairsoft/\${FAIRSOFT_VERSION}" >> Dart.cfg
#
- echo "export SIMPATH=/cvmfs/fairsoft.gsi.de/debian10/fairsoft/\${FAIRSOFT_VERSION}" >> Dart.cfg
-
echo "export FAIRROOTPATH=/cvmfs/fairsoft.gsi.de/debian10/fairroot/\${FAIRROOT_VERSION}_fs_\${FAIRSOFT_VERSION}" >> Dart.cfg
#
- echo "export FAIRROOTPATH=/cvmfs/fairsoft.gsi.de/debian10/fairroot/\${FAIRROOT_VERSION}_fs_\${FAIRSOFT_VERSION}" >> Dart.cfg
-
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
#
- echo "export BUILDDIR=$PWD/build" >> Dart.cfg
-
echo "export SOURCEDIR=$PWD" >> Dart.cfg
#
- echo "export SOURCEDIR=$PWD" >> Dart.cfg
-
echo "export NCPU=8" >> Dart.cfg
#
- echo "export NCPU=8" >> Dart.cfg
-
ls
#
- ls
-
pwd
#
- pwd
-
cat Dart.cfg
#
- cat Dart.cfg
-
$PWD/Dart.sh MergeRequest Dart.cfg
#
- $PWD/Dart.sh MergeRequest Dart.cfg
#
#
...
@@ -272,21 +272,19 @@ CbmRoot_Merge_Singularity:
...
@@ -272,21 +272,19 @@ CbmRoot_Merge_Singularity:
-
echo $CI_MERGE_REQUEST_IID
-
echo $CI_MERGE_REQUEST_IID
script
:
script
:
-
echo "export LINUX_FLAVOUR=$OS" >> Dart.cfg
-
echo "export LINUX_FLAVOUR=$OS" >> Dart.cfg
-
echo "export FAIRSOFT_VERSION=$FAIRSOFT_VERSION" >> Dart.cfg
-
echo "export SIMPATH=$SIMPATH" >> Dart.cfg
-
echo "export FAIRROOT_VERSION=$FAIRROOT_VERSION" >> Dart.cfg
-
echo "export FAIRROOTPATH=$FAIRROOTPATH" >> Dart.cfg
-
echo "export SIMPATH=$BASE_PATH/fairsoft_$FAIRSOFT_VERSION/installation" >> Dart.cfg
-
echo "export FAIRROOTPATH=$BASE_PATH/fairroot_$FAIRROOT_VERSION-fairsoft_$FAIRSOFT_VERSION" >> Dart.cfg
-
if [[ -n $RAW_DATA_PATH ]]; then
-
if [[ -n $RAW_DATA_PATH ]]; then
-
echo "export RAW_DATA_PATH=$RAW_DATA_PATH" >> Dart.cfg
-
echo "export RAW_DATA_PATH=$RAW_DATA_PATH" >> Dart.cfg
-
fi
-
fi
-
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
-
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
-
echo "export SOURCEDIR=$PWD" >> Dart.cfg
-
echo "export SOURCEDIR=$PWD" >> Dart.cfg
-
echo "export NCPU=$NCPU" >> Dart.cfg
-
if [[ -n $EXTRA_PATH ]]; then
-
if [[ -n $EXTRA_PATH ]]; then
-
echo "export PATH=$EXTRA_PATH:$PATH" >> Dart.cfg
-
echo "export PATH=$EXTRA_PATH:$PATH" >> Dart.cfg
-
fi
-
fi
-
cat Dart.cfg
-
cat Dart.cfg
-
$PWD/Dart.sh MergeRequest Dart.cfg
-
env
-
$PWD/Dart.sh $BUILD_TYPE Dart.cfg
after_script
:
after_script
:
-
ls
-
ls
-
pwd
-
pwd
...
@@ -301,13 +299,30 @@ CbmRoot_Merge_Singularity:
...
@@ -301,13 +299,30 @@ CbmRoot_Merge_Singularity:
tags
:
tags
:
-
CbmRoot_realData
-
CbmRoot_realData
variables
:
variables
:
OS
:
Debian10
BUILD_TYPE
:
"
MergeRequest"
FAIRSOFT_VERSION
:
jun19p2_root6
OS
:
"
Debian10"
FAIRROOT_VERSION
:
v18.2.1
EXTRA_PATH
:
/opt/cmake/3.20.1/bin
EXTRA_PATH
:
/opt/cmake/3.20.1/bin
NCPU
:
16
NCPU
:
16
BASE_PATH
:
"
/opt/cbmsoft/"
RAW_DATA_PATH
:
"
/opt/cbmsoft/beamtime-test-data/reduced/"
RAW_DATA_PATH
:
"
/opt/cbmsoft/beamtime-test-data/reduced/"
FAIRSOFT_VERSION
:
"
jun19p2_root6"
FAIRROOT_VERSION
:
"
v18.2.1"
BASE_PATH
:
"
/opt/cbmsoft/"
SIMPATH
:
"
$BASE_PATH/fairsoft_$FAIRSOFT_VERSION/installation"
FAIRROOTPATH
:
"
$BASE_PATH/fairroot_${FAIRROOT_VERSION}-fairsoft_${FAIRSOFT_VERSION}"
.singularity_tag
:
&singularity_tag
stage
:
build
tags
:
-
CbmRoot_singularity
variables
:
BUILD_TYPE
:
"
MergeRequest"
OS
:
debian10
NCPU
:
16
FAIRSOFT_VERSION
:
apr21
FAIRROOT_VERSION
:
v18.6.3
BASE_PATH
:
"
/cvmfs/fairsoft.gsi.de/$OS/"
SIMPATH
:
"
$BASE_PATH/fairsoft/$FAIRSOFT_VERSION"
FAIRROOTPATH
:
"
$BASE_PATH/fairroot/${FAIRROOT_VERSION}_fs_${FAIRSOFT_VERSION}"
.on_merge_request
:
&on_merge_request
.on_merge_request
:
&on_merge_request
only
:
only
:
...
@@ -322,6 +337,8 @@ CbmRoot_Merge_Singularity:
...
@@ -322,6 +337,8 @@ CbmRoot_Merge_Singularity:
CbmRoot_Merge_realData
:
CbmRoot_Merge_realData
:
<<
:
[
*realData_tag
,
*on_merge_request
,
*build_and_test
]
<<
:
[
*realData_tag
,
*on_merge_request
,
*build_and_test
]
CbmRoot_Merge_Singularity
:
<<
:
[
*singularity_tag
,
*on_merge_request
,
*build_and_test
]
InformCodeOwners
:
InformCodeOwners
:
stage
:
finalise
stage
:
finalise
...
...
This diff is collapsed.
Click to expand it.
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