Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32130

Gradle Wrapper not working when gradlew wrapper is in a subfolder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • gradle-plugin
    • None

      If the gradlew script is neither in the same folder as the build script specified by the jenkins gradle plugin nor the root workspace directory it will not be picked up. This is a problem for users of RTC SCM since it may create an additional directory based on the component name.

      Example:

      .jazz5/mycomponent
      mycomponent
          |__gradle
              |__wrapper
          |__my-project
              |__build.gradle
          |__another-folder
          |__gradlew.bat
      

      Looking at the code on github it only tries to find gradlew.bat in the root workspace directory and the same directory as build.gradle (when specified in the options).

      Note that in this directory layout the my-project is not part of a multi-project build but does not live in the component directory.

            gbois Gregory Boissinot
            mrichar2 Mark R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: