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

P4-Plugin: No polling log if Lightweight checkout option is checked

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • p4-plugin
    • P4 Plugin: 1.8.10

      Hi,

      I am using Jenkinsfile and "Lightweight checkout" option is enabled. "checkout scm" is used in my Jenkinsfile. Unfortunately, I am unable to get the Perforce changes.

      I unchecked the "Lightweight checkout" , checked a test changelist and then I got 2 changes, see below:

      It is really weird, No changes or show 2 changes. I expected to see the 1 changelog populated by "checkout scm" during the build.

      BTW: I have read the help note of "Lightweight checkout":
      however, you will not get any changelogs or polling based on the SCM. (If you use checkout scm during the build, this will populate the changelog and initialize polling.)

          [JENKINS-51838] P4-Plugin: No polling log if Lightweight checkout option is checked

          Xuezhong Yan created issue -
          Xuezhong Yan made changes -
          Description Original: Hi,

          I am using Jenkinsfile and "Lightweight checkout" option is enabled. I am using "checkout scm" in my Jenkinsfile. Unfortunately, I am unable to get the Perforce changes.

          I unchecked the "Lightweight checkout" , checked a test changelist and then I got 2 changes, see below:
           !image-2018-06-10-14-16-30-673.png|thumbnail!

          It is really weird, No changes or show 2 changes. I expected to see the 1 changelog populated by "checkout scm" during the build.

          BTW: I have read the help note of "Lightweight checkout":
          however, you will not get any changelogs or polling based on the SCM. (If you use checkout scm during the build, this will populate the changelog and initialize polling.)
          New: Hi,

          I am using Jenkinsfile and "Lightweight checkout" option is enabled. "checkout scm" is used in my Jenkinsfile. Unfortunately, I am unable to get the Perforce changes.

          I unchecked the "Lightweight checkout" , checked a test changelist and then I got 2 changes, see below:
           !image-2018-06-10-14-16-30-673.png|thumbnail!

          It is really weird, No changes or show 2 changes. I expected to see the 1 changelog populated by "checkout scm" during the build.

          BTW: I have read the help note of "Lightweight checkout":
          however, you will not get any changelogs or polling based on the SCM. (If you use checkout scm during the build, this will populate the changelog and initialize polling.)
          Xuezhong Yan made changes -
          Attachment New: screenshot-1.png [ 42822 ]
          Xuezhong Yan made changes -
          Description Original: Hi,

          I am using Jenkinsfile and "Lightweight checkout" option is enabled. "checkout scm" is used in my Jenkinsfile. Unfortunately, I am unable to get the Perforce changes.

          I unchecked the "Lightweight checkout" , checked a test changelist and then I got 2 changes, see below:
           !image-2018-06-10-14-16-30-673.png|thumbnail!

          It is really weird, No changes or show 2 changes. I expected to see the 1 changelog populated by "checkout scm" during the build.

          BTW: I have read the help note of "Lightweight checkout":
          however, you will not get any changelogs or polling based on the SCM. (If you use checkout scm during the build, this will populate the changelog and initialize polling.)
          New: Hi,

          I am using Jenkinsfile and "Lightweight checkout" option is enabled. "checkout scm" is used in my Jenkinsfile. Unfortunately, I am unable to get the Perforce changes.

          I unchecked the "Lightweight checkout" , checked a test changelist and then I got 2 changes, see below:
           !image-2018-06-10-14-16-30-673.png|thumbnail! !screenshot-1.png|thumbnail!

          It is really weird, No changes or show 2 changes. I expected to see the 1 changelog populated by "checkout scm" during the build.

          BTW: I have read the help note of "Lightweight checkout":
          however, you will not get any changelogs or polling based on the SCM. (If you use checkout scm during the build, this will populate the changelog and initialize polling.)
          Paul Allen made changes -
          Labels New: P4_SUPPORT

          Xuezhong Yan added a comment -

          An alternative way:

          • Jenkinsfile
          • scm.getWorkspace().setSyncID("jenkins-${env.JOB_NAME}".replaceAll('
            /', '-'))
          • Scripts in WebUI
          • workspace: streamSpec(charset: 'none', format: "${p4Client}", syncID: "${p4SyncID}", pinHost: false, streamName: "${perforceStream}"))

          Xuezhong Yan added a comment - An alternative way: Jenkinsfile scm.getWorkspace().setSyncID("jenkins-${env.JOB_NAME}".replaceAll(' /', '-')) Scripts in WebUI workspace: streamSpec(charset: 'none', format: "${p4Client}", syncID: "${p4SyncID}" , pinHost: false, streamName: "${perforceStream}"))
          Paul Allen made changes -
          Assignee Original: Paul Allen [ p4paul ]

          Xuezhong Yan added a comment -

          Cannot Reproduce on P4 Plugin 1.9.4, hence close this issue.

          Xuezhong Yan added a comment - Cannot Reproduce on P4 Plugin 1.9.4, hence close this issue.
          Xuezhong Yan made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Xuezhong Yan made changes -
          Resolution Original: Fixed [ 1 ] New: Cannot Reproduce [ 5 ]
          Status Original: Closed [ 6 ] New: Fixed but Unreleased [ 10203 ]

            Unassigned Unassigned
            jackyim Xuezhong Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: