adds git build safe directory
This commit is contained in:
parent
296aed055e
commit
70e48832c1
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -81,6 +81,7 @@ 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
|
||||||
apk add --no-cache gcc musl-dev
|
apk add --no-cache gcc musl-dev
|
||||||
curl \
|
curl \
|
||||||
@ -126,6 +127,7 @@ sonar.go.coverage.reportPaths=cover.out
|
|||||||
sh """
|
sh """
|
||||||
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
|
||||||
if [ ! "/usr/bin/upx" ] || [ ! -x "/usr/bin/upx" ]; then
|
if [ ! "/usr/bin/upx" ] || [ ! -x "/usr/bin/upx" ]; then
|
||||||
apk add --no-cache upx
|
apk add --no-cache upx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user