Update Jenkinsfile
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -43,8 +43,8 @@ pipeline {
|
|||||||
def ec2Instance = "ec2-user@35.180.251.121"
|
def ec2Instance = "ec2-user@35.180.251.121"
|
||||||
|
|
||||||
sshagent(['ec2-server-key']) {
|
sshagent(['ec2-server-key']) {
|
||||||
sh "scp server-cmds.sh ${ec2Instance}:/home/ec2-user"
|
sh "scp -o StrictHostKeyChecking=no server-cmds.sh ${ec2Instance}:/home/ec2-user"
|
||||||
sh "scp docker-compose.yaml ${ec2Instance}:/home/ec2-user"
|
sh "scp -o StrictHostKeyChecking=no docker-compose.yaml ${ec2Instance}:/home/ec2-user"
|
||||||
sh "ssh -o StrictHostKeyChecking=no ${ec2Instance} ${shellCmd}"
|
sh "ssh -o StrictHostKeyChecking=no ${ec2Instance} ${shellCmd}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user