Gradle task hold proccess and Jenkins job never stop


(Michael Maurer) #1

Hi, I am trying to deploy with Jenkins V2.89.2 and Gradle V3.2 .

gradle clean --no-daemon -d -x test build 

My Problem is that gradle always hold the proccess and the jenkins pipeline can’t start the next stage.
The only way to transship the Problem is to use:

gradle clean --no-daemon -d -x test build  & (sleep 600 ; gradle -d --stop)

13:27:31.750 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starti g to execute task ':backend:build’
13:27:31.750 [INFO] [org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter] Skipping task ‘:backend:build’ as it has no actions.
13:27:31.750 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':backend:build’
13:27:31.750 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :backend:build (Thread[main,5,main]) completed. Took 0.0 secs.
13:27:31.750 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.14 completed (0 in use)
13:27:31.750 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 46.168 secs, idle: 0.003 secs
13:27:31.750 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskGraphExecuter] Timing: Executing the DAG took 46.202 secs
13:27:31.750 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
13:27:31.753 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD SUCCESSFUL
13:27:31.753 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
13:27:31.753 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 1 mins 4.718 secs
13:27:31.762 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskArtifacts.bin (/var/lib/jenkins/workspace/ney-project-W57EFPVZG5R7Z3RYZY52B6JOI5GPYKQS65QAT52LXEWAOP3NUE3Q/server/.gradle/3.1/taskArtifacts/taskArtifacts.bin)
13:27:31.762 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (/var/lib/jenkins/workspace/ney-project-W57EFPVZG5R7Z3RYZY52B6JOI5GPYKQS65QAT52LXEWAOP3NUE3Q/server/.gradle/3.1/taskArtifacts/fileHashes.bin)
13:27:31.762 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (/var/lib/jenkins/workspace/ney-project-W57EFPVZG5R7Z3RYZY52B6JOI5GPYKQS65QAT52LXEWAOP3NUE3Q/server/.gradle/3.1/taskArtifacts/fileSnapshots.bin)
13:27:31.762 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (/var/lib/jenkins/workspace/ney-project-W57EFPVZG5R7Z3RYZY52B6JOI5GPYKQS65QAT52LXEWAOP3NUE3Q/server/.gradle/3.1/taskArtifacts).
13:27:31.763 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
13:27:31.763 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 3, disk reads: 3 (avg: 0.003 secs, total: 0.01 secs)
13:27:31.763 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.0 secs
13:27:31.764 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-versions.bin (/var/lib/jenkins/.gradle/caches/modules-2/metadata-2.21/module-versions.bin)
13:27:31.764 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/var/lib/jenkins/.gradle/caches/modules-2/metadata-2.21/module-metadata.bin)
13:27:31.764 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-url.bin (/var/lib/jenkins/.gradle/caches/modules-2/metadata-2.21/artifact-at-url.bin)
13:27:31.764 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (/var/lib/jenkins/.gradle/caches/modules-2/metadata-2.21/artifact-at-repository.bin)
13:27:31.764 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/var/lib/jenkins/.gradle/caches/modules-2).
13:27:31.764 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin Resolution Cache (/var/lib/jenkins/.gradle/caches/3.1/plugin-resolution) was closed 0 times.
13:27:31.764 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Generated Gradle JARs cache (/var/lib/jenkins/.gradle/caches/3.1/generated-gradle-jars) was closed 0 times.
13:27:31.764 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache jars (/var/lib/jenkins/.gradle/caches/jars-1) was closed 0 times.
13:27:31.765 [DEBUG] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopping 0 compiler daemon(s).
13:27:31.765 [INFO] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopped 0 compiler daemon(s).
13:27:31.766 [DEBUG] [org.gradle.cache.internal.locklistener.DefaultFileLockContentionHandler] File lock listener thread completed.

gradle -d --stop

13:36:27.446 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /var/lib/jenkins/.gradle/native
13:36:27.927 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface eth0
13:36:27.930 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a loopback interface? false
13:36:27.931 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a multicast interface? true
13:36:27.931 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding remote address /fe80:0:0:0:e09a:70ff:fea1:8e8e%eth0
13:36:27.932 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding remote address /1.240.34.68
13:36:27.932 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding remote multicast interface eth0
13:36:27.933 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface lo
13:36:27.933 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a loopback interface? true
13:36:27.933 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a multicast interface? false
13:36:27.933 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding loopback address /0:0:0:0:0:0:0:1%lo
13:36:27.934 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding loopback address /127.0.0.1
13:36:27.942 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
13:36:27.944 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
13:36:28.017 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
13:36:28.018 [LIFECYCLE] [org.gradle.launcher.daemon.client.DaemonClient] No Gradle daemons are running.