[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Paul Allen closed an issue as Postponed Closing old issues - issue may be fixed or not required. Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Change By: Paul Allen Status: In Progress Closed Resolution: Postponed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more o
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Paul Allen updated JENKINS-36243 Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Change By: Paul Allen Status: In Review Progress Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Paul Allen updated JENKINS-36243 Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Change By: Paul Allen Status: In Progress Review Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Russell Gallop commented on JENKINS-36243 Re: ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds > If you are not creating these sub-directories, I will need to work out a way to manage them. In the original case, using matrix builds we are not creating the sub-directories so I think we need the plugin to cope with this. From https://github.com/p4paul/p4-jenkins/issues/20 > The Jenkins workspace and Perforce workspace should really be at the same path. We also use git alongside perforce so use dir() { p4sync ...} as a common pattern to keep these separate. To my mind it is cleaner to have perforce checkout to a different directory from git otherwise the git checkout will be inside the perforce workspace. If I ask the p4 plugin to delete generated files then it would remove the git checkout! We also have multiple perforce servers which would be used in some jobs. This would require multiple (perforce) workspaces which I believe would be bad to have in the same directory. Please consider whether it would be possible to support the dir() { p4sync ...} pattern. I don't think that Jenkins workspace and Perforce workspace being the same fits all use cases. dir() { p4sync... } makes it much more flexible and also helps fulfil the promise of Jenkins pipeline DSL being able to truly support multiple SCMs. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegr
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Paul Allen commented on JENKINS-36243 Re: ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds The error looks to be due to unexpected subdirectories. The Perforce and Jenkins Workspace should be at the same level. Could the error be similar to: https://github.com/p4paul/p4-jenkins/issues/20 If you are not creating these sub-directories, I will need to work out a way to manage them. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Paul Allen started work on JENKINS-36243 Change By: Paul Allen Status: Open In Progress Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Matthew Hall edited a comment on JENKINS-36243 Re: ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds This problem can also occur in pipeline jobs.Specifically it happens if a pipeline job is forcibly killed, via the 'Click here to forcibly kill entire build' and then build it again:[Pipeline] Allocate node : StartRunning on jslave [agent - lin3 name] in ~ / home/siadmin/jenkins/w/jendev/ll_self_host_12345 job_name @2[Pipeline] node {[Pipeline] Change current directory : StartRunning in / home path / siadmin/jenkins/w/jendev/ll_self_host_12345 job_name @2/ job_dsl dir_name [Pipeline] dir {[Pipeline] checkout[Pipeline] } //dir[Pipeline] Change current directory : End[Pipeline] } //node[Pipeline] Allocate node : End[Pipeline] End of Pipelinejava.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:109) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:292) 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:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)Finished: FAILURE Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Matthew Hall edited a comment on JENKINS-36243 Re: ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds This problem can also occur in pipeline jobs.Specifically it happens if a pipeline job is forcibly killed, via the 'Click here to forcibly kill entire build' and then build it again: [Pipeline] Allocate node : StartRunning on jslave-lin3 in /home/siadmin/jenkins/w/jendev/ll_self_host_12345@2[Pipeline] node {[Pipeline] Change current directory : StartRunning in /home/siadmin/jenkins/w/jendev/ll_self_host_12345@2/job_dsl[Pipeline] dir {[Pipeline] checkout[Pipeline] } //dir[Pipeline] Change current directory : End[Pipeline] } //node[Pipeline] Allocate node : End[Pipeline] End of Pipelinejava.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:109) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:292) 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:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)Finished: FAILURE Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Matthew Hall edited a comment on JENKINS-36243 Re: ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds This problem can also occur in pipeline jobs.Specifically it happens if a pipeline job is forcibly killed, via the 'Click here to forcibly kill entire build' and then rerun build it again:[Pipeline] Allocate node : StartRunning on jslave-lin3 in /home/siadmin/jenkins/w/jendev/ll_self_host_12345@2[Pipeline] node {[Pipeline] Change current directory : StartRunning in /home/siadmin/jenkins/w/jendev/ll_self_host_12345@2/job_dsl[Pipeline] dir {[Pipeline] checkout[Pipeline] } //dir[Pipeline] Change current directory : End[Pipeline] } //node[Pipeline] Allocate node : End[Pipeline] End of Pipelinejava.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:109) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:292) 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:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)Finished: FAILURE Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Matthew Hall commented on JENKINS-36243 Re: ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds This problem can also occur in pipeline jobs. Specifically it happens if a pipeline job is forcibly killed, via the 'Click here to forcibly kill entire build' and then rerun Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Russell Gallop assigned an issue to Paul Allen Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Change By: Russell Gallop Assignee: Kohsuke Kawaguchi Paul Allen Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Russell Gallop updated an issue Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Change By: Russell Gallop Building multiple matrix builds (of one job) at once results in the following exception from the p4 plugin.The job is configured as:Multi-configuration projectExecute concurrent builds if necessary: truep4 scm with a Manual workspace (viewname : " jenkins-$ \ {NODE_NAME \ } \ -$ \ {JOB_NAME \ } ", workspace: " //depot/tool/... //jenkins-$ \ {NODE_NAME \ } \ -$ \ {JOB_NAME \ }/... ") User-defined Axis Name: "FOO" with Values "bar baz"And a single build step executing a Windows batch command: "ping -n 10 127.0.0.1 >nul" to sleep for 10 seconds.Trigger the same job at least twice in quick succession. The first succeeds but the subsequent ones get the above exception.It appears to be a problem when the matrix per-configuration build uses the same node as the flyweight job. This is reproducible with a system with 1 executor on master.{quote}Building on master in workspace C:\jenkins\jobs\matrix_p4_multiple_executions\ws@2\FOO\barFATAL: 1java.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:108) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:312) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410){quote} Add Comment
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Russell Gallop updated an issue Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Change By: Russell Gallop Building multiple matrix builds (of one job) at once results in the following exception from the p4 plugin.The job is configured as:Multi-configuration projectExecute concurrent builds if necessary: truep4 scm with a Manual workspace: jenkins-${NODE_NAME}-${JOB_NAME} //depot/tool/... //jenkins-${NODE_NAME}-${JOB_NAME}/...User-defined Axis Name: "FOO" with Values "bar baz"And a single build step executing a Windows batch command: "ping -n 10 127.0.0.1 >nul" to sleep for 10 seconds.Trigger the same job at least twice in quick succession. The first succeeds but the subsequent ones get the above exception.It appears to be a problem when the matrix per-configuration build uses the same node as the flyweight job. This is reproducible with a system with 1 executor on master.{ { quote} Building on master in workspace C:\jenkins\jobs\matrix_p4_multiple_executions\ws@2\FOO\barFATAL: 1java.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:108) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:312) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {quote } } Add Comment
[JIRA] (JENKINS-36243) ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds
Title: Message Title Russell Gallop created an issue Jenkins / JENKINS-36243 ArrayIndexOutOfBoundsException with matrix and multiple simultaneous builds Issue Type: Bug Assignee: Kohsuke Kawaguchi Components: matrix-project-plugin, p4-plugin Created: 2016/Jun/27 2:14 PM Environment: jenkins 1.651.3 p4-plugin 1.4.2 matrix-project-plugin 1.7.1 Priority: Major Reporter: Russell Gallop Building multiple matrix builds (of one job) at once results in the following exception from the p4 plugin. The job is configured as: Multi-configuration project Execute concurrent builds if necessary: true p4 scm with a Manual workspace: jenkins-$ {NODE_NAME}-${JOB_NAME} //depot/tool/... //jenkins-${NODE_NAME} -$ {JOB_NAME} /... User-defined Axis Name: "FOO" with Values "bar baz" And a single build step executing a Windows batch command: "ping -n 10 127.0.0.1 >nul" to sleep for 10 seconds. Trigger the same job at least twice in quick succession. The first succeeds but the subsequent ones get the above exception. It appears to be a problem when the matrix per-configuration build uses the same node as the flyweight job. This is reproducible with a system with 1 executor on master. {{Building on master in workspace C:\jenkins\jobs\matrix_p4_multiple_executions\ws@2\FOO\bar FATAL: 1 java.lang.ArrayIndexOutOfBoundsException: 1 at org.jenkinsci.plugins.p4.tasks.AbstractTask.setEnvironment(AbstractTask.java:108) at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:312) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuil