diff --git a/Jenkinsfile b/Jenkinsfile index ac232a3..67e3784 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 ./...