fix
Hedgehog_server_CI/ServerMonitorBot/pipeline/head There was a failure building this commit Details
Hedgehog_server_CD/ServerMonitorBot/pipeline/head There was a failure building this commit Details

pull/31/head
L_DelOff 2023-11-21 13:59:29 +03:00
parent 034387af16
commit 0fecaa501b
1 changed files with 7 additions and 6 deletions

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' """
""" }
} }
} }
} }