Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7009177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:49:46+00:00 2026-05-27T21:49:46+00:00

I am trying to setup a build on our Jenkins server to run a

  • 0

I am trying to setup a build on our Jenkins server to run a fork of the hibernate-core project.

I have been able to get Jenkins to do the git clone to get a local repository from my github fork, but when Jenkins tries to run the ‘gradlew’ command it fails.

When running this script directly from the checked out folder the build runs as expected, but when launching the script via Jenkins it fails.

The job is configured as a Freestyle configuration with the build step setup as an “execute shell” step.

The build step runs the following command.

./gradlew clean test install buildReleaseBundles uploadArchives --debug --stacktrace

It seems that the gradlew script is being executed but within the gradle Download class something goes wrong.

My build script outputs the following:

Building on master
Checkout:workspace / /data/hudson/jobs/hibernate-envers-stevemac/workspace - hudson.remoting.LocalChannel@63e4f703
Using strategy: Default
Last Built Revision: Revision 7cdb4c829f28c5b029a3d43f50a54d4c89fc9665 (origin/Branch_4.0.0.Final)
Checkout:workspace / /data/hudson/jobs/hibernate-envers-stevemac/workspace - hudson.remoting.LocalChannel@63e4f703
Fetching changes from 1 remote Git repository
Fetching upstream changes from https://stevemac007@github.com/stevemac007/hibernate-core.git
Commencing build of Revision 7cdb4c829f28c5b029a3d43f50a54d4c89fc9665 (origin/Branch_4.0.0.Final)
Checking out Revision 7cdb4c829f28c5b029a3d43f50a54d4c89fc9665 (origin/Branch_4.0.0.Final)
[workspace] $ /bin/sh -xe /tmp/tomcat6-tmp/hudson9191971611159378903.sh
+ ./gradlew clean test install buildReleaseBundles uploadArchives --debug --stacktrace
Downloading http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-bin.zip

Exception in thread "main" java.io.FileNotFoundException: /usr/share/tomcat6/.gradle/wrapper/dists/gradle-1.0-milestone-3-bin.zip.part (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
    at org.gradle.wrapper.Download.downloadInternal(Download.java:46)
    at org.gradle.wrapper.Download.download(Download.java:37)
    at org.gradle.wrapper.Install.createDist(Install.java:54)
    at org.gradle.wrapper.Wrapper.execute(Wrapper.java:80)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:37)
Build step 'Execute shell' marked build as failure
Finished: FAILURE
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:49:47+00:00Added an answer on May 27, 2026 at 9:49 pm

    As normal with this sort of question, the actual asking of it caused me to re-read the message correctly and look for the result.

    And in this case all of the information I needed was there.

    FileNotFoundException: /usr/share/tomcat6/.gradle/wrapper/dists/gradle-1.0-milestone-3-bin.zip.part (No such file or directory)

    The issue is the user that runs the Jenkins job was not the same user I was running the job on the server as, and the job didn’t have write access to the /usr/share/tomcat6/ folder.

    Granting write access for the tomcat6 user to /usr/share/tomcat6 allowed this job to run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF project and I'm trying to setup a NAnt build script
I am trying to setup a TeamCity 4.0 build server to run VS2008 (non-TFS)
I'm trying to setup a continuous integration build on TFS 2008. In the project
I am trying to setup a shared authentication system on a build server. We
I'm trying to setup an automated build server for my rails projects using Hudson
I have an out-of-source build setup with cmake and I am trying to generate
We are trying to use Nuget for our internally generated packages. We have setup
I'm trying to improve our build process, and to that end I've been looking
We have a Flex 4.0 project in our product and we're trying to set
I've been trying to find a guide on how to get Team Foundation Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.