removes upx & updates modules
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user