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

10
Jenkinsfile vendored
View File

@ -64,10 +64,18 @@ pipeline {
echo '######################################################################' echo '######################################################################'
echo '### transfer files from jenkins pipeline to remote nginx as static ###' echo '### transfer files from jenkins pipeline to remote nginx as static ###'
echo '######################################################################' 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 ''' 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 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>
'''
} }
} }