Unable to perform build on Openshift application when using Jenkins.
Issue
-
Unable to perform build on Openshift application when using Jenkins.
-
How to add extra storage to the jenkins gear on Openshift.
-
How to resolve issue when Jenkins ran out of space and following error is seen in jenkins log:
ERROR: Failed to archive artifacts: webapps/**
hudson.util.IOException2: hudson.util.IOException2: Failed to extract /var/lib/openshift/<GEAR-UUID>/app-root/runtime/repo/webapps/**
at hudson.FilePath.readFromTar(FilePath.java:2014)
at hudson.FilePath.copyRecursiveTo(FilePath.java:1926)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:137)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
at hudson.model.Run.execute(Run.java:1600)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: java.io.IOException: Disk quota exceeded
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:345)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1026)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
at hudson.util.IOUtils.copy(IOUtils.java:37)
at hudson.FilePath.readFromTar(FilePath.java:2004)
... 11 more
- This issue can present its self with the following message as well.
Caused by: java.io.FileNotFoundException:
/var/lib/openshift/<GEAR-UUID>/app-root/data/jobs/railsjenkins-build/builds/2014-10-20_17-32-08/archive/vendor/bundle/ruby/1.9.1/\
gems/rack-1.4.5/lib/rack/deflater.rb
(Disk quota exceeded)
Environment
- Openshift Online
- OpenShift Enterprise
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.