Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39491

Syntax for performing a p4 unshelve in a Jenkins(2) pipeline/groovy script.

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None

      I'm currently syncing with a pipeline/groovy step like this:

      checkout(
          [$class: 'PerforceScm',
           credential: 'my-p4-credentials',
           populate:
               [$class: 'ForceCleanImpl',
                have: false,
                parallel: [enable: false,
                    minbytes: '1024',
                    minfiles: '1',
                    path: '/usr/local/bin/p4',
                    threads: '4'],
                pin: p4shelf,           // <--! this variable is the shelf CL
                quiet: true],
           workspace: [$class: 'TemplateWorkspaceImpl',
               charset: 'auto',
               format: 'jenkins-${NODE_NAME}-${JOB_NAME}',
               pinHost: false,
               templateName: p4branch]])
      

      However, I doubt the 'pin' is doing anything useful—regardless of my comment. Is there any way to convince the p4 SCM to checkout or unshelve?

      Thanks!

          [JENKINS-39491] Syntax for performing a p4 unshelve in a Jenkins(2) pipeline/groovy script.

          There are no comments yet on this issue.

            Unassigned Unassigned
            thechao Jacob Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: