From 97f33f6c0cb8eb34380c9792a66c0f147ca97e55 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Mon, 1 Apr 2024 09:24:40 -0500 Subject: [PATCH] moves git safe dir --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ./...