From 2b8a5f326cb5a08e9d94f82a67563b1126bb6d97 Mon Sep 17 00:00:00 2001 From: L_DelOff Date: Wed, 22 Nov 2023 11:32:44 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BB=D0=B8?= =?UTF-8?q?=D1=88=D0=BD=D0=B8=D0=B5=20=D1=88=D0=B0=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile_CI | 19 ------------------- 1 file changed, 19 deletions(-) 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