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

When Gradle Version set to (Default), cannot find "gradle"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: gradle-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.654
      Gradle plugin 1.24

      Operating System CentOS Linux release 7.2.1511 (Core)
      Gradle 2.12
    • Similar Issues:

      Description

      When one Gradle installation is defined in the the global Jenkins configuration and a job definition config.xml specifies an empty <gradleName/> element, the Gradle build fails with the following error:

      java.io.IOException: Cannot run program "gradle" (in directory "/var/lib/jenkins/jobs/<job>/workspace"): error=2, No such file or directory
      

      Specifying a Gradle installation name allows the build to succeed. Is there a name that can be given to an installation to have it be recognized as the "(Default)"?

        Attachments

          Activity

          iw Irene W created issue -
          iw Irene W made changes -
          Field Original Value New Value
          Environment Jenkins ver. 1.654
          Gradle plugin 1.24
          Jenkins ver. 1.654
          Gradle plugin 1.24

          Operating System CentOS Linux release 7.2.1511 (Core)
          Gradle 2.12
          iw Irene W made changes -
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 170051 ] JNJira + In-Review [ 183746 ]

            People

            Assignee:
            gsimpson George Simpson
            Reporter:
            iw Irene W
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: