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
@ -84,11 +84,14 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg "Installing GIT LFS hooks"
|
# Don't run on Jenkins
|
||||||
git lfs install
|
if [ -z "${CI}" ]; then
|
||||||
|
msg "Installing GIT LFS hooks"
|
||||||
|
git lfs install
|
||||||
|
|
||||||
msg "Downloading GIT LFS artifacts"
|
msg "Downloading GIT LFS artifacts"
|
||||||
git lfs pull
|
git lfs pull
|
||||||
|
fi
|
||||||
|
|
||||||
msg "Initializing submodules"
|
msg "Initializing submodules"
|
||||||
git submodule update --init --recursive --checkout --progress
|
git submodule update --init --recursive --checkout --progress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user