moves git safe dir
This commit is contained in:
parent
082c57f0df
commit
97f33f6c0c
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -99,8 +99,8 @@ sonar.go.coverage.reportPaths=cover.out
|
|||||||
apt-get install --yes --no-install-recommends libusb-1.0-0-dev gcc g++
|
apt-get install --yes --no-install-recommends libusb-1.0-0-dev gcc g++
|
||||||
if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
|
if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then
|
||||||
apt-get install --yes --no-install-recommends git
|
apt-get install --yes --no-install-recommends git
|
||||||
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
|
|
||||||
fi
|
fi
|
||||||
|
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
|
||||||
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