modify Jenkinsfile
parent
fe7169f616
commit
787e17ea4e
|
|
@ -58,13 +58,18 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo '#3 Deploy App'
|
echo '#3 Deploy App'
|
||||||
|
|
||||||
echo '######################################################################'
|
withCredentials([sshUserPrivateKey(credentialsId: 'cv-kamil-zuk', keyFileVariable: 'PRIV_KEY')]) {
|
||||||
echo '### transfer files from jenkins pipeline to remote nginx as static ###'
|
script {
|
||||||
echo '######################################################################'
|
|
||||||
|
|
||||||
sh '''
|
echo '######################################################################'
|
||||||
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
|
echo '### transfer files from jenkins pipeline to remote nginx as static ###'
|
||||||
'''
|
echo '######################################################################'
|
||||||
|
|
||||||
|
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
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
echo 'Deploy Success'
|
echo 'Deploy Success'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue