-
Bug
-
Resolution: Fixed
-
Critical
-
Windows 8.1, Windows server 2012, Windows 10 64-bit,
JDK 1.8.131, Jenkins 2.77
git-client plugin:2.3.0
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project during source checkout time. This issue occurs most of the time. Due to this, our Continuous Integration process is affected very much. Can you please check and provide the solution to this?
Note: Jenkins installed on a Linux machine(Master) as a dbm package and i have connected slave machines as Windows machines. I have also set the timeout to 50 in both advanced checkout and clone behaviors.
Below is my sample code
node {
stage 'Checkout'{
{
checkout scm
}
}
Error Details:
Running on 24.9.6.17 in C:\workspace\DataFolder\Server
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] timeout
16:07:57 Timeout set to expire in 2 hr 0 min
[Pipeline] {
[Pipeline] stage (Checkout)
16:07:57 Using the ‘stage’ step without a block argument is deprecated
16:07:57 Entering stage Checkout
16:07:57 Proceeding
[Pipeline] dir
16:07:57 Running in C:\workspace\DataFolder\Server\server
[Pipeline] {
[Pipeline] checkout
16:07:58 > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
16:07:58 Fetching changes from the remote Git repository
16:07:58 > C:\Program Files\Git\bin\git.exe config remote.origin.url https://gitlab.test.com/data-folder/server # timeout=10
16:07:58 Cleaning workspace
16:07:58 > C:\Program Files\Git\bin\git.exe rev-parse --verify HEAD # timeout=10
16:07:59 Resetting working tree
16:07:59 > C:\Program Files\Git\bin\git.exe reset --hard # timeout=10
16:07:59 > C:\Program Files\Git\bin\git.exe clean -fdx # timeout=10
16:07:59 Fetching upstream changes from https://gitlab.test.com/data-folder/server
16:07:59 > C:\Program Files\Git\bin\git.exe --version # timeout=10
16:08:00 using GIT_ASKPASS to set credentials
16:08:00 > C:\Program Files\Git\bin\git.exe fetch --tags --progress https://gitlab.test.com/data-folder/server +refs/heads/:refs/remotes/origin/ +refs/merge-requests//head:refs/remotes/origin/merge-requests/ # timeout=50
16:08:05 > C:\Program Files\Git\bin\git.exe rev-parse "5c2e31279bef38916492d077fa8e55162e41e1cb^{commit}" # timeout=10
16:08:05 Checking out Revision 5c2e31279bef38916492d077fa8e55162e41e1cb (detached)
16:08:05 > C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
16:08:05 > C:\Program Files\Git\bin\git.exe checkout -f 5c2e31279bef38916492d077fa8e55162e41e1cb # timeout=50
16:08:05 > C:\Program Files\Git\bin\git.exe branch -a -v --no-abbrev # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
java.lang.ArrayIndexOutOfBoundsException: 1
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.parseBranches(CliGitAPIImpl.java:1907)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getBranches(CliGitAPIImpl.java:1928)
at hudson.plugins.git.GitAPI.getBranches(GitAPI.java:195)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2063)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:205)
at hudson.remoting.UserRequest.perform(UserRequest.java:52)
at hudson.remoting.Request$2.run(Request.java:356)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:98)
at java.lang.Thread.run(Unknown Source)
at ......remote call to JNLP4-connect connection from 24.9.6.17/24.9.6.17:53835(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1647)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:308)
at hudson.remoting.Channel.call(Channel.java:896)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
at sun.reflect.GeneratedMethodAccessor713.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy111.execute(Unknown Source)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1135)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:260)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
- duplicates
-
JENKINS-45894 Unable to checkout repository with git-plugin ArrayIndexOutOfBoundsException
-
- Closed
-
[JENKINS-47196] java.lang.ArrayIndexOutOfBoundsException: 1- Source checkout issue
Description |
Original:
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project source checkout time. This issue occurs most of the time. Can you please check and provide solution to this? node { stage 'Checkout' try { checkout scm } catch(Exception e) { echo "Exception in checkout stage \r\n" + e } } |
New:
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project during source checkout time. This issue occurs most of the time. Can you please check and provide solution to this? node { stage 'Checkout' try { checkout scm } catch(Exception e) { echo "Exception in checkout stage \r\n" + e } } |
Description |
Original:
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project during source checkout time. This issue occurs most of the time. Can you please check and provide solution to this? node { stage 'Checkout' try { checkout scm } catch(Exception e) { echo "Exception in checkout stage \r\n" + e } } |
New:
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project during source checkout time. This issue occurs most of the time. Due to this, our Continuous Integration process is affected very much. Can you please check and provide solution to this? node { stage 'Checkout' try { checkout scm } catch(Exception e) { echo "Exception in checkout stage \r\n" + e } } |
Description |
Original:
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project during source checkout time. This issue occurs most of the time. Due to this, our Continuous Integration process is affected very much. Can you please check and provide solution to this? node { stage 'Checkout' try { checkout scm } catch(Exception e) { echo "Exception in checkout stage \r\n" + e } } |
New:
We are getting "java.lang.ArrayIndexOutOfBoundsException: 1" exception in pipeline project during source checkout time. This issue occurs most of the time. Due to this, our Continuous Integration process is affected very much. Can you please check and provide solution to this? *Below is my sample code* node { stage 'Checkout' try { checkout scm } catch(Exception e) { echo "Exception in checkout stage \r\n" + e } } |
Assignee | Original: Mark Waite [ markewaite ] |
Assignee | New: Mark Waite [ markewaite ] |
Assignee | Original: Mark Waite [ markewaite ] |
I do not see this problem in any of my testing, nor have other users reported the problem as far as I can tell.
Please include the full exception message, in case that can help with the diagnosis.
Please provide enough details in the bug report so that the problem can be duplicated by others. Refer to "how to report an issue" for guidance on the type of information needed in the bug report.