moves git safe dir

This commit is contained in:
Hyatt 2024-04-01 09:24:40 -05:00
parent 082c57f0df
commit 97f33f6c0c
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

2
Jenkinsfile vendored
View File

@ -99,8 +99,8 @@ sonar.go.coverage.reportPaths=cover.out
apt-get install --yes --no-install-recommends libusb-1.0-0-dev gcc g++
if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
apt-get install --yes --no-install-recommends git
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
fi
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
ln -s "${workspace}" "/go/src/${env.JOB_BASE_NAME}"
cd "/go/src/${env.JOB_BASE_NAME}"
go install -v ./...