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

P4_CHANGELIST variable points to unshelved cl , not synced CL

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin
    • None

      I would like to extract the CL that s jobs was synced to and the CL of the shelved job that was un-shelved.

      It is unclear how these values are available to the job (there is nothing in the documentation)

      The variable P4_CHANGELIST seems to point to the last CL action.

      So for a normal sync to CL 1000 the value maps to P4_CHANGELIST =1000

      If i now test a shelved CL 1050 the value maps to P4_CHANGELIST =1050

      This is problematic since the code didn't sync to 1050, it just unshelved 1050.

      Since the job passes in the shelved CL number , i do have access to it but i need the P4_CHANGELIST to point to the CL that was synced.

            Unassigned Unassigned
            mornejoubert Morne Joubert
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: