-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven jib:build fails if <outputPaths> contain non-existing directories #3789
Comments
Currently As a workaround (if this setup within |
Thanks for the clarification and the workaround. I hadn't read it that way from the documentation. I came across the issue because when you specify a custom directory for the tarball and run
BTW: In the jib-maven-plugin/README.md is a minor typo in the text about 'Additional Build Artifacts'. It talks about jib/jib-maven-plugin/README.md Line 236 in eccebd0
|
Ah, you are right - writing to tarball does have an additional step here to create parent directories if they do not exist. I don’t think this is currently supported for
Yes - thank you for catching this! |
Environment:
Description of the issue:
jib:build fails if you specify
<outputPaths>
which contain non-existing directories.For example the POM contains the following jib-maven-pluging configuration:
It fails with
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.0:build (default-cli) on project helloworld: /workspace/jib/examples/helloworld/target/target/nonExistingDirectory/image.digest
Expected behavior:
jib:build creates directories specified in
outputPaths
and completes successful.Steps to reproduce:
<outputPaths>
config from above and replace<to><image>
accordinglymvn compile jib:build
Log output:
Additional information:
Running
mvn -e compile jib:build
traces down the exception toJibBuildRunner.java:237
. Here aFiles.write(imageDigestOutputPath, imageDigest.getBytes(StandardCharsets.UTF_8));
is executed, which fails if a directory in theimageDigestOutputPath
does not exist.The text was updated successfully, but these errors were encountered: