Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
fsl-ci-rules
Commits
ffe04e99
Commit
ffe04e99
authored
Sep 20, 2021
by
Paul McCarthy
🚵
Browse files
Merge branch 'rf/tmpdir' into 'master'
Work directory location See merge request fsl/fsl-ci-rules!87
parents
51410d66
eec4b8d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl_ci/__init__.py
View file @
ffe04e99
...
...
@@ -19,7 +19,7 @@ import subprocess as sp
import
yaml
__version__
=
'0.16.
2
'
__version__
=
'0.16.
3
'
"""Current version of the fsl-ci-rules."""
...
...
rules/fsl-ci-job-template.yml
View file @
ffe04e99
...
...
@@ -33,7 +33,11 @@
# the same machine (e.g. macOS builds).
# We write its location to a file, so the
# after_script can delete it
-
FSL_CI_CONFIG_DIR=$(pwd)/fsl_ci_config_${CI_JOB_ID}
-
if [ -z "$TMPDIR" ]; then
FSL_CI_CONFIG_DIR=/tmp/fsl_ci_config_${CI_JOB_ID};
else
FSL_CI_CONFIG_DIR=$TMPDIR/fsl_ci_config_${CI_JOB_ID};
fi
-
mkdir ${FSL_CI_CONFIG_DIR}
-
echo ${FSL_CI_CONFIG_DIR} > ./.fsl-ci-config-dir
...
...
@@ -93,3 +97,4 @@
after_script
:
-
FSL_CI_CONFIG_DIR=$(cat ./.fsl-ci-config-dir)
-
rm -r ${FSL_CI_CONFIG_DIR}
-
rm ./.fsl-ci-config-dir
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment