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
|
fi
|
||||||
if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
|
if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
git config --global --add safe.directory '${workspace}'
|
|
||||||
fi
|
fi
|
||||||
|
git config --global --add safe.directory '${workspace}'
|
||||||
apk add --no-cache libusb-dev gcc g++ musl-dev pkgconfig
|
apk add --no-cache libusb-dev gcc g++ musl-dev pkgconfig
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
@ -101,6 +101,7 @@ sonar.go.coverage.reportPaths=cover.out
|
|||||||
apt-get install --yes --no-install-recommends git
|
apt-get install --yes --no-install-recommends git
|
||||||
fi
|
fi
|
||||||
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
|
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}"
|
ln -s "${workspace}" "/go/src/${env.JOB_BASE_NAME}"
|
||||||
cd "/go/src/${env.JOB_BASE_NAME}"
|
cd "/go/src/${env.JOB_BASE_NAME}"
|
||||||
go install -v ./...
|
go install -v ./...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user