Skip to content

Commit

Permalink
May as well update a bit further and pick up the fix of JENKINS-29711…
Browse files Browse the repository at this point in the history
… as well.
  • Loading branch information
jglick committed Oct 17, 2016
1 parent abe4066 commit 3ff3b8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>
Expand Down
Expand Up @@ -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()
}
}
Expand All @@ -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()
}
}
Expand Down

0 comments on commit 3ff3b8b

Please sign in to comment.