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

Running gradle wrapper causes the job to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.445 running on Windows Server 2012 R2

      Gradle project (v 8.6), when executing wrapper task:

       

      [Gradle] - Launching build.
      [windows] $ cmd.exe /C '""E:\Jenkins\jobs\javabridge-multijdk\workspace\jdk\JDK 1.8\label\windows\gradlew.bat"' wrapper && exit %%ERRORLEVEL%%"
      Starting a Gradle Daemon, 3 stopped Daemons could not be reused, use --status for details
      
      > Configure project :
      Gradle Version: 8.6
      
      > Task :wrapper
      
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
      
      You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
      
      For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
      
      BUILD SUCCESSFUL in 8s
      1 actionable task: 1 executed
      'SSPATH*' 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
      [Checks API] No suitable checks publisher found.
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Finished: FAILURE 

       

      If I add --status (wrapper --status):

      [Gradle] - Launching build.
      [windows] $ cmd.exe /C '""E:\Jenkins\jobs\javabridge-multijdk\workspace\jdk\JDK 1.8\label\windows\gradlew.bat"' wrapper --status && exit %%ERRORLEVEL%%"
      No Gradle daemons are running.
         PID STATUS   INFO
        2152 STOPPED  (by user or operating system)
        2952 STOPPED  (by user or operating system)
        4796 STOPPED  (by user or operating system)
        4188 STOPPED  (by user or operating system)
      
      Only Daemons for the current Gradle version are displayed. For more on this, please refer to https://docs.gradle.org/8.6/userguide/gradle_daemon.html#sec:status in the Gradle documentation.
      Build step 'Invoke Gradle script' changed build result to SUCCESS
      Recording test results
      [Checks API] No suitable checks publisher found.
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Finished: SUCCESS 

            Unassigned Unassigned
            amariottini Andrea Mariottini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: