diff --git a/Jenkinsfile b/Jenkinsfile index f642ab6..ac232a3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -99,8 +99,8 @@ sonar.go.coverage.reportPaths=cover.out apt-get install --yes --no-install-recommends libusb-1.0-0-dev gcc g++ if [ ! "/usr/bin/git" ] || [ ! -x "/usr/bin/git" ]; then apt-get install --yes --no-install-recommends git - git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}" fi + git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}" ln -s "${workspace}" "/go/src/${env.JOB_BASE_NAME}" cd "/go/src/${env.JOB_BASE_NAME}" go install -v ./...