Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klaus Noelp
ebrains-spack-builds
Commits
c428d04c
Commit
c428d04c
authored
2 years ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
fix log collection
parent
7cb9d2c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
4
−
4
View file @
c428d04c
...
...
@@ -187,10 +187,10 @@ build-spack-env-on-runner:
-
mkdir spack_logs
# succesfully installed packages: keep the spack logs for any package modified during this CI job
-
cp --parents $SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/*/.spack/*.txt ./
-
mv .$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed
-
mv .$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed
|| echo "No logs for installed packages"
# not succesfully installed packages: also keep the spack logs for any packages that failed
-
cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./
-
mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed
-
mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed
|| echo "No logs for not-installed packages"
artifacts
:
paths
:
-
spack_logs
...
...
@@ -251,10 +251,10 @@ sync-gitlab-spack-instance:
# succesfully installed packages: keep the spack logs for any package modified during this CI job
# (we use repo.yaml, that is modified at each start of the pipeline, as a reference file)
-
find $SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/*/.spack/*.txt -newer $SPACK_REPO_PATH/repo.yaml -exec cp --parents -r "{}" ./ \;
-
mv .$SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed
-
mv .$SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed
|| echo "No logs for installed packages"
# not succesfully installed packages: also keep the spack logs for any packages that failed
-
cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./
-
mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed
-
mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed
|| echo "No logs for not-installed packages"
artifacts
:
paths
:
-
spack_logs
...
...
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