Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cx-custom-gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lukas Werner
cx-custom-gitlab-runner
Commits
78d69069
Commit
78d69069
authored
3 years ago
by
Lukas Werner
Browse files
Options
Downloads
Patches
Plain Diff
NO_SLURM_SUBMIT and partition=work
parent
4a781ff7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runner_scripts/root/run.sh
+5
-1
5 additions, 1 deletion
runner_scripts/root/run.sh
with
5 additions
and
1 deletion
runner_scripts/root/run.sh
+
5
−
1
View file @
78d69069
...
...
@@ -14,6 +14,7 @@ hash salloc
hash sed
hash
srun
hash
ssh-keygen
hash
sinfo
function
error
{
:
"
${
RV
:
=
${
2
:-
$BUILD_FAILURE_EXIT_CODE
}}
"
...
...
@@ -58,7 +59,7 @@ BASE_DIR=$AUTH_USER_WORK/gitlab-runner/builds/${CUSTOM_ENV_CI_CONCURRENT_PROJECT
runuser
"
$AUTH_USER
"
--login
--command
"mkdir -p
$BASE_DIR
"
if
[[
(
"
$2
"
==
"step_script"
||
"
$2
"
==
"build_script"
)
&&
${
CUSTOM_ENV_
SUBMIT_TO_SLURM
:-}
]]
;
then
if
[[
(
"
$2
"
==
"step_script"
||
"
$2
"
==
"build_script"
)
&&
"
${
CUSTOM_ENV_
NO_SLURM_SUBMIT
:-}
"
!=
1
]]
;
then
## The script is the one specified in the gitlab-ci.yml script directive and the SUBMIT_TO_SLURM variable is set
for
E
in
$(
env
|
grep
-E
"^CUSTOM_ENV_SLURM_"
)
...
...
@@ -77,6 +78,9 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && ${CUSTOM_ENV_SUBMIT_T
error
fi
SLURM_PARTITION
=
work
export
SLURM_PARTITION
SLURM_NODES
=
1
# currently only individual nodes can be used
export
SLURM_NODES
...
...
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