hotfix
Some checks failed
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit
Some checks failed
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -39,8 +39,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Remove old image') {
|
stage('Remove old image') {
|
||||||
steps {
|
steps {
|
||||||
|
def updatedImageName = "${IMAGE_NAME}-app"
|
||||||
sh """
|
sh """
|
||||||
sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'docker image rm -f ${IMAGE_NAME}:${IMAGE_VERSION} || true'
|
sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'docker image rm -f ${updatedImageName}:${IMAGE_VERSION} || true'
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user