add additional safe directory
This commit is contained in:
parent
97f33f6c0c
commit
1416362d08
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -51,8 +51,8 @@ podTemplate(
|
||||
fi
|
||||
if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
|
||||
apk add --no-cache git
|
||||
git config --global --add safe.directory '${workspace}'
|
||||
fi
|
||||
git config --global --add safe.directory '${workspace}'
|
||||
apk add --no-cache libusb-dev gcc g++ musl-dev pkgconfig
|
||||
curl \
|
||||
--silent \
|
||||
@ -101,6 +101,7 @@ sonar.go.coverage.reportPaths=cover.out
|
||||
apt-get install --yes --no-install-recommends git
|
||||
fi
|
||||
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
|
||||
git config --global --add safe.directory '${workspace}'
|
||||
ln -s "${workspace}" "/go/src/${env.JOB_BASE_NAME}"
|
||||
cd "/go/src/${env.JOB_BASE_NAME}"
|
||||
go install -v ./...
|
||||
|
Loading…
x
Reference in New Issue
Block a user