hotfix
Hedgehog_server_CD/ServerMonitorBot/pipeline/head This commit looks good
Details
Hedgehog_server_CD/ServerMonitorBot/pipeline/head This commit looks good
Details
parent
74e5e2b017
commit
5bd78701e9
|
@ -39,9 +39,8 @@ 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 ${updatedImageName}:${IMAGE_VERSION} || true'
|
sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'docker image rm -f ${IMAGE_NAME}-app:${IMAGE_VERSION} || true'
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue