We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ba772 commit d9227d9Copy full SHA for d9227d9
Jenkinsfile
@@ -14,11 +14,12 @@ pipeline {
14
stage('Build') {
15
environment {
16
DTR_ACCESS_KEY = credentials('jenkins-dtr-access-token')
17
+ MAJORMINOR = '0.0'
18
}
19
steps {
- 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'
21
sh 'docker login -u jenkins -p ${DTR_ACCESS_KEY} ${DTR_FQDN_PORT}'
- 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}'
23
24
25
0 commit comments