Skip to content

Commit

Permalink
fix #4 Jenkinsfile incompatible with ci.jenkins.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewelina Wilkosz committed Nov 17, 2017
1 parent 47585d8 commit f5ec412
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
node("utility-slave") {
checkout scm
docker.withRegistry('https://index.docker.io/v1/', 'dockerhub') {
stage('Build and Deploy Docker Image') {
def docker4jcasc = docker.build("praqma/docker4jcasc:${env.BUILD_ID}", '--no-cache .')
docker4jcasc.push()
docker4jcasc.push('latest');
}
}
if(!JENKINS_URL.contains('.jenkins.io')){
node("utility-slave") {
checkout scm
docker.withRegistry('https://index.docker.io/v1/', 'dockerhub') {
stage('Build and Deploy Docker Image') {
def docker4jcasc = docker.build("praqma/docker4jcasc:${env.BUILD_ID}", '--no-cache .')
docker4jcasc.push()
docker4jcasc.push('latest');
}
}
}
}


0 comments on commit f5ec412

Please sign in to comment.