0

We have a new Jenkins-instance build from scratch as the old one started to have issues. While moving our pipelines we have encountered strange new error while trying to run a job for Maven project. We can't seem to find out the cause of the issue.

The error in the pipeline.log:

[Pipeline] sh
+ ./mvnw -Pprod package
Downloading https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.1-bin.zip

Exception in thread "main" java.io.FileNotFoundException: /var/lib/jenkins/.m2/wrapper/dists/apache-maven-3.5.1-bin/qnlom12kfrr2j8uc1j05mrugc/apache-maven-3.5.1-bin.zip.part (No such file or directory)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
    at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(DefaultDownloader.java:69)
    at org.apache.maven.wrapper.DefaultDownloader.download(DefaultDownloader.java:60)
    at org.apache.maven.wrapper.Installer.createDist(Installer.java:64)
    at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:121)
    at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:50)

Jenkins system information: https://pastebin.com/1Ws0pQ0g

Our Jenkins runs on Ubuntu 18.04 VM

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.