-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins version: 2.479.2
P4 Plugin version: 1.17.0
Java Runtime version: 17.0.13+11-Ubuntu-2ubuntu122.04
P4JAVA version: 2024.2/2695691
Projects with "Pipeline script from SCM" fail with the following error in the pipeline log:
[2024-12-30T07:32:52.472Z] P4 Task: establishing connection.
[2024-12-30T07:32:52.472Z] ... server: ssl:perforce.domain.com:1666
[2024-12-30T07:32:52.472Z] ... node: gui-jenkins
[2024-12-30T07:32:52.484Z] (p4):cmd:... p4 where /var/lib/jenkins/workspace/Check Make Status%40script/607502807ca3___
[2024-12-30T07:32:52.484Z] p4 where /var/lib/jenkins/workspace/Check Make Status%40script/607502807ca37d1ed7242a4077864b02087909c2baae05ef5fc241c699aebe2d/Check_Make_Status.jenkinsfile
[2024-12-30T07:32:52.484Z]
[2024-12-30T07:32:52.493Z] (p4):stop:11
[2024-12-30T07:32:52.505Z] (p4):cmd:... p4 streams
[2024-12-30T07:32:52.505Z] p4 streams
[2024-12-30T07:32:52.505Z]
[2024-12-30T07:32:52.513Z] (p4):stop:12
[2024-12-30T07:32:52.515Z] P4 Task: attempt: 1
[2024-12-30T07:32:55.516Z] ERROR: P4: Task Exception: java.lang.RuntimeException: P4JAVA: Error in finding type of stream.java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
[2024-12-30T07:32:55.516Z] Retrying after 10 seconds
Hi,
I tried and I am not able to recreate this error.
Currently it looks like this could be an issue because stream name given doesnot exist in the workspace.
Can you share your jenkins pipeline logs, from jobs folder please share config.xml and build.xml so that we can understand your problem better?
What stream name are you using. What's the output of the "p4 streams "given stream name""?
Note: I have tried in windows 11 x64 with p4 plugin 1.17.0 and jenkins 2.479.2.