mirror of
https://github.com/system76/firmware-open.git
synced 2025-07-03 21:03:23 +00:00
scripts: Don't run git-lfs commands on CI
The `deps.sh` script needs to be run to set up a new Jenkins workspace. The git-lfs commands fail with: mkdir /dev/null: not a directory To resolve this, either: 1: run `git lfs update --manual` for instructions on how to merge hooks. 2: run `git lfs update --force` to overwrite your hook. Just don't run them, since Jenkins is configured to perform the LFS pull when fetching the repo. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
1d881de90c
commit
616b2bfe7b
1 changed files with 7 additions and 4 deletions
|
@ -84,11 +84,14 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
msg "Installing GIT LFS hooks"
|
||||
git lfs install
|
||||
# Don't run on Jenkins
|
||||
if [ -z "${CI}" ]; then
|
||||
msg "Installing GIT LFS hooks"
|
||||
git lfs install
|
||||
|
||||
msg "Downloading GIT LFS artifacts"
|
||||
git lfs pull
|
||||
msg "Downloading GIT LFS artifacts"
|
||||
git lfs pull
|
||||
fi
|
||||
|
||||
msg "Initializing submodules"
|
||||
git submodule update --init --recursive --checkout --progress
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue