Commit 79ca63d0 authored by Fernando Vazquez's avatar Fernando Vazquez

test docker

parent 5356b9f6
...@@ -100,15 +100,12 @@ pipeline { ...@@ -100,15 +100,12 @@ pipeline {
} }
} }
} }
stage("Build Docker Image and Helm Deploy to Kubernetes"){ stage("Build Docker Image"){
steps{ steps{
sshagent(credentials: ['ssh-cred']){
sh ''' sh '''
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh docker build -t hello-spring .
ssh-keyscan -t rsa,dsa ${REMOTE_AGENT} >> ~/.ssh/known_hosts
ssh ${USER}@${REMOTE_AGENT} "echo hello vm!"
''' '''
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment