fix
Some checks failed
Hedgehog_server_CI/ServerMonitorBot/pipeline/head There was a failure building this commit
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit

This commit is contained in:
2023-11-21 13:59:29 +03:00
parent 034387af16
commit 0fecaa501b

View File

@@ -17,12 +17,13 @@ pipeline {
sh 'mvn -B -DskipTests -X clean package spring-boot:repackage' sh 'mvn -B -DskipTests -X clean package spring-boot:repackage'
} }
} }
} stage('Prune images') {
stage('Prune images') { steps {
steps { sh """
sh """ sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'docker image prune -f'
sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'docker image prune -f' """
""" }
} }
} }
} }