mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-05 15:15:44 +02:00
Set piper exe version when under test (#1462)
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
This commit is contained in:
parent
36a198ac86
commit
158411564b
@ -28,7 +28,7 @@ class PiperGoUtils implements Serializable {
|
||||
steps.sh 'wget https://github.com/$REPOSITORY_UNDER_TEST/archive/$LIBRARY_VERSION_UNDER_TEST.tar.gz'
|
||||
steps.sh 'tar xzf $LIBRARY_VERSION_UNDER_TEST.tar.gz'
|
||||
steps.dir("jenkins-library-${steps.env.LIBRARY_VERSION_UNDER_TEST}") {
|
||||
steps.sh 'CGO_ENABLED=0 go build -tags release -o ../piper . && chmod +x ../piper && chown 1000:999 ../piper'
|
||||
steps.sh "CGO_ENABLED=0 go build -tags release -ldflags \"-X github.com/SAP/jenkins-library/cmd.GitCommit=${steps.env.LIBRARY_VERSION_UNDER_TEST}\" -o ../piper . && chmod +x ../piper && chown 1000:999 ../piper"
|
||||
}
|
||||
steps.sh 'rm -rf $LIBRARY_VERSION_UNDER_TEST.tar.gz jenkins-library-$LIBRARY_VERSION_UNDER_TEST'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user