modify Jenkinsfile
parent
2ba3e560f2
commit
8ee25eefc8
|
|
@ -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>
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue