Environment variable injected after daemon creation are not visible anymore since 8.8

Current Behavior
Since gradle 8.8 is not possible anymore to use sonarqube plugin for jenkins with a gradle project.
The jenkins plugin inject environment variable to deal with Sonarqube connection and authentication (SONAR_HOST_URL and ``SONARQUBE_SCANNER_PARAMS) into a withSonarQubeEnv` DSL method, so for example :
stage('build') {
    sh '.gradlew assemble'
}
stage('SonarQube') {
    withSonarQubeEnv('my-sonar') {
       sh '.gradlew sonar'
    }
}

This lead to an error : SonarQube server [http://localhost:9000] can not be reached
It means than the SONAR_HOST_URL environment variable is not readed anymore from gradle context.
As a workaround it works if i had --no-daemon flag to the sonar task call.
I open this thread in sonarsource community forum.
Expected Behavior
The expected behaviour is that the sonarqube plugin for jenkins works without -no-daemon with gradle 8.8+
Context (optional)
No response
Self-contained Reproducer Project
With a simple gradle project, create a jenkins pipeline which use sonarqube plugin, as it's indicated in the official SonarQube Documentation
With gradle version < 8.8 it will be ok, and with gradle >= 8.8 you will have the following error :  SonarQube server [http://localhost:9000] can not be reached
Gradle version
8.8
Gradle version that used to work
8.7
Build scan URL (optional)
No response
Your Environment (optional)
No response

We appreciate the effort, but we must ask for more information so that we can triage it.
We do not see an immediate root cause, and we need a minimal reproducible example for the triage. If we have a reproducer project, we may be also able to suggest workarounds or ways to avoid the problem.
The ideal way to provide a reproducer project is to leverage our reproducer template. You can also use Gradle Project Replicator to reproduce the structure of your project.
This issue will be closed after 7 days unless you provide more information.

Indeed, there might be unexpected side effects related to changes in 8.8. However, it's unclear what exactly happens inside the Jenkins Plugin you provided the link to. Can you please try reproducing its behavior in an isolated way and provide us an isolated reproducer so we can exclude any issues related to the plugin and investigate the root cause?

This reminds me of

https://github.com/gradle/gradle/issues/10483
However, it's not clear if those are connected.

I was not able to reproduce it:
$ java --version
openjdk 17.0.9 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)

$ sdk use gradle 8.7

$ FOO=BAR gradle --no-daemon printEnvironmentVariables | grep FOO > /dev/null; echo $?
0

$ FOO=BAR gradle  printEnvironmentVariables | grep FOO > /dev/null; echo $?
0

$ sdk use gradle 8.8

$ FOO=BAR gradle --no-daemon printEnvironmentVariables | grep FOO > /dev/null; echo $?
0

$ FOO=BAR gradle  printEnvironmentVariables | grep FOO > /dev/null; echo $?
0

@gregoryboue Can you reproduce it without Jenkins involved?

Hi folks, I also ran into this issue and managed to narrow it down. Not sure if this classifies as a valid reproducer, but the issue is repoducible when running the build on a (docker) jenkins slave.
 Working directory: /home/gradle/.gradle/daemon/8.11.1 Command: /opt/java/openjdk/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /opt/gradle/lib/gradle-daemon-main-8.11.1.jar -javaagent:/opt/gradle/lib/agents/gradle-instrumentation-agent-8.11.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.11.1
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 1.01 secs.
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting build in new daemon [memory: 512 MiB]
Using 16 worker leases.
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.5, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.5+11-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.5+11-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
Caching disabled for Groovy DSL script compilation (cp_settings) because:
  Build cache is disabled
  Not worth caching.
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using SubsetScriptTransformer.
Caching disabled for Groovy DSL script compilation (settings) because:
  Build cache is disabled
  Not worth caching.
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using BuildScriptTransformer.
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#70,Execution worker Thread 4,5,main]) started.
:help (Thread[#66,included builds,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=000c69ca15b5
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/14/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.5+11
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts
EXECUTOR_NUMBER=1
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests
BUILD_DISPLAY_NAME=#14
JOB_BASE_NAME=test-job
HUDSON_HOME=/var/jenkins_home
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=14
BUILD_TAG=jenkins-test-job-14
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=14
MY_ENV_VAR=first
JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31
RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect
GRADLE_VERSION=8.11.1
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting 2nd build in daemon [uptime: 5.673 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 10% of 384 MiB]
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#95,Execution worker,5,main]) started.
:help (Thread[#96,Execution worker Thread 2,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=000c69ca15b5
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/14/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.5+11
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts
EXECUTOR_NUMBER=1
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests
BUILD_DISPLAY_NAME=#14
JOB_BASE_NAME=test-job
HUDSON_HOME=/var/jenkins_home
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=14
BUILD_TAG=jenkins-test-job-14
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=14
MY_ENV_VAR=second
JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31
RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect
GRADLE_VERSION=8.11.1
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting 3rd build in daemon [uptime: 7.263 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 10% of 384 MiB]
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#122,Execution worker,5,main]) started.
:help (Thread[#122,Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 975ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Gradle #2)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=000c69ca15b5
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/14/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.5+11
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts
EXECUTOR_NUMBER=1
STAGE_NAME=Gradle #2
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests
BUILD_DISPLAY_NAME=#14
JOB_BASE_NAME=test-job
HUDSON_HOME=/var/jenkins_home
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=14
BUILD_TAG=jenkins-test-job-14
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=14
MY_ENV_VAR=set from Gradle #2
JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31
RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect
GRADLE_VERSION=8.11.1
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting 4th build in daemon [uptime: 9.109 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 11% of 384 MiB]
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#149,Execution worker,5,main]) started.
:help (Thread[#154,Execution worker Thread 6,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

 Working directory: /home/gradle/.gradle/daemon/8.7 Command: /opt/java/openjdk/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /opt/gradle/lib/gradle-launcher-8.7.jar -javaagent:/opt/gradle/lib/agents/gradle-instrumentation-agent-8.7.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.7
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 2.433 secs.
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting build in new daemon [memory: 512 MiB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
File system watching is not available: File events on Linux are only supported with glibc
Using 16 worker leases.
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
Caching disabled for Groovy DSL script compilation (cp_settings) because:
  Build cache is disabled
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using SubsetScriptTransformer.
Caching disabled for Groovy DSL script compilation (settings) because:
  Build cache is disabled
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using BuildScriptTransformer.
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#66,Execution worker,5,main]) started.
:help (Thread[#66,Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 12s
1 actionable task: 1 executed
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=26d647959ad8
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/15/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.3+9
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts
EXECUTOR_NUMBER=0
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests
BUILD_DISPLAY_NAME=#15
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=15
BUILD_TAG=jenkins-test-job-15
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=15
MY_ENV_VAR=first
JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08
RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect
GRADLE_VERSION=8.7
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /home/gradle/.gradle/native
Initialized jansi services in: /home/gradle/.gradle/native
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting 2nd build in daemon [uptime: 12.197 secs, performance: 97%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 8% of 384 MiB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=first, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#94,Execution worker,5,main]) started.
:help (Thread[#102,Execution worker Thread 9,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=26d647959ad8
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/15/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.3+9
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts
EXECUTOR_NUMBER=0
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests
BUILD_DISPLAY_NAME=#15
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=15
BUILD_TAG=jenkins-test-job-15
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=15
MY_ENV_VAR=second
JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08
RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect
GRADLE_VERSION=8.7
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /home/gradle/.gradle/native
Initialized jansi services in: /home/gradle/.gradle/native
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting 3rd build in daemon [uptime: 13.776 secs, performance: 97%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 9% of 384 MiB]
Using 16 worker leases.
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=second, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#121,Execution worker,5,main]) started.
:help (Thread[#128,Execution worker Thread 8,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 781ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Gradle #2)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=26d647959ad8
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/15/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.3+9
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts
EXECUTOR_NUMBER=0
STAGE_NAME=Gradle #2
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests
BUILD_DISPLAY_NAME=#15
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=15
BUILD_TAG=jenkins-test-job-15
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=15
MY_ENV_VAR=set from Gradle #2
JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08
RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect
GRADLE_VERSION=8.7
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /home/gradle/.gradle/native
Initialized jansi services in: /home/gradle/.gradle/native
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting 4th build in daemon [uptime: 15.344 secs, performance: 97%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 9% of 384 MiB]
Using 16 worker leases.
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle #2, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=set from Gradle #2, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#148,Execution worker,5,main]) started.
:help (Thread[#148,Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 831ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
$ docker stop --time=1 26d647959ad8ec69d4b6b664a19d4e82899a2addce8bce12271c8484a0942bd9
$ docker rm -f --volumes 26d647959ad8ec69d4b6b664a19d4e82899a2addce8bce12271c8484a0942bd9
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

Hi @ov7a, I also ran into this issue and managed to narrow it down. Not sure if this classifies as a valid reproducer, but the issue is repoducible when running the build on a (docker) jenkins agent.
 Working directory: /home/gradle/.gradle/daemon/8.11.1 Command: /opt/java/openjdk/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /opt/gradle/lib/gradle-daemon-main-8.11.1.jar -javaagent:/opt/gradle/lib/agents/gradle-instrumentation-agent-8.11.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.11.1
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 1.01 secs.
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting build in new daemon [memory: 512 MiB]
Using 16 worker leases.
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.5, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.5+11-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.5+11-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
Caching disabled for Groovy DSL script compilation (cp_settings) because:
  Build cache is disabled
  Not worth caching.
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using SubsetScriptTransformer.
Caching disabled for Groovy DSL script compilation (settings) because:
  Build cache is disabled
  Not worth caching.
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using BuildScriptTransformer.
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#70,Execution worker Thread 4,5,main]) started.
:help (Thread[#66,included builds,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=000c69ca15b5
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/14/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.5+11
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts
EXECUTOR_NUMBER=1
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests
BUILD_DISPLAY_NAME=#14
JOB_BASE_NAME=test-job
HUDSON_HOME=/var/jenkins_home
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=14
BUILD_TAG=jenkins-test-job-14
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=14
MY_ENV_VAR=first
JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31
RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect
GRADLE_VERSION=8.11.1
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting 2nd build in daemon [uptime: 5.673 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 10% of 384 MiB]
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#95,Execution worker,5,main]) started.
:help (Thread[#96,Execution worker Thread 2,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=000c69ca15b5
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/14/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.5+11
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts
EXECUTOR_NUMBER=1
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests
BUILD_DISPLAY_NAME=#14
JOB_BASE_NAME=test-job
HUDSON_HOME=/var/jenkins_home
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=14
BUILD_TAG=jenkins-test-job-14
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=14
MY_ENV_VAR=second
JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31
RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect
GRADLE_VERSION=8.11.1
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting 3rd build in daemon [uptime: 7.263 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 10% of 384 MiB]
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#122,Execution worker,5,main]) started.
:help (Thread[#122,Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 975ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Gradle #2)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=000c69ca15b5
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/14/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.5+11
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts
EXECUTOR_NUMBER=1
STAGE_NAME=Gradle #2
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests
BUILD_DISPLAY_NAME=#14
JOB_BASE_NAME=test-job
HUDSON_HOME=/var/jenkins_home
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=14
BUILD_TAG=jenkins-test-job-14
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=14
MY_ENV_VAR=set from Gradle #2
JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31
RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect
GRADLE_VERSION=8.11.1
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
The client will now receive all logging from the daemon (pid: 74). The daemon log file: /home/gradle/.gradle/daemon/8.11.1/daemon-74.out.log
Starting 4th build in daemon [uptime: 9.109 secs, performance: 99%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 11% of 384 MiB]
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=0fbafe76-16c4-4a4b-a93b-71c3bba8cf31, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.11.1, BUILD_DISPLAY_NAME=#14, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-gradle-cli-main-8.11.1.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=14, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/14/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.5+11, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-14, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=1, BUILD_NUMBER=14, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/14/display/redirect?page=tests, HOSTNAME=000c69ca15b5}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#149,Execution worker,5,main]) started.
:help (Thread[#154,Execution worker Thread 6,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 984ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
$ docker stop --time=1 000c69ca15b55f07abee1c01571ad72d3ab1f46d3c1825ba8e090b2fd945e5a4
$ docker rm -f --volumes 000c69ca15b55f07abee1c01571ad72d3ab1f46d3c1825ba8e090b2fd945e5a4
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

Gradle 8.11.1 (Jenkins controller)
Jenkinsfile
pipeline {

    agent any

    environment {
        MY_ENV_VAR = 'initial'
    }

    tools {
        gradle "GRADLE_8_11"
    }

    stages {
        stage('Gradle') {
            steps {
                writeFile(file: "settings.gradle", text: "println System.getenv()", encoding: "UTF-8")
                sh "env"
                sh "gradle help --info"
                withEnv(['MY_ENV_VAR=first']) {
                    sh "env"
                    sh "gradle help --info"
                }
                withEnv(['MY_ENV_VAR=second']) {
                    sh "env"
                    sh "gradle help --info"
                }
            }
        }
        stage('Gradle #2') {
            environment {
                MY_ENV_VAR = 'set from Gradle #2'
            }
            steps {
                sh "env"
                sh "gradle help --info"
            }
        }
    }

}

Output
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/test-job
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Gradle)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] writeFile
[Pipeline] sh
+ env
JENKINS_HOME=/var/jenkins_home
HTTPS_PROXY=http://webproxy:8080
JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
CI=true
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes
HOSTNAME=61b17d9a02db
CURL_RETRY_DELAY=5
NODE_LABELS=built-in master
HUDSON_URL=http://jenkins/
SHLVL=0
HOME=/var/jenkins_home
NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com
BUILD_URL=http://jenkins/job/test-job/16/
HUDSON_COOKIE=303a427c-3ac8-49a6-8cfc-cb8690bbe3dc
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
JENKINS_UC=https://updates.jenkins.io
WORKSPACE=/var/jenkins_home/workspace/test-job
REF=/usr/share/jenkins/ref
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts
STAGE_NAME=Gradle
EXECUTOR_NUMBER=0
JENKINS_VERSION=2.479.1
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests
JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals
BUILD_DISPLAY_NAME=#16
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=16
JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin
BUILD_TAG=jenkins-test-job-16
LANG=C.UTF-8
JENKINS_URL=http://jenkins/
JOB_URL=http://jenkins/job/test-job/
MY_ENV_VAR=initial
BUILD_NUMBER=16
JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017
RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect
JENKINS_SLAVE_AGENT_PORT=50000
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
JOB_NAME=test-job
COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
HTTP_PROXY=http://webproxy:8080
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /var/jenkins_home/.gradle/native
Initialized jansi services in: /var/jenkins_home/.gradle/native
Removing 0 daemon stop events from registry
Starting a Gradle Daemon (subsequent builds will be faster)
Starting process 'Gradle build daemon'. Working directory: /var/jenkins_home/.gradle/daemon/8.11.1 Command: /opt/java/openjdk/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/lib/gradle-daemon-main-8.11.1.jar -javaagent:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/lib/agents/gradle-instrumentation-agent-8.11.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.11.1
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.916 secs.
The client will now receive all logging from the daemon (pid: 19597). The daemon log file: /var/jenkins_home/.gradle/daemon/8.11.1/daemon-19597.out.log
Starting build in new daemon [memory: 512 MiB]
Using 16 worker leases.
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=17.0.13, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=17.0.13+11, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=17.0.13+11, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
Watching the file system is configured to be enabled if available
Not watching /var/jenkins_home/workspace/test-job since the file system is not supported
File system watching is active
Starting Build
{PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com, COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log, MY_ENV_VAR=initial, RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect, HUDSON_HOME=/var/jenkins_home, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes, JOB_URL=http://jenkins/job/test-job/, JAVA_HOME=/opt/java/openjdk, HUDSON_COOKIE=24790427-40c8-48e8-aaf1-4c8ef0c68426, JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin, JENKINS_VERSION=2.479.1, BUILD_ID=16, HTTP_PROXY=http://webproxy:8080, LANG=C.UTF-8, JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017, JOB_NAME=test-job, CURL_RETRY_DELAY=5, NODE_LABELS=built-in master, HTTPS_PROXY=http://webproxy:8080, HUDSON_URL=http://jenkins/, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, WORKSPACE=/var/jenkins_home/workspace/test-job, JENKINS_SLAVE_AGENT_PORT=50000, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests, PWD=/var/jenkins_home/workspace/test-job, JENKINS_URL=http://jenkins/, BUILD_TAG=jenkins-test-job-16, STAGE_NAME=Gradle, CI=true, EXECUTOR_NUMBER=0, JENKINS_UC=https://updates.jenkins.io, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, JOB_BASE_NAME=test-job, JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals, JENKINS_HOME=/var/jenkins_home, REF=/usr/share/jenkins/ref, BUILD_NUMBER=16, NODE_NAME=built-in, HOSTNAME=61b17d9a02db, BUILD_URL=http://jenkins/job/test-job/16/, BUILD_DISPLAY_NAME=#16, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental, HOME=/var/jenkins_home, SHLVL=0}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[Execution worker,5,main]) started.
:help (Thread[Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 3s
1 actionable task: 1 executed
Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
JENKINS_HOME=/var/jenkins_home
HTTPS_PROXY=http://webproxy:8080
JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
CI=true
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes
HOSTNAME=61b17d9a02db
CURL_RETRY_DELAY=5
NODE_LABELS=built-in master
HUDSON_URL=http://jenkins/
SHLVL=0
HOME=/var/jenkins_home
NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com
BUILD_URL=http://jenkins/job/test-job/16/
HUDSON_COOKIE=c1cbcf66-3289-4186-be66-dee2a04080ad
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
JENKINS_UC=https://updates.jenkins.io
WORKSPACE=/var/jenkins_home/workspace/test-job
REF=/usr/share/jenkins/ref
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts
STAGE_NAME=Gradle
EXECUTOR_NUMBER=0
JENKINS_VERSION=2.479.1
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests
JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals
BUILD_DISPLAY_NAME=#16
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=16
JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin
BUILD_TAG=jenkins-test-job-16
LANG=C.UTF-8
JENKINS_URL=http://jenkins/
JOB_URL=http://jenkins/job/test-job/
MY_ENV_VAR=first
BUILD_NUMBER=16
JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017
RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect
JENKINS_SLAVE_AGENT_PORT=50000
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
JOB_NAME=test-job
COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
HTTP_PROXY=http://webproxy:8080
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /var/jenkins_home/.gradle/native
Initialized jansi services in: /var/jenkins_home/.gradle/native
The client will now receive all logging from the daemon (pid: 19597). The daemon log file: /var/jenkins_home/.gradle/daemon/8.11.1/daemon-19597.out.log
Starting 2nd build in daemon [uptime: 3.95 secs, performance: 100%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 10% of 384 MiB]
Using 16 worker leases.
Not watching /var/jenkins_home/workspace/test-job since the file system is not supported
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
{PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com, COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log, MY_ENV_VAR=first, RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect, HUDSON_HOME=/var/jenkins_home, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes, JOB_URL=http://jenkins/job/test-job/, JAVA_HOME=/opt/java/openjdk, HUDSON_COOKIE=3f2f6d84-60ea-4ffb-af6e-bb2c385bdfc1, JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin, JENKINS_VERSION=2.479.1, BUILD_ID=16, HTTP_PROXY=http://webproxy:8080, LANG=C.UTF-8, JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017, JOB_NAME=test-job, CURL_RETRY_DELAY=5, NODE_LABELS=built-in master, HTTPS_PROXY=http://webproxy:8080, HUDSON_URL=http://jenkins/, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, WORKSPACE=/var/jenkins_home/workspace/test-job, JENKINS_SLAVE_AGENT_PORT=50000, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests, PWD=/var/jenkins_home/workspace/test-job, JENKINS_URL=http://jenkins/, BUILD_TAG=jenkins-test-job-16, STAGE_NAME=Gradle, CI=true, EXECUTOR_NUMBER=0, JENKINS_UC=https://updates.jenkins.io, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, JOB_BASE_NAME=test-job, JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals, JENKINS_HOME=/var/jenkins_home, REF=/usr/share/jenkins/ref, BUILD_NUMBER=16, NODE_NAME=built-in, HOSTNAME=61b17d9a02db, BUILD_URL=http://jenkins/job/test-job/16/, BUILD_DISPLAY_NAME=#16, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental, HOME=/var/jenkins_home, SHLVL=0}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[Execution worker,5,main]) started.
:help (Thread[Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 852ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
JENKINS_HOME=/var/jenkins_home
HTTPS_PROXY=http://webproxy:8080
JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
CI=true
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes
HOSTNAME=61b17d9a02db
CURL_RETRY_DELAY=5
NODE_LABELS=built-in master
HUDSON_URL=http://jenkins/
SHLVL=0
HOME=/var/jenkins_home
NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com
BUILD_URL=http://jenkins/job/test-job/16/
HUDSON_COOKIE=17735e9c-ae67-411b-938e-eabcb64bb200
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
JENKINS_UC=https://updates.jenkins.io
WORKSPACE=/var/jenkins_home/workspace/test-job
REF=/usr/share/jenkins/ref
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts
STAGE_NAME=Gradle
EXECUTOR_NUMBER=0
JENKINS_VERSION=2.479.1
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests
JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals
BUILD_DISPLAY_NAME=#16
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=16
JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin
BUILD_TAG=jenkins-test-job-16
LANG=C.UTF-8
JENKINS_URL=http://jenkins/
JOB_URL=http://jenkins/job/test-job/
MY_ENV_VAR=second
BUILD_NUMBER=16
JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017
RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect
JENKINS_SLAVE_AGENT_PORT=50000
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
JOB_NAME=test-job
COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
HTTP_PROXY=http://webproxy:8080
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /var/jenkins_home/.gradle/native
Initialized jansi services in: /var/jenkins_home/.gradle/native
The client will now receive all logging from the daemon (pid: 19597). The daemon log file: /var/jenkins_home/.gradle/daemon/8.11.1/daemon-19597.out.log
Starting 3rd build in daemon [uptime: 5.288 secs, performance: 100%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 11% of 384 MiB]
Using 16 worker leases.
Not watching /var/jenkins_home/workspace/test-job since the file system is not supported
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
{PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com, COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log, MY_ENV_VAR=second, RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect, HUDSON_HOME=/var/jenkins_home, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes, JOB_URL=http://jenkins/job/test-job/, JAVA_HOME=/opt/java/openjdk, HUDSON_COOKIE=9420ece5-e775-47ea-8e8f-776d66c7402e, JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin, JENKINS_VERSION=2.479.1, BUILD_ID=16, HTTP_PROXY=http://webproxy:8080, LANG=C.UTF-8, JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017, JOB_NAME=test-job, CURL_RETRY_DELAY=5, NODE_LABELS=built-in master, HTTPS_PROXY=http://webproxy:8080, HUDSON_URL=http://jenkins/, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, WORKSPACE=/var/jenkins_home/workspace/test-job, JENKINS_SLAVE_AGENT_PORT=50000, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests, PWD=/var/jenkins_home/workspace/test-job, JENKINS_URL=http://jenkins/, BUILD_TAG=jenkins-test-job-16, STAGE_NAME=Gradle, CI=true, EXECUTOR_NUMBER=0, JENKINS_UC=https://updates.jenkins.io, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, JOB_BASE_NAME=test-job, JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals, JENKINS_HOME=/var/jenkins_home, REF=/usr/share/jenkins/ref, BUILD_NUMBER=16, NODE_NAME=built-in, HOSTNAME=61b17d9a02db, BUILD_URL=http://jenkins/job/test-job/16/, BUILD_DISPLAY_NAME=#16, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental, HOME=/var/jenkins_home, SHLVL=0}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[Execution worker,5,main]) started.
:help (Thread[Execution worker Thread 10,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.11.1/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 790ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Gradle #2)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
JENKINS_HOME=/var/jenkins_home
HTTPS_PROXY=http://webproxy:8080
JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental
CI=true
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes
HOSTNAME=61b17d9a02db
CURL_RETRY_DELAY=5
NODE_LABELS=built-in master
HUDSON_URL=http://jenkins/
SHLVL=0
HOME=/var/jenkins_home
NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com
BUILD_URL=http://jenkins/job/test-job/16/
HUDSON_COOKIE=1276db44-9372-4d9a-8159-a9f7a3028266
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
JENKINS_UC=https://updates.jenkins.io
WORKSPACE=/var/jenkins_home/workspace/test-job
REF=/usr/share/jenkins/ref
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts
STAGE_NAME=Gradle #2
EXECUTOR_NUMBER=0
JENKINS_VERSION=2.479.1
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests
JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals
BUILD_DISPLAY_NAME=#16
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=16
JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin
BUILD_TAG=jenkins-test-job-16
LANG=C.UTF-8
JENKINS_URL=http://jenkins/
JOB_URL=http://jenkins/job/test-job/
MY_ENV_VAR=set from Gradle #2
BUILD_NUMBER=16
JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017
RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect
JENKINS_SLAVE_AGENT_PORT=50000
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
JOB_NAME=test-job
COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
HTTP_PROXY=http://webproxy:8080
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /var/jenkins_home/.gradle/native
Initialized jansi services in: /var/jenkins_home/.gradle/native
The client will now receive all logging from the daemon (pid: 19597). The daemon log file: /var/jenkins_home/.gradle/daemon/8.11.1/daemon-19597.out.log
Starting 4th build in daemon [uptime: 6.876 secs, performance: 100%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 11% of 384 MiB]
Using 16 worker leases.
Not watching /var/jenkins_home/workspace/test-job since the file system is not supported
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
{PATH=/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/GRADLE_8_11/gradle-8.11.1/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, NO_PROXY=<IP_ADDRESS>,/var/run/docker.sock,localhost,<IP_ADDRESS>,.amazonaws.com,.amazon.com, COPY_REFERENCE_FILE_LOG=/var/jenkins_home/copy_reference_file.log, MY_ENV_VAR=set from Gradle #2, RUN_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect, HUDSON_HOME=/var/jenkins_home, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=changes, JOB_URL=http://jenkins/job/test-job/, JAVA_HOME=/opt/java/openjdk, HUDSON_COOKIE=649855a7-360b-42ac-ac33-a4fe1229beac, JAVA_OPTS=-Djenkins.install.runSetupWizard=false -Dhudson.slaves.WorkspaceList=_job_ -Duser.timezone=Europe/Berlin, JENKINS_VERSION=2.479.1, BUILD_ID=16, HTTP_PROXY=http://webproxy:8080, LANG=C.UTF-8, JENKINS_NODE_COOKIE=499e616e-bd8c-49e4-bb20-231cf4d0a017, JOB_NAME=test-job, CURL_RETRY_DELAY=5, NODE_LABELS=built-in master, HTTPS_PROXY=http://webproxy:8080, HUDSON_URL=http://jenkins/, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, WORKSPACE=/var/jenkins_home/workspace/test-job, JENKINS_SLAVE_AGENT_PORT=50000, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=tests, PWD=/var/jenkins_home/workspace/test-job, JENKINS_URL=http://jenkins/, BUILD_TAG=jenkins-test-job-16, STAGE_NAME=Gradle #2, CI=true, EXECUTOR_NUMBER=0, JENKINS_UC=https://updates.jenkins.io, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, JOB_BASE_NAME=test-job, JENKINS_INCREMENTALS_REPO_MIRROR=https://repo.jenkins-ci.org/incrementals, JENKINS_HOME=/var/jenkins_home, REF=/usr/share/jenkins/ref, BUILD_NUMBER=16, NODE_NAME=built-in, HOSTNAME=61b17d9a02db, BUILD_URL=http://jenkins/job/test-job/16/, BUILD_DISPLAY_NAME=#16, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/16/display/redirect?page=artifacts, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JENKINS_UC_EXPERIMENTAL=https://updates.jenkins.io/experimental, HOME=/var/jenkins_home, SHLVL=0}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[Execution worker,5,main]) started.
:help (Thread[Execution worker Thread 10,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.11.1.

To run a build, run gradle <task> ...

 Working directory: /home/gradle/.gradle/daemon/8.7 Command: /opt/java/openjdk/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /opt/gradle/lib/gradle-launcher-8.7.jar -javaagent:/opt/gradle/lib/agents/gradle-instrumentation-agent-8.7.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.7
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 2.433 secs.
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting build in new daemon [memory: 512 MiB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
File system watching is not available: File events on Linux are only supported with glibc
Using 16 worker leases.
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
Caching disabled for Groovy DSL script compilation (cp_settings) because:
  Build cache is disabled
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using SubsetScriptTransformer.
Caching disabled for Groovy DSL script compilation (settings) because:
  Build cache is disabled
Compiling settings file '/var/jenkins_home/workspace/test-job/settings.gradle' using BuildScriptTransformer.
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=initial, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#66,Execution worker,5,main]) started.
:help (Thread[#66,Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 12s
1 actionable task: 1 executed
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=26d647959ad8
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/15/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.3+9
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts
EXECUTOR_NUMBER=0
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests
BUILD_DISPLAY_NAME=#15
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=15
BUILD_TAG=jenkins-test-job-15
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=15
MY_ENV_VAR=first
JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08
RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect
GRADLE_VERSION=8.7
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /home/gradle/.gradle/native
Initialized jansi services in: /home/gradle/.gradle/native
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting 2nd build in daemon [uptime: 12.197 secs, performance: 97%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 8% of 384 MiB]
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Using 16 worker leases.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=first, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#94,Execution worker,5,main]) started.
:help (Thread[#102,Execution worker Thread 9,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=26d647959ad8
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/15/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.3+9
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts
EXECUTOR_NUMBER=0
STAGE_NAME=Gradle
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests
BUILD_DISPLAY_NAME=#15
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=15
BUILD_TAG=jenkins-test-job-15
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=15
MY_ENV_VAR=second
JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08
RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect
GRADLE_VERSION=8.7
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /home/gradle/.gradle/native
Initialized jansi services in: /home/gradle/.gradle/native
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting 3rd build in daemon [uptime: 13.776 secs, performance: 97%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 9% of 384 MiB]
Using 16 worker leases.
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=second, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#121,Execution worker,5,main]) started.
:help (Thread[#128,Execution worker Thread 8,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 781ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Gradle #2)
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ env
LANGUAGE=en_US:en
CI=true
HOSTNAME=26d647959ad8
RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes
HUDSON_URL=http://jenkins/
NODE_LABELS=built-in master
SHLVL=2
HOME=/home/gradle
BUILD_URL=http://jenkins/job/test-job/15/
JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71
GRADLE_HOME=/opt/gradle
WORKSPACE=/var/jenkins_home/workspace/test-job
JAVA_VERSION=jdk-21.0.3+9
NODE_NAME=built-in
RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts
EXECUTOR_NUMBER=0
STAGE_NAME=Gradle #2
RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests
BUILD_DISPLAY_NAME=#15
HUDSON_HOME=/var/jenkins_home
JOB_BASE_NAME=test-job
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
BUILD_ID=15
BUILD_TAG=jenkins-test-job-15
JENKINS_URL=http://jenkins/
LANG=en_US.UTF-8
JOB_URL=http://jenkins/job/test-job/
BUILD_NUMBER=15
MY_ENV_VAR=set from Gradle #2
JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08
RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect
GRADLE_VERSION=8.7
HUDSON_SERVER_COOKIE=f0d0fc76adbae821
JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect
CLASSPATH=
JOB_NAME=test-job
LC_ALL=en_US.UTF-8
JAVA_HOME=/opt/java/openjdk
PWD=/var/jenkins_home/workspace/test-job
WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp
[Pipeline] sh
+ gradle help --info
Initialized native services in: /home/gradle/.gradle/native
Initialized jansi services in: /home/gradle/.gradle/native
Received JVM installation metadata from '/opt/java/openjdk': {JAVA_HOME=/opt/java/openjdk, JAVA_VERSION=21.0.3, JAVA_VENDOR=Eclipse Adoptium, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+9-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+9-LTS, VM_VENDOR=Eclipse Adoptium, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 77). The daemon log file: /home/gradle/.gradle/daemon/8.7/daemon-77.out.log
Starting 4th build in daemon [uptime: 15.344 secs, performance: 97%, GC rate: 0.00/s, heap usage: 0% of 512 MiB, non-heap usage: 9% of 384 MiB]
Using 16 worker leases.
Closing daemon's stdin at end of input.
The daemon will no longer process any standard input.
Watching the file system is configured to be enabled if available
File system watching is inactive
Starting Build
{STAGE_NAME=Gradle #2, NODE_LABELS=built-in master, JENKINS_NODE_COOKIE=815e93f5-a06d-4c80-9bf4-d9b62b980b08, WORKSPACE_TMP=/var/jenkins_home/workspace/test-job_job_tmp, GRADLE_VERSION=8.7, BUILD_DISPLAY_NAME=#15, SHLVL=3, CLASSPATH=/opt/gradle/lib/gradle-launcher-8.7.jar, JOB_URL=http://jenkins/job/test-job/, LC_ALL=en_US.UTF-8, JOB_NAME=test-job, BUILD_ID=15, HUDSON_URL=http://jenkins/, BUILD_URL=http://jenkins/job/test-job/15/, HOME=/home/gradle, HUDSON_SERVER_COOKIE=f0d0fc76adbae821, RUN_ARTIFACTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=artifacts, RUN_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect, PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, JOB_DISPLAY_URL=http://jenkins/job/test-job/display/redirect, JAVA_VERSION=jdk-21.0.3+9, HUDSON_HOME=/var/jenkins_home, BUILD_TAG=jenkins-test-job-15, LANG=en_US.UTF-8, NODE_NAME=built-in, JENKINS_SERVER_COOKIE=durable-6f16bdfc03e74bd41f52188d57c5f1fbe10305a19f5583dc72ccd1cff389ee71, LANGUAGE=en_US:en, MY_ENV_VAR=set from Gradle #2, JAVA_HOME=/opt/java/openjdk, CI=true, RUN_CHANGES_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=changes, JOB_BASE_NAME=test-job, JENKINS_URL=http://jenkins/, WORKSPACE=/var/jenkins_home/workspace/test-job, EXECUTOR_NUMBER=0, BUILD_NUMBER=15, LD_LIBRARY_PATH=/opt/java/openjdk/lib/server:/opt/java/openjdk/lib:/opt/java/openjdk/../lib, GRADLE_HOME=/opt/gradle, PWD=/var/jenkins_home/workspace/test-job, RUN_TESTS_DISPLAY_URL=http://jenkins/job/test-job/15/display/redirect?page=tests, HOSTNAME=26d647959ad8}
Settings evaluated using settings file '/var/jenkins_home/workspace/test-job/settings.gradle'.
Projects loaded. Root project using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
Included projects: [root project 'test-job']

> Configure project :
Evaluating root project 'test-job' using build file '/var/jenkins_home/workspace/test-job/build.gradle'.
All projects evaluated.
Task name matched 'help'
Selected primary task 'help' from project :
Tasks to be executed: [task ':help']
Tasks that were excluded: []
Resolve mutations for :help (Thread[#148,Execution worker,5,main]) started.
:help (Thread[#148,Execution worker,5,main]) started.

> Task :help
Caching disabled for task ':help' because:
  Build cache is disabled
Task ':help' is not up-to-date because:
  Task has not declared any outputs despite executing actions.

Welcome to Gradle 8.7.

To run a build, run gradle <task> ...

To see a list of available tasks, run gradle tasks

To see more detail about a task, run gradle help --task <task>

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.7/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 831ms
1 actionable task: 1 executed
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
$ docker stop --time=1 26d647959ad8ec69d4b6b664a19d4e82899a2addce8bce12271c8484a0942bd9
$ docker rm -f --volumes 26d647959ad8ec69d4b6b664a19d4e82899a2addce8bce12271c8484a0942bd9
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

Can we at least reopen this? This is a valid blocker for upgrade past 8.7 for anyone who uses Jenkins (including myself).

The issue is caused by the usage of Alpine Linux, where native services of gradle are not fully supported. A decision was made in Gradle 8.8 to fully disable them:

https://github.com/gradle/gradle/issues/28243

The environment variables propagation relies on the usage of this native integration.
We actually fixed it for 8.12

https://github.com/gradle/gradle/issues/30885

You are welcome to try our latest nightly build of 8.12 or use a non Alpine base image.