Skip to content

Commit 63c96b6

Browse files
mbwhitejt-nti
authored andcommitted
Docker image publishing (#32)
Change-Id: I90a0e3d4bee83e8c34fcb4beb0360955cb82c85e Signed-off-by: Matthew B. White <[email protected]>
1 parent 7433e96 commit 63c96b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/azure-pipelines.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ stages:
5454
- script: |
5555
env | sort
5656
java -version
57+
VERSION=$(cat build.gradle | sed -n "s/version =.*'\(.*\)\(-SNAPSHOT\)\?'/\1/p")
58+
VERSION=${VERSION// }
59+
echo Current version in code is :${VERSION}:
5760
- task: Gradle@2
5861
inputs:
5962
workingDirectory: ''
@@ -153,7 +156,7 @@ stages:
153156
env | sort
154157
155158
# temporarily use this approach instead of the gittag
156-
VERSION=$(cat build.gradle | sed -n "s/version =.*'\(.*\)\(-SNAPSHOT\)\?'/\1/p"
159+
VERSION=$(cat build.gradle | sed -n "s/version =.*'\(.*\)\(-SNAPSHOT\)\?'/\1/p")
157160
VERSION=${VERSION// }
158161
echo Version is :${VERSION}:
159162

0 commit comments

Comments
 (0)