diff --git a/Jenkinsfile_CI b/Jenkinsfile_CI index 35c497f..5cf3091 100644 --- a/Jenkinsfile_CI +++ b/Jenkinsfile_CI @@ -5,30 +5,11 @@ pipeline { args '-v /root/.m2:/root/.m2' } } - environment { - SSH_HOST = credentials('ROCK_PI_5_SSH_HOST') - SSH_PORT = credentials('ROCK_PI_5_SSH_PORT') - SSH_USER = credentials('ROCK_PI_5_SSH_USER') - SSH_PASS = credentials('ROCK_PI_5_SSH_PASS') - } stages { - stage('Init container') { - steps { - sh 'apt-get update && apt-get install -y sshpass openssh-client' - } - } stage('Build') { steps { sh 'mvn -B -DskipTests -X clean package spring-boot:repackage' } } - stage('Prune images') { - steps { - sh """ - sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'docker image prune -f' - """ - } - } } - } \ No newline at end of file