|
@@ -57,7 +57,7 @@ pipeline {
|
|
|
error('Unknown cluster')
|
|
|
}
|
|
|
}
|
|
|
- echo "Building ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}."
|
|
|
+/* echo "Building ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}."
|
|
|
sh "docker build --build-arg repo=${repo} --no-cache -t ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ."
|
|
|
script {
|
|
|
NEWTAG = sh script: "docker run --rm ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} rpm -q --qf %{VERSION}-%{RELEASE} ${PACKAGE_NAME} 2> /dev/null", returnStdout: true
|
|
@@ -65,15 +65,15 @@ pipeline {
|
|
|
echo "NEWTAG is $NEWTAG"
|
|
|
}
|
|
|
sh "docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
|
|
|
- }
|
|
|
+*/ }
|
|
|
}
|
|
|
- stage("Publish") {
|
|
|
+/* stage("Publish") {
|
|
|
steps {
|
|
|
echo "Publishing ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
|
|
|
sh "docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
|
|
|
}
|
|
|
}
|
|
|
- stage("Update") {
|
|
|
+*/ stage("Update") {
|
|
|
when { expression { service_update != "" } }
|
|
|
steps {
|
|
|
script {
|