Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-18 12:08:28 +00:00
parent 9b90eae493
commit 31ecf84171

2
Jenkinsfile vendored
View File

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