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

Changes not shown from pipeline SCM Checkout when also using Jenkinsfile Checkout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin, pipeline
    • None
    • Jenkins 2.235.1, P4 Plugin 1.10.14, Linux

      I am having an issue where P4 changes are not reported.

      I have a different clients for the jenkinsfile checkout step, and for the SCM checkout within the pipeline (below).  I only see changes reported (in the "Changes" page) from the jenkinsfile checkout, and not the checkout within the pipeline.  This occurs even if I use "lightweight checkout" (in which case I see no changes at all).

      If I don't use a jenkinsfile checkout, I can see the proper changes. *UPDATE*  It seems this isn't working either.  It only worked for the very first run, and now it doesn't seem to log changes...

      I have tried forcing the syncID, as well but nothing has worked.

       

      Pipeline Checkout:

      checkout scm: perforce(
      credential: 'p4_ticket',
      populate: syncOnly(
      force: false,
      have: true,
      modtime: false,
      parallel: [enable: true, minbytes: '1024', minfiles: '1', threads: '4'],
      pin: "",
      quiet: false,
      revert: true),
      workspace: staticSpec(
      charset: 'none',
      name: "jenkins_${JOB_BASE_NAME}_${BUILD_NUMBER}",
      pinHost: false),
      ),
      changelog: true,
      poll: true

       

      The Workspace Name format of the Jenkinsfile checkout is:

      jenkins-${JOB_NAME}-scripts

       

            p4paul Paul Allen
            atwatsoniii Al Watson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: