Commit 4418efc9 authored by Fernando Vazquez's avatar Fernando Vazquez

Fixed path

parent 014e3538
......@@ -111,7 +111,7 @@ pipeline {
ssh-keyscan -t rsa,dsa ${REMOTE_AGENT} >> ~/.ssh/known_hosts
ssh ${USER}@${REMOTE_AGENT} "rm -rf /artifact/*"
ssh ${USER}@${REMOTE_AGENT} "pwd"
scp target/${ARTIFACT_NAME} Dockerfile ${USER}@${REMOTE_AGENT}:/artifact
ssh ${USER}@${REMOTE_AGENT} "echo ${DOCKER_HUB_CRED_PSW} | docker login -u ${DOCKER_HUB_CRED_USR} --password-stdin"
ssh ${USER}@${REMOTE_AGENT} "docker build -t fe4vazquez/${IMAGE_NAME}:latest /artifact && docker push fe4vazquez/${IMAGE_NAME}:latest"
......
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