modify Jenkinsfile

master
TBS093A 2022-03-01 16:09:38 +01:00
parent 2ba3e560f2
commit 8ee25eefc8
1 changed files with 9 additions and 1 deletions

8
Jenkinsfile vendored
View File

@ -65,9 +65,17 @@ pipeline {
echo '### transfer files from jenkins pipeline to remote nginx as static ###'
echo '######################################################################'
sh '''
ssh -v -o StrictHostKeyChecking=no -i $PRIV_KEY -tt ubuntu@13.48.201.185 "sudo chown ubuntu:ubuntu -R /home/ubuntu/docker-compose/volumes/https-nginx-static/kamil-zuk-cv.tk ; "
'''
sh '''
scp -v -o StrictHostKeyChecking=no -i $PRIV_KEY -r ./public/* ubuntu@13.48.201.185:/home/ubuntu/docker-compose/volumes/https-nginx-static/kamil-zuk-cv.tk
'''
sh '''
ssh -v -o StrictHostKeyChecking=no -i $PRIV_KEY -tt ubuntu@13.48.201.185 "sudo chown root:root -R /home/ubuntu/docker-compose/volumes/https-nginx-sta>
'''
}
}