Skip to content
Permalink
Browse files
May as well update a bit further and pick up the fix of JENKINS-29711…
… as well.
  • Loading branch information
jglick committed Oct 17, 2016
1 parent abe4066 commit 3ff3b8bfb06d722bc7f470ccf42b1016eb352fbb
Showing with 3 additions and 3 deletions.
  1. +1 −1 pom.xml
  2. +2 −2 src/main/resources/org/jenkinsci/plugins/docker/workflow/Docker.groovy
@@ -52,7 +52,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps</artifactId>
<version>2.11</version>
<version>2.14</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
@@ -34,7 +34,7 @@ class Docker implements Serializable {
public <V> V withRegistry(String url, String credentialsId = null, Closure<V> body) {
node {
script.withEnv(["DOCKER_REGISTRY_URL=${url}"]) {
script.withDockerRegistry(registry: [url: url, credentialsId: credentialsId]) {
script.withDockerRegistry([url: url, credentialsId: credentialsId]) {
body()
}
}
@@ -43,7 +43,7 @@ class Docker implements Serializable {

public <V> V withServer(String uri, String credentialsId = null, Closure<V> body) {
node {
script.withDockerServer(server: [uri: uri, credentialsId: credentialsId]) {
script.withDockerServer([uri: uri, credentialsId: credentialsId]) {
body()
}
}

0 comments on commit 3ff3b8b

Please sign in to comment.