feature/task-30-docker #31

Merged
L_DelOff merged 76 commits from feature/task-30-docker into master 2023-11-22 11:36:41 +03:00
Showing only changes of commit bdb19c81ca - Show all commits

View File

@@ -25,7 +25,11 @@ pipeline {
stage('Deploy') {
steps {
script {
sh 'apt-get update && apt-get install -y sshpass openssh-client'
sh """
sshpass -p ${SSH_PASS} ssh -o StrictHostKeyChecking=no ${SSH_USER}@${SSH_HOST} -p ${SSH_PORT} 'mkdir -p ${PATH_TO_DEV_FOLDER}'
scp -o StrictHostKeyChecking=no -P ${SSH_PORT} target/*.jar ${SSH_USER}@${SSH_HOST}:${PATH_TO_DEV_FOLDER}/
scp -o StrictHostKeyChecking=no -P ${SSH_PORT} Dockerfile ${SSH_USER}@${SSH_HOST}:${PATH_TO_DEV_FOLDER}/
scp -o StrictHostKeyChecking=no -P ${SSH_PORT} docker-compose.yml ${SSH_USER}@${SSH_HOST}:${PATH_TO_DEV_FOLDER}/