-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major
-
Component/s: p4-plugin
-
None
-
Environment:Jenkins ver. 2.44
P4 Plugin (p4): 1.4.6
Pipeline: Groovy (workflow-cps): 2.24
Pipeline: SCM Step (workflow-scm-step): 2.3
Pipeline: Multibranch (workflow-multibranch): 2.9.2
Pipeline: Build Step (pipeline-build-step): 2.4
Pipeline: Shared Groovy Libraries (workflow-cps-global-lib): 2.5
Pipeline: Nodes and Processes (workflow-durable-task-step): 2.8
Pipeline: Step API (workflow-step-api): 2.7
Pipeline: API (workflow-api): 2.8
Pipeline: Stage Step (pipeline-stage-step): 2.2
Pipeline Graph Analysis Plugin (pipeline-graph-analysis): 1.3
Pipeline: REST API Plugin (pipeline-rest-api): 2.4
Pipeline: Milestone Step (pipeline-milestone-step): 1.3
Build Pipeline Plugin (build-pipeline-plugin): 1.4.8
Pipeline: Input Step (pipeline-input-step): 2.5
Pipeline: Supporting APIs (workflow-support): 2.12
Pipeline: Basic Steps (workflow-basic-steps): 2.3
Pipeline: Stage View Plugin (pipeline-stage-view): 2.4
Pipeline (workflow-aggregator): 2.4
Pipeline: Job (workflow-job): 2.9Jenkins ver. 2.44 P4 Plugin (p4): 1.4.6 Pipeline: Groovy (workflow-cps): 2.24 Pipeline: SCM Step (workflow-scm-step): 2.3 Pipeline: Multibranch (workflow-multibranch): 2.9.2 Pipeline: Build Step (pipeline-build-step): 2.4 Pipeline: Shared Groovy Libraries (workflow-cps-global-lib): 2.5 Pipeline: Nodes and Processes (workflow-durable-task-step): 2.8 Pipeline: Step API (workflow-step-api): 2.7 Pipeline: API (workflow-api): 2.8 Pipeline: Stage Step (pipeline-stage-step): 2.2 Pipeline Graph Analysis Plugin (pipeline-graph-analysis): 1.3 Pipeline: REST API Plugin (pipeline-rest-api): 2.4 Pipeline: Milestone Step (pipeline-milestone-step): 1.3 Build Pipeline Plugin (build-pipeline-plugin): 1.4.8 Pipeline: Input Step (pipeline-input-step): 2.5 Pipeline: Supporting APIs (workflow-support): 2.12 Pipeline: Basic Steps (workflow-basic-steps): 2.3 Pipeline: Stage View Plugin (pipeline-stage-view): 2.4 Pipeline (workflow-aggregator): 2.4 Pipeline: Job (workflow-job): 2.9
We're trying to checkout using pipeline plugin + p4. It works when working with stream name only, but fails when we try to configure views:
Jenkins pipeline snippet:
checkout([$class: 'PerforceScm', browser: [$class: 'FishEyeBrowser', rootModule: '', url: 'https://fisheye'], credential: 'xxxxxxxx', populate: [$class: 'ForceCleanImpl', have: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', path: '/usr/local/bin/p4', threads: '4'], pin: '', quiet: true], workspace: [$class: 'ManualWorkspaceImpl', charset: 'none', name: '${JOB_NAME}', pinHost: false, spec: [allwrite: false, clobber: false, compress: false, line: 'LOCAL', locked: false, modtime: false, rmdir: false, streamName: '',
view: '''-//my/path/... //${JOB_NAME}/...
//my/path/x/y/z/... //${JOB_NAME}/...''']]])
Error:
P4: Unable to setup workspace: hudson.AbortException: P4: invalid client view: //my/path/x/y/z/... //jobname/..