Skip to content
Permalink
Browse files

[JENKINS-32792] Fix error whith fingerprints when parent image is not…

… set

Expecting 64-char full image ID, but got
  • Loading branch information...
carlossg committed Mar 9, 2016
1 parent 0cbb39f commit 2b42838aca2f0d440d6dada06636cfcacfc0a443
Showing with 4 additions and 2 deletions.
  1. +1 −1 pom.xml
  2. +3 −1 src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java
@@ -50,7 +50,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>docker-commons</artifactId>
<version>1.0</version>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
@@ -482,12 +482,14 @@ void processFingerprints(@Nonnull String image) throws IOException, InterruptedE
return; // Bad result, cannot do anything
}
final InspectImageResponse rsp = DockerCLIHelper.parseInspectImageResponse(response.stdout);
logger.log(Level.FINEST, "Inspect image {0}: {1}", new Object[] { image, response.stdout });
if (rsp == null) {
return; // Cannot process the data
}

// Create or retrieve the fingerprint
DockerFingerprints.addFromFacet(rsp.getParent(), rsp.getId(), build);
// parent can be ""
DockerFingerprints.addFromFacet(Util.fixEmpty(rsp.getParent()), rsp.getId(), build);

}

0 comments on commit 2b42838

Please sign in to comment.
You can’t perform that action at this time.