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

Gradle plugin fails to save selected Gradle Version in Project configuration

XMLWordPrintable

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

      Hello,

      I have to following problem with the Gradle plugin for Jenkins:

      While editing the project configuration I am able to select one of the installed Gradle versions to use for "Invoke Gradle". After saving the project configuration, the value of "Gradle Version" falls back to "(Default)".

      Since I don't have (and don't intend to have) Gradle on the path, every build fails with the following message:

      [Gradle] - Launching build.
      [i4r-hire-build] $ cmd.exe /C gradle.bat build && exit %%ERRORLEVEL%%
      'gradle.bat' is not recognized as an internal or external command,
      operable program or batch file.
      Build step 'Invoke Gradle script' changed build result to FAILURE
      Build step 'Invoke Gradle script' marked build as failure
      Recording test results
      Finished: FAILURE
      

      I am using Gradle plugin version 1.19 and Jenkins version 1.481

            gbois Gregory Boissinot
            johannesrost Johannes Rost
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: