From 5c7e2300b19dd11c31cf4d73824a41bc351928c3 Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 12:53:07 -0700 Subject: [PATCH] ssh_creds --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 534ed58..d57f6f9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,7 +33,7 @@ pipeline{ steps { // Deploy to remote Docker host sshagent(['ssh_creds']) { - sh "ssh-copy-id -o StrictHostKeyChecking=no -i .ssh/id_rsa.pub administrator@172.16.11.90 && ssh -o StrictHostKeyChecking=no administrator@172.16.11.90 'docker stop --name docker-test-image && docker pull aisthanestha/docker-test-image:latest && docker run -d -p 8082:80 --name docker-test-image:latest'" + sh "ssh -o StrictHostKeyChecking=no administrator@172.16.11.90 'docker stop --name docker-test-image && docker pull aisthanestha/docker-test-image:latest && docker run -d -p 8082:80 --name docker-test-image:latest'" } } }