You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the plugin to be able to release locks properly at the end of the pipeline and not throw an error.
Actual Results
Start of pipeline:
09:05:27 [Pipeline] lock
09:05:27 Trying to acquire lock on [{e2e-SG1-502-circleci-setup-synapse},{alp-SG1-502-circleci-setup-pr-deployment}]
09:05:27 Resource [e2e-SG1-502-circleci-setup-synapse] did not exist. Created.
09:05:27 [{e2e-SG1-502-circleci-setup-synapse},{alp-SG1-502-circleci-setup-pr-deployment}] is not free, waiting for execution ...
09:09:36 Lock acquired on [{e2e-SG1-502-circleci-setup-synapse},{alp-SG1-502-circleci-setup-pr-deployment}]
End of pipeline:
09:12:51 [Pipeline] End of Pipeline
09:12:51 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 517bb887-4df9-4e73-a3f3-dd873f5c86b3
09:12:51 java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 2
09:12:51 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
09:12:51 at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
09:12:51 at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
09:12:51 at java.base/java.util.Objects.checkIndex(Objects.java:361)
09:12:51 at java.base/java.util.ArrayList.get(ArrayList.java:427)
09:12:51 at org.jenkins.plugins.lockableresources.LockableResourcesManager.getNextQueuedContext(LockableResourcesManager.java:778)
09:12:51 at org.jenkins.plugins.lockableresources.LockableResourcesManager.proceedNextContext(LockableResourcesManager.java:684)
09:12:51 at org.jenkins.plugins.lockableresources.LockableResourcesManager.unlockNames(LockableResourcesManager.java:662)
09:12:51 at org.jenkins.plugins.lockableresources.LockStepExecution$Callback.finished(LockStepExecution.java:224)
09:12:51 at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:118)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:375)
09:12:51 at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:70)
09:12:51 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:144)
09:12:51 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:17)
09:12:51 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:49)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:180)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:423)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:331)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:295)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$wrap$4(CpsVmExecutorService.java:136)
09:12:51 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
09:12:51 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
09:12:51 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
09:12:51 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
09:12:51 at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
09:12:51 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
09:12:51 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
09:12:51 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
09:12:51 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:53)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:50)
09:12:51 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
09:12:51 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
09:12:51 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$categoryThreadFactory$0(CpsVmExecutorService.java:50)
09:12:51 at java.base/java.lang.Thread.run(Thread.java:840)
Anything else?
No response
Are you interested in contributing a fix?
Sure, if I can get a pointer where to start.
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Everything runs in kubernetes. Controller is running the Jenkins docker image and agents run in docker:26.1.1-dind docker image
Reproduction steps
It's hard to determine reproduction steps, since the issue happens randomly (but always on the same pipeline)
We have a Jenkinsfile which determines which locks to request.
Expected Results
I would expect the plugin to be able to release locks properly at the end of the pipeline and not throw an error.
Actual Results
Start of pipeline:
End of pipeline:
Anything else?
No response
Are you interested in contributing a fix?
Sure, if I can get a pointer where to start.
The text was updated successfully, but these errors were encountered: