Commit 8a48ce24 authored by Fernando Vazquez's avatar Fernando Vazquez

Testing docker plugin

parent 207fa60e
......@@ -2,7 +2,6 @@ pipeline {
agent any
tools {
maven 'maven'
docker 'myDocker'
}
environment {
......@@ -13,6 +12,9 @@ pipeline {
NEXUS_CREDENTIAL_ID = "nexus-credentials"
USER = "root"
REMOTE_AGENT = "34.168.252.248"
registry = "fe4vazquez/hello-spring"
registryCredential = 'dockerhub_id'
dockerImage = ''
}
stages {
......@@ -103,10 +105,7 @@ pipeline {
}
stage("Build Docker Image"){
steps{
sh '''
docker build -t hello-spring .
'''
dockerImage = docker.build registry + ":test"
}
}
}
......
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