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

Unable to build Android Gradle project in jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am trying to build the android project in Jenkins . But I am getting the below error
      Started by user
      Swetha
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\Sample
      > C:\Program Files\Git\cmd\git.exe rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > C:\Program Files\Git\cmd\git.exe config remote.origin.url
      https://github.qualcomm.com/ProdTools/CTA.git

      1. timeout=10
        Fetching upstream changes from
        https://github.qualcomm.com/ProdTools/CTA.git
        > C:\Program Files\Git\cmd\git.exe --version # timeout=10
        > C:\Program Files\Git\cmd\git.exe fetch --tags --progress
        https://github.qualcomm.com/ProdTools/CTA.git
        +refs/heads/:refs/remotes/origin/
        > C:\Program Files\Git\cmd\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
        > C:\Program Files\Git\cmd\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
        Checking out Revision 81b142588ada770eeacd21e9f505b838c1a90c6e (refs/remotes/origin/master)
        > C:\Program Files\Git\cmd\git.exe config core.sparsecheckout # timeout=10
        > C:\Program Files\Git\cmd\git.exe checkout -f 81b142588ada770eeacd21e9f505b838c1a90c6e
        Commit message: "Added AddResult to fta_sms for Send SMS"
        > C:\Program Files\Git\cmd\git.exe rev-list --no-walk 81b142588ada770eeacd21e9f505b838c1a90c6e # timeout=10
        [Gradle] - Launching build.
        FATAL: The Gradle wrapper has not been found in these directories: C:\Program Files (x86)\Jenkins\workspace\Sample
        Build step 'Invoke Gradle script' marked build as failure
        [android-lint] Skipping publisher since build result is FAILURE
        Sending e-mails to: vikasj@qti.qualcomm.com c_shuded@qti.qualcomm.com
        Finished: FAILURE

        Attachments

        1. jenkins.PNG
          jenkins.PNG
          113 kB
        2. jen.PNG
          jen.PNG
          117 kB
        3. gradle-wrapper.PNG
          gradle-wrapper.PNG
          107 kB

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          "The Gradle wrapper has not been found in these directories: C:\Program Files (x86)\Jenkins\workspace\Sample" is it there?

          If yes, one of potential causes is a space in the path

          Show
          oleg_nenashev Oleg Nenashev added a comment - "The Gradle wrapper has not been found in these directories: C:\Program Files (x86)\Jenkins\workspace\Sample" is it there? If yes, one of potential causes is a space in the path
          Hide
          c_shuded swetha huded added a comment -

          where can I find the graddle wrapper

           

          Show
          c_shuded swetha huded added a comment - where can I find the graddle wrapper  
          Hide
          oleg_nenashev Oleg Nenashev added a comment -
          Show
          oleg_nenashev Oleg Nenashev added a comment - Usually it is a part of the repo. https://docs.gradle.org/current/userguide/gradle_wrapper.html
          Hide
          c_shuded swetha huded added a comment -

          I added graddle wrapper path but still the same error.

          PFA

          Show
          c_shuded swetha huded added a comment - I added graddle wrapper path but still the same error. PFA
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          "Root build script" should point to executable, but you are specifying directory

          Show
          oleg_nenashev Oleg Nenashev added a comment - "Root build script" should point to executable, but you are specifying directory
          Hide
          c_shuded swetha huded added a comment -

          I provided gradle-wrapper.jar but still the same error

          Show
          c_shuded swetha huded added a comment - I provided gradle-wrapper.jar but still the same error
          Hide
          c_shuded swetha huded added a comment -

          Show
          c_shuded swetha huded added a comment -
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Please read https://docs.gradle.org/current/userguide/gradle_wrapper.html

          It describes what is gradlew executables. JARs are not gradlew executables.

          If you have any further questions, please ask in the user mailing list. It is clearly a user configuration issue, not a defect in the plugin. I will close the issue

           

          Show
          oleg_nenashev Oleg Nenashev added a comment - Please read https://docs.gradle.org/current/userguide/gradle_wrapper.html It describes what is gradlew executables. JARs are not gradlew executables. If you have any further questions, please ask in the user mailing list. It is clearly a user configuration issue, not a defect in the plugin. I will close the issue  

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              c_shuded swetha huded
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: