-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #4 Jenkinsfile incompatible with ci.jenkins.io
- Loading branch information
Ewelina Wilkosz
committed
Nov 17, 2017
1 parent
47585d8
commit f5ec412
Showing
1 changed file
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
} | ||
} | ||
} | ||
|
||
|