test
Some checks failed
perso/jenkins-wdocker/master There was a failure building this commit

This commit is contained in:
Julien Cabillot 2019-06-25 18:23:22 -04:00
parent 0fe9373c56
commit b166db12a4

10
Jenkinsfile vendored
View File

@ -17,18 +17,16 @@ pipeline {
stage('Build image') {
steps{
/* This builds the actual image; synonymous to
* docker build on the command line */
app = docker.build("jcabillot/jenkins-wdocker")
sh "docker build -t jcabillot/jenkins-wdocker ."
}
}
stage('Deploy Image') {
steps{
script {
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
app.push("latest")
}
withDockerRegistry(url: 'https://registry.hub.docker.com', credentialsId: 'docker-hub-credentials') {
sh 'docker push jcabillot/jenkins-wdocker'
}
}
}
}