Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-18 12:10:01 +00:00
parent 31ecf84171
commit f6850fa35f

2
Jenkinsfile vendored
View File

@@ -20,7 +20,7 @@ pipeline {
script { script {
def dockerCmd = 'docker run -p 3080:3080 -d nanajanashia/demo-app:1.0' def dockerCmd = 'docker run -p 3080:3080 -d nanajanashia/demo-app:1.0'
sshagent(['ec2-server-key']) { sshagent(['ec2-server-key']) {
sh 'ssh -o StrictHostKeyChecking=no ec2-user@35.180.251.121 ${dockerCmd}' sh "ssh -o StrictHostKeyChecking=no ec2-user@35.180.251.121 ${dockerCmd}"
} }
} }
} }