Skip to content

Commit 370fa0e

Browse files
committed
Correct shell line for creating version number
1 parent 355d7bd commit 370fa0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ node ('Docker') {
77
withDockerRegistry([credentialsId: '99ec6d6e-d2f6-4af6-9bbc-3ee43e321123', url: 'http://registry.dyalog.com:5000']) {
88
stage ('Build Docker Image') {
99
// Create a version file to include in the container
10-
sh 'echo $(cat version).$(git rev-list HEAD --count) - (${GIT_COMMIT})" > ./MiServer.version'
10+
sh 'echo "$(cat version).$(git rev-list HEAD --count) - ($(git rev-parse HEAD))" > ./MiServer.version'
1111
DockerApp = docker.build 'registry.dyalog.com:5000/dyalog/miserver:latest'
1212
}
1313
stage ('Test website') {

0 commit comments

Comments
 (0)