removes upx & updates modules

This commit is contained in:
2022-06-02 11:26:22 -05:00
parent 52128abdf9
commit 4f920ef805
3 changed files with 24 additions and 17 deletions

4
Jenkinsfile vendored
View File

@@ -101,14 +101,10 @@ sonar.go.coverage.reportPaths=cover.out
apt-get install --yes --no-install-recommends git
git config --global --add safe.directory "/go/src/${env.JOB_BASE_NAME}"
fi
if [ ! "/usr/bin/upx" ] || [ ! -x "/usr/bin/upx" ]; then
apt-get install --yes --no-install-recommends upx
fi
ln -s "${workspace}" "/go/src/${env.JOB_BASE_NAME}"
cd "/go/src/${env.JOB_BASE_NAME}"
go install -v ./...
GOOS=linux GOARCH=amd64 go build -v -ldflags="-s -w" -tags timetzdata -o go-temper ./cmd/go-temper
upx --lzma go-temper
"""
}
}