-
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
Intermittent build failures with jib-maven-plugin #4180
Comments
The exception is thrown here. I guess your project is not a But looking at this part,
the message is the underlying exception from here, so it definitely means there was an I/O error when dealing with this particular directory ( BTW, you can make Maven output debug logs and get the full stack trace with |
Thank you for taking time to respond to the query, the problem with the issue is its not consistent things are working perfectly fine now so I won't be able to regenerate it somehow all of a sudden I start getting this error and it keeps on going for a while and it again gets resolved all on its own. We are using 3.3.1 of the jib plugin can this be resolved using the higher version. Or we need to change something the way we are building our project. Yes you said it right we don't have the application getting build as a war. |
I don't think upgrading Jib will fix it. It's an error in your system where Jib is unable to read Some possibilities I can think of:
As a desperate move, you could try |
I have below jib-maven-plugin dependency added in my maven pom.xml file as below:
Usually my build runs completely fine and all images are built as expected but there are intermittent failure issues where the build starts failing and fails continuously for 2-3 days sometimes a week and then gets fixed on its own all of a sudden.
I get below error when the build fails:
Error: -04 12:46:45.430000: [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.1:dockerBuild (default-cli) on project demo-service: Obtaining project build output files failed; make sure you have compiled your project before trying to build the image. (Did you accidentally run "mvn clean jib:build" instead of "mvn clean compile jib:build"?): /codebuild/output/src3077/src/DemoService/demo-service/target/classes -> [Help 1]
Error: -04 12:46:45.430000: [ERROR]
The text was updated successfully, but these errors were encountered: