Skip to content

Commit

Permalink
Clean up untracked files if Gitlab CI repo clone is pre-initialized f…
Browse files Browse the repository at this point in the history
…rom previous run (#2892)

When Gitlab CI reuses a repo clone for testing, untracked files can cause errors with git, preventing updates to newer commits (nightlyTests run that errored out due to untracked files in integratedTests submodule: https://lc.llnl.gov/gitlab/settgast/GEOSX/-/pipelines/359642).
  • Loading branch information
bmhan12 authored Dec 15, 2023
1 parent 2017843 commit 95ddd59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ stages:
- git submodule set-url integratedTests [email protected]:GEOS-DEV/integratedTests.git
- git submodule set-url src/coreComponents/fileIO/coupling/hdf5_interface https://github.com/GEOS-DEV/hdf5_interface.git

# Clean up directory and submodules when pre-initialized from previous CI run
- git clean -x -f -d
- git submodule foreach --recursive git clean -x -f -d

# Update submodules
- git submodule update --init --recursive src/cmake/blt
- git submodule update --init --recursive src/coreComponents/LvArray
Expand Down

0 comments on commit 95ddd59

Please sign in to comment.