diff --git a/Jenkinsfile.pjt b/Jenkinsfile.pjt index 27f5dbb..d983cf0 100644 --- a/Jenkinsfile.pjt +++ b/Jenkinsfile.pjt @@ -224,17 +224,6 @@ pipeline { } } - stage('jq tools install') { - steps { - sh ''' - if ! command -v jq >/dev/null; then - sudo apt-get update -y - sudo apt-get install -y jq - fi - ''' - } - } - stage('12) registry docker image cleanup') { steps { withCredentials([usernamePassword( @@ -245,6 +234,8 @@ pipeline { sh ''' set -e + command -v jq >/dev/null 2>&1 || (sudo apt-get update -y && sudo apt-get install -y jq) + echo "[1/2] docker registry login" echo "$DOCKER_PASS" | docker login ${REGISTRY_HOST} -u "$DOCKER_USER" --password-stdin