Skip to content

Commit d9227d9

Browse files
authored
Update Jenkinsfile
1 parent 41ba772 commit d9227d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Jenkinsfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ pipeline {
1414
stage('Build') {
1515
environment {
1616
DTR_ACCESS_KEY = credentials('jenkins-dtr-access-token')
17+
MAJORMINOR = '0.0'
1718
}
1819
steps {
19-
sh 'docker image build -t ${DTR_FQDN_PORT}/engineering/api-build:rc-1.0-build-${BUILD_ID} api'
20+
sh 'docker image build -t ${DTR_FQDN_PORT}/engineering/api-build:rc-${MAJORMINOR}.${BUILD_ID} api'
2021
sh 'docker login -u jenkins -p ${DTR_ACCESS_KEY} ${DTR_FQDN_PORT}'
21-
sh 'docker image push ${DTR_FQDN_PORT}/engineering/api-build:rc-1.0-build-${BUILD_ID}'
22+
sh 'docker image push ${DTR_FQDN_PORT}/engineering/api-build:rc-${MAJORMINOR}.${BUILD_ID}'
2223
}
2324
}
2425
}

0 commit comments

Comments
 (0)