Hi,
Any update on this one?
I get a similar issue on my setup.
I've several independent pipeline jobs.
Each job, when triggered, does a p4 checkout.
When multible jobs are triggered at the same time the P4CLIENT seems to be inconsistent between jobs and some of the jobs fail because they are using the client from a different job. It seems that the P4CLIENT variable is being shared between different checkout processes.
The jobs that get the wrong P4CLIENT fail with the error reported previously:
ERROR: P4: Task Exception: hudson.AbortException: P4JAVA: Error(s):
Path '/correct/path/for/this/job/...' is not under client's root '/path/from/parallel/job'.
Each job is using the checkout in the following manner:
{{def p4_ws_name = 'jenkins_${env.JOB_NAME}'
def workspace_view = """\
//my_depot/... //${p4_ws_name}/...
""".stripIndent()
pipeline {
agent any
options
{
timestamps()
}
stages {
stage('Checkout') {
steps
{
checkout perforce(
credential: 'xxxx',
populate: autoClean(
delete: true,
modtime: false,
parallel: [
enable: false,
minbytes: '1024',
minfiles: '1',
threads: '4'],
pin: '', quiet: true,
replace: true,
tidy: false),
workspace: manualSpec(
charset: 'none',
cleanup: false,
name: p4_ws_name,
pinHost: false,
spec: clientSpec(
allwrite: false,
backup: true,
changeView: '',
clobber: true,
compress: false,
line: 'LOCAL',
locked: false,
modtime: false,
rmdir: false,
serverID: '',
streamName: '',
type: 'WRITABLE',
view: workspace_view
)
)
)
}
}
stage('Something after') {
steps
{
echo "something something"
}
}
}
}}}
Some help would be appreciated.
Thanks,
Frederico
PS: I've tried with manually triggered builds, timer triggered, and SCM, all produce the same issue if triggered at the same time.
Hi mei_liu. I would like to see some more details about your setup so have sent you a request for more information via email.