Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CHiPS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
external
CHiPS
Commits
ca3c53d6
Commit
ca3c53d6
authored
4 years ago
by
jourdain
Browse files
Options
Downloads
Patches
Plain Diff
Add clean stage
parent
a2ec1c2b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-0
9 additions, 0 deletions
.gitlab-ci.yml
tools/clean.sh
+14
-0
14 additions, 0 deletions
tools/clean.sh
with
23 additions
and
0 deletions
.gitlab-ci.yml
+
9
−
0
View file @
ca3c53d6
...
...
@@ -12,6 +12,7 @@ stages:
-
validate-large
-
run-xlarge
-
validate-xlarge
-
cleanup-ci
.runner
:
&runner
tags
:
...
...
@@ -400,3 +401,11 @@ xlarge-smilei:
validate-xlarge-smilei
:
<<
:
*smilei
<<
:
*validate-xlarge
cleanup
:
<<
:
*runner
stage
:
cleanup-ci
script
:
-
cd ${SCRATCHDIR}/abs/${CI_COMMIT_SHORT_SHA}
-
./tools/clean.sh
when
:
manual
This diff is collapsed.
Click to expand it.
tools/clean.sh
0 → 100755
+
14
−
0
View file @
ca3c53d6
#!/bin/bash
ls
${
SCRATCHDIR
}
/abs/
${
CI_COMMIT_SHORT_SHA
}
/
if
[[
-n
${
CI_COMMIT_SHORT_SHA
}
&&
-d
"
${
SCRATCHDIR
}
/abs/
${
CI_COMMIT_SHORT_SHA
}
"
]]
;
then
echo
"Cleaning..."
echo
"CI_COMMIT_SHORT_SHA=
${
CI_COMMIT_SHORT_SHA
}
"
cd
${
SCRATCHDIR
}
/abs/
${
CI_COMMIT_SHORT_SHA
}
/
echo
"pwd "
`
pwd
`
rm
-rf
Abinit/abinit-8.10.3 Abinit/
*
.tar.gz DYNAMICO/DYNAMICO DYNAMICO/XIOS GYSELAX/gysela Gromacs/gromacs/ Gromacs/gromacs-2020.1 Gromacs/gromacs-2020.1.tar.gz MUMPS/MUMPS_5.2.1 MUMPS/mumps_5.2.1.orig.tar.gz NEMO/release-4.0 RAMSES/ramses RAMSES/testcase_medium/input/ RAMSES/testcase_medium/output_00001/ RAMSES/testcase_medium/PROD/ RAMSES/testcase_small/DEBUG Smilei/Smilei YALES2BIO/yales2bio-devel YALES2BIO/testcase_big/dump
echo
"...End cleaning."
echo
"Number of files remaining in
${
SCRATCHDIR
}
/abs/
${
CI_COMMIT_SHORT_SHA
}
= "
;
find
.
|
wc
-l
else
echo
"Cleaning not performed"
echo
"
\$
{SCRATCHDIR}/abs/
\$
{CI_COMMIT_SHORT_SHA}/="
${
SCRATCHDIR
}
/abs/
${
CI_COMMIT_SHORT_SHA
}
fi
This diff is collapsed.
Click to expand it.
Preview
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