[JIRA] (JENKINS-56248) P4Plugin Polls Workspaces With Disabled Polling (poll: false)

21 views
Skip to first unread message

lystor@gmail.com (JIRA)

unread,
Feb 22, 2019, 9:10:03 AM2/22/19
to jenkinsc...@googlegroups.com
Mykola Ulianytskyi created an issue
 
Jenkins / Bug JENKINS-56248
P4Plugin Polls Workspaces With Disabled Polling (poll: false)
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2019-02-22 14:09
Environment: Jenkins: 2.150.3 (official docker image)
P4 Plugin: 1.9.6
Priority: Blocker Blocker
Reporter: Mykola Ulianytskyi

Hello

P4Plugin polls all workspaces used in job even if poll parameter is disabled in checkout.

Steps to reproduce

  1. Create pipeline job test4 (see below)
  2. Start pipeline job test4
  3. See "Perforce Software Polling Log" and Perforce Server Log

 

 

pipeline {
    agent(none)
 
    options {
        ansiColor("xterm")
        buildDiscarder(logRotator(numToKeepStr: "10"))
        disableConcurrentBuilds()
        disableResume()
        skipDefaultCheckout(true)
        timestamps()
    }
 
    triggers {
        pollSCM("* * * * *")
    }
 
    stages {
        stage("Master") {
            agent {
                label("master")
            }
 
            steps {
                checkout perforce(credential: 'perforce-ticket-jenkins', populate: flushOnly(pin: '', quiet: false),
                        workspace: streamSpec(charset: 'none', format: 'test4-master', pinHost: true, streamName: '//playground/jenkins-main'))
            }
        }
 
        stage("Win-1") {
            agent {
                label("k02-bld-win-01")
            }
 
            steps {
                checkout changelog: false, poll: false, scm: perforce(credential: 'perforce-ticket-jenkins', populate: flushOnly(pin: '', quiet: false),
                        workspace: streamSpec(charset: 'none', format: 'test4-win-1', pinHost: true, streamName: '//playground/jenkins-main'))
            }
        }

        stage("Win-2") {
            agent {
                label("k02-bld-win-02")
            }
 
            steps {
                checkout changelog: false, poll: false, scm: perforce(credential: 'perforce-ticket-jenkins', populate: flushOnly(pin: '', quiet: false),
                        workspace: streamSpec(charset: 'none', format: 'test4-win-2', pinHost: true, streamName: '//playground/jenkins-main'))
            }
        }
    }
}

 

Perforce Software Polling Log

 

Started on Feb 22, 2019 3:45:00 PM
P4: Polling on: master with:test4-master
Found last change 1180191 on syncID test4-master
... p4 client -o test4-master +
... p4 info +
... p4 info +
... p4 client -o test4-master +
...   No change in client detected.
 
P4 Task: establishing connection.
... server: perforce:1666
... node: k02-jenkins
P4: Polling with range: 1180191,now
... p4 changes -m20 //test4-master/...@1180191,now +
... p4 repos -C +
P4: Polling on: master with:test4-win-1
Found last change 1180191 on syncID test4-win-1
... p4 client -o test4-win-1 +
... p4 info +
... p4 info +
... p4 client -o test4-win-1 +
...   No change in client detected.
 
P4 Task: establishing connection.
... server: perforce:1666
... node: k02-jenkins
P4: Polling with range: 1180191,now
... p4 changes -m20 //test4-win-1/...@1180191,now +
... p4 repos -C +
P4: Polling on: master with:test4-win-2
Found last change 1180191 on syncID test4-win-2
... p4 client -o test4-win-2 +
... p4 info +
... p4 info +
... p4 client -o test4-win-2 +
...   No change in client detected.
 
P4 Task: establishing connection.
... server: perforce:1666
... node: k02-jenkins
P4: Polling with range: 1180191,now
... p4 changes -m20 //test4-win-2/...@1180191,now +
... p4 repos -C +
Done. Took 0.14 sec
No changes

 

Perforce Server Error Log

4,1550834520,532931606,2019/02/22 13:22:00 532931606,210535,1,jenkins,test4-win-1,user-repos,10.10.20.103,jenkins.p4-plugin,1.9.6/Linux,-C,error,6,95,Client %27test4-win-1%27 can only be used from host %27k02-bld-win-01%27.
 
4,1550834520,580422337,2019/02/22 13:22:00 580422337,210544,1,jenkins,test4-win-2,user-repos,10.10.20.103,jenkins.p4-plugin,1.9.6/Linux,-C,error,6,95,Client %27test4-win-2%27 can only be used from host %27k02-bld-win-02%27.
 
 

 

As you can see jenkins tries to poll all three workspaces: test4-master (poll: true) + test4-win-1 (poll: false) + test4-win-2 (poll: false) from master.

 

Please fix this bug.

Thank you

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kwirth@perforce.com (JIRA)

unread,
Feb 25, 2019, 5:54:03 AM2/25/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-56248
 
Re: P4Plugin Polls Workspaces With Disabled Polling (poll: false)

Hi Mykola Ulianytskyi, Thanks for highlighting this. I will try to repro it and let you know my findings.

kwirth@perforce.com (JIRA)

unread,
Feb 25, 2019, 5:54:03 AM2/25/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 25, 2019, 5:54:03 AM2/25/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 25, 2019, 11:59:02 AM2/25/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Feb 25, 2019, 11:59:03 AM2/25/19
to jenkinsc...@googlegroups.com
Karl Wirth assigned an issue to Unassigned
Change By: Karl Wirth
Assignee: Karl Wirth

kwirth@perforce.com (JIRA)

unread,
Feb 25, 2019, 11:59:03 AM2/25/19
to jenkinsc...@googlegroups.com
 
Re: P4Plugin Polls Workspaces With Disabled Polling (poll: false)

Mykola Ulianytskyi - Behavior confirmed. Forwarding to development team.

Even though 'poll: false' is set we are still creating a SyncID and polling for the second sync. My test was simpler all on the master:

pipeline {
  agent { label 'master' }
  stages {
    stage("Repro") {
      steps {
        script {
           echo "Starting"

           checkout poll: true, scm: perforce(credential: 'JenkinsMasterAdminUser', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub1', 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: '//depot/pipeline_poll_false/sub1/...  //${P4_CLIENT}/...')))

           checkout poll: false, scm: perforce(credential: 'JenkinsMasterAdminUser', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub2', 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: '//depot/pipeline_poll_false/sub2/...  //${P4_CLIENT}/...')))

           sh 'echo WS IS $P4_CLIENT'

        }
      }
    }
  }
}

SyncIDs I see are:

Perforce Software Polling Log

Started on Feb 25, 2019 4:51:07 PM
P4: Polling on: master with:jenkins-master-Pipeline_Poll_False_Test2-0
Found last change 246 on syncID jenkins-NODE_NAME-Pipeline_Poll_False_Test2-EXECUTOR_NUMBER
... p4 client -o jenkins-master-Pipeline_Poll_False_Test2-0 +
... p4 info +
... p4 info +
... p4 client -o jenkins-master-Pipeline_Poll_False_Test2-0 +
...   No change in client detected.

P4 Task: establishing connection.
... server: vm-kwirth-swarm182-xenial:1666
... node: vm-kwirth-swarm182-xenial
P4: Polling with range: 246,now
... p4 changes -m20 //jenkins-master-Pipeline_Poll_False_Test2-0/...@246,now +
... p4 repos -C +
P4: Polling on: master with:jenkins-master-Pipeline_Poll_False_Test2-0-sub1
Found last change 242 on syncID jenkins-NODE_NAME-Pipeline_Poll_False_Test2-EXECUTOR_NUMBER-sub1
... p4 client -o jenkins-master-Pipeline_Poll_False_Test2-0-sub1 +
... p4 info +
... p4 info +
... p4 client -o jenkins-master-Pipeline_Poll_False_Test2-0-sub1 +
...   No change in client detected.

P4 Task: establishing connection.
... server: vm-kwirth-swarm182-xenial:1666
... node: vm-kwirth-swarm182-xenial
P4: Polling with range: 242,now
... p4 changes -m20 //jenkins-master-Pipeline_Poll_False_Test2-0-sub1/...@242,now +
... p4 repos -C +
P4: Polling on: master with:jenkins-master-Pipeline_Poll_False_Test2-0-sub2
Found last change 247 on syncID jenkins-NODE_NAME-Pipeline_Poll_False_Test2-EXECUTOR_NUMBER-sub2
... p4 client -o jenkins-master-Pipeline_Poll_False_Test2-0-sub2 +
... p4 info +
... p4 info +
... p4 client -o jenkins-master-Pipeline_Poll_False_Test2-0-sub2 +
...   No change in client detected.

It should not be polling on on syncID "jenkins-NODE_NAME-Pipeline_Poll_False_Test2-EXECUTOR_NUMBER-sub2".

lystor@gmail.com (JIRA)

unread,
Mar 6, 2019, 4:34:03 AM3/6/19
to jenkinsc...@googlegroups.com
Mykola Ulianytskyi updated an issue
 
Change By: Mykola Ulianytskyi
Hello

P4Plugin polls all workspaces used in job even if poll parameter is disabled in checkout.
h2. Steps to reproduce
#  Create pipeline job test4 (see below)
#  Start pipeline job test4


#  See "Perforce Software Polling Log" and Perforce Server Log

 

 
{code:java}
{code}
 
h2. Perforce Software Polling Log

 
{code:java}

Started on Feb 22, 2019 3:45:00 PM
P4: Polling on: master with:test4-master
Found last change 1180191 on syncID test4-master
... p4 client -o test4-master +

... p4 info +
... p4 info +
... p4 client -o test4-master +

...   No change in client detected.
 
P4 Task: establishing connection.
... server: perforce:1666
... node: k02-jenkins
P4: Polling with range: 1180191,now
... p4 changes -m20 //test4-master/...@1180191,now +

... p4 repos -C +
P4: Polling on: master with:test4-win-1
Found last change 1180191 on syncID test4-win-1
... p4 client -o test4-win-1 +

... p4 info +
... p4 info +
... p4 client -o test4-win-1 +

...   No change in client detected.
 
P4 Task: establishing connection.
... server: perforce:1666
... node: k02-jenkins
P4: Polling with range: 1180191,now
... p4 changes -m20 //test4-win-1/...@1180191,now +

... p4 repos -C +
P4: Polling on: master with:test4-win-2
Found last change 1180191 on syncID test4-win-2
... p4 client -o test4-win-2 +

... p4 info +
... p4 info +
... p4 client -o test4-win-2 +

...   No change in client detected.
 
P4 Task: establishing connection.
... server: perforce:1666
... node: k02-jenkins
P4: Polling with range: 1180191,now
... p4 changes -m20 //test4-win-2/...@1180191,now +

... p4 repos -C +
Done. Took 0.14 sec
No changes
{code}
 
h2. Perforce Server Error Log
{code:java}

4,1550834520,532931606,2019/02/22 13:22:00 532931606,210535,1,jenkins,test4-win-1,user-repos,10.10.20.103,jenkins.p4-plugin,1.9.6/Linux,-C,error,6,95,Client %27test4-win-1%27 can only be used from host %27k02-bld-win-01%27.
 
4,1550834520,580422337,2019/02/22 13:22:00 580422337,210544,1,jenkins,test4-win-2,user-repos,10.10.20.103,jenkins.p4-plugin,1.9.6/Linux,-C,error,6,95,Client %27test4-win-2%27 can only be used from host %27k02-bld-win-02%27.
 
 
{code}
 

As you can see jenkins tries to poll all three workspaces: *test4-master* (poll: true) + *test4-win-1* (poll: false) + *test4-win-2* (poll: false) from master.

 
h2. Cause

WorkflowJob.poll() uses PerforceScm.getKey() to find a polling baseline for workspaces.

PerforceScm.getKey() returns the same SCM key for different workspaces because it doesn't include a workspace name.

Result: WorkflowJob.poll() polls all workspaces with the same SCM key.
h2. PR

I have created a pull request with a possible fix of this problem:

https://github.com/jenkinsci/p4-plugin/pull/95

 

Please fix this bug.

Thank you

kwirth@perforce.com (JIRA)

unread,
Apr 4, 2019, 10:01:03 AM4/4/19
to jenkinsc...@googlegroups.com

pallen@perforce.com (JIRA)

unread,
Jun 4, 2019, 10:09:02 AM6/4/19
to jenkinsc...@googlegroups.com

pallen@perforce.com (JIRA)

unread,
Jun 4, 2019, 10:11:02 AM6/4/19
to jenkinsc...@googlegroups.com
Paul Allen commented on Bug JENKINS-56248
 
Re: P4Plugin Polls Workspaces With Disabled Polling (poll: false)

Need to verify. Please test with the latest version of jenkins.

lystor@gmail.com (JIRA)

unread,
Jun 4, 2019, 10:17:02 AM6/4/19
to jenkinsc...@googlegroups.com

Jenkins 2.164.3 has the same behavior as 2.150.3.

cbopardikar@perforce.com (JIRA)

unread,
Jun 11, 2019, 9:24:04 AM6/11/19
to jenkinsc...@googlegroups.com

Tested pull request https://github.com/jenkinsci/p4-plugin/pull/95 and looks to be working fine with Jenkins version 2.164.3.

cbopardikar@perforce.com (JIRA)

unread,
Jun 18, 2019, 6:00:02 AM6/18/19
to jenkinsc...@googlegroups.com

The code change as suggested in the PR will have an impact on other customers. Need to do a thorough analysis before accepting the PR.

Meanwhile, I tested this workaround as suggested by Paul Allen and it has exactly the same effect as the PR without any code change. Changed the pipeline script as below.

 

{{

}}

pipeline {
 agent \{ label 'master' }
 stages {
 stage("Repro") {
 steps {
 script {
 echo "Starting"

checkout poll: true, changelog:true, scm: perforce(credential: 'perforceAdmin', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack1', 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: '//depot/projC/main/src/pack1/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack1/...')))
 sh 'echo WS IS $P4_CLIENT'
 
 checkout poll: false, changelog:false, scm: perforce(credential: 'perforceAdmin', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack2', 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: '//depot/projC/main/src/pack2/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack2/...')))

sh 'echo WS IS $P4_CLIENT'

}
 }
 }
 }
}

 {{

}}

{{}}

cbopardikar@perforce.com (JIRA)

unread,
Jun 18, 2019, 6:02:02 AM6/18/19
to jenkinsc...@googlegroups.com
The code change as suggested in the PR will have an impact on other customers. Need to do a thorough analysis before accepting the PR.

Meanwhile, I tested this workaround as suggested by [~p4paul] and it has exactly the same effect as the PR without any code change. Changed the pipeline script as below.

 

{ {{ code:xml} }}

pipeline {
agent
\ { label 'master' }
stages {
stage("Repro") {
steps {
script {
echo "Starting"


checkout poll: true, changelog:true, scm: perforce(credential: 'perforceAdmin', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack1', 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: '//depot/projC/main/src/pack1/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack1/...')))
sh 'echo WS IS $P4_CLIENT'

           
checkout poll: false, changelog:false, scm: perforce(credential: 'perforceAdmin', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack2', 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: '//depot/projC/main/src/pack2/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-pack2/...')))

sh 'echo WS IS $P4_CLIENT'

}
}
}
}
}


 
{ {{ code} }}

{{}}

cbopardikar@perforce.com (JIRA)

unread,
Jun 18, 2019, 6:25:05 AM6/18/19
to jenkinsc...@googlegroups.com
The code change as suggested in the PR will have an impact on other customers. Need to do a thorough analysis before accepting the PR.

Meanwhile, I tested this below workaround as suggested by [~p4paul] and it has exactly the same effect as the PR without any code change.

Changed the pipeline script as below view mapping to make it unique using the name parameter since ${P4_CLIENT} is not expanded when the key is evaluated .

 

view: '//depot/pipeline_poll_false/sub1/... //jenkins-$
{ NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub1/...'

and

view: '//depot/pipeline_poll_false/sub1/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub2/...'

 So, the script looks like this:
{
code:xml}

pipeline {
  agent { label 'master' }
  stages {
    stage("Repro") {
      steps {
        script {
           echo "Starting"
           
           checkout poll: true, changelog:true, scm: perforce(credential: ' perforceAdmin JenkinsMasterAdminUser ', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}- pack1 sub1 ', 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: '//depot/ projC pipeline_poll_false / main sub1 / src/pack1/ ...  //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}- pack1 sub1 /...')))
           sh 'echo WS IS $P4_CLIENT'
           
           checkout poll: false,
changelog:false, scm: perforce(credential: ' perforceAdmin JenkinsMasterAdminUser ', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}- pack2 sub2 ', 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: '//depot/ projC pipeline_poll_false / main sub2 / src/pack2/ ...  //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}- pack2 sub2 /...')))           sh 'echo WS IS $P4_CLIENT'        }
      }
    }
  }
}{code}

cbopardikar@perforce.com (JIRA)

unread,
Jun 18, 2019, 6:26:02 AM6/18/19
to jenkinsc...@googlegroups.com
The code change as suggested in the PR will have an impact on other customers. Need to do a thorough analysis before accepting the PR.

Meanwhile, I tested below workaround as suggested by [~p4paul] and it has exactly the same effect as the PR without any code change.

Changed the view mapping to make it unique using the name parameter since ${P4_CLIENT} is not expanded when the key is evaluated.

 

view: '//depot/pipeline_poll_false/sub1/... //jenkins-${NODE_NAME}
- ${JOB_NAME} - ${EXECUTOR_NUMBER}-sub1/...'

and

view: '//depot/pipeline_poll_false/sub1/... //jenkins-${NODE_NAME}
- ${JOB_NAME} - ${EXECUTOR_NUMBER}-sub2/...'


 So, the script looks like this:
{code:xml}
pipeline {
  agent { label 'master' }
  stages {
    stage("Repro") {
      steps {
        script {
           echo "Starting"           
checkout poll: true, scm: perforce(credential: 'JenkinsMasterAdminUser', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub1', 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: '//depot/pipeline_poll_false/sub1/...  //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub1/...')))           

checkout poll: false, scm: perforce(credential: 'JenkinsMasterAdminUser', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub2', 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: '//depot/pipeline_poll_false/sub2/...  //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}-sub2/...')))           sh 'echo WS IS $P4_CLIENT'        }
      }
    }
  }
}{code}

lystor@gmail.com (JIRA)

unread,
Jun 24, 2019, 4:30:02 AM6/24/19
to jenkinsc...@googlegroups.com

Meanwhile, I tested below workaround as suggested by Paul Allen and it has exactly the same effect as the PR without any code change.

The workaround doesn't work for streamSpec. It can be used only with manualSpec.

PR fixes the issue with streamSpec.

asmith@pipeworks.com (JIRA)

unread,
Nov 26, 2019, 3:02:03 PM11/26/19
to jenkinsc...@googlegroups.com

Thank you for the workaround Charusheela Bopardikar, this fixed my use case (which is using manualSpec). That said, this has been in backlog for 9 months now – any progress here Karl Wirth?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kwirth@perforce.com (JIRA)

unread,
Nov 27, 2019, 9:42:03 AM11/27/19
to jenkinsc...@googlegroups.com

Hi Adam Smith - I'm just support sorry.  Charusheela Bopardikar - Can you take another look at this. Thanks in advance.

kwirth@perforce.com (JIRA)

unread,
Nov 27, 2019, 9:42:06 AM11/27/19
to jenkinsc...@googlegroups.com
Karl Wirth edited a comment on Bug JENKINS-56248
Hi [~asmith_pipeworks] - I'm just support sorry.  [~cbopardikar] - Can you take another look at this . ? Thanks in advance.

pallen@perforce.com (JIRA)

unread,
Dec 5, 2019, 10:17:03 AM12/5/19
to jenkinsc...@googlegroups.com

pallen@perforce.com (JIRA)

unread,
Dec 5, 2019, 10:18:03 AM12/5/19
to jenkinsc...@googlegroups.com
Paul Allen commented on Bug JENKINS-56248
 
Re: P4Plugin Polls Workspaces With Disabled Polling (poll: false)

TODO: retest this issue after updating plugin dependencies.

Reply all
Reply to author
Forward
0 new messages