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

P4 plugin : P4_CHANGELIST not available in workflow (pipeline)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
      None
    • Environment:
      jenkins 2.7.2 LTS
      p4-plgin 1.3.8
      jdk 1.8 (sun)
      OS : redhat 7.2
    • Similar Issues:

      Description

      I'm using p4 plugin for several months in freestyle jobs, and I'm moving to 'pipelines' implementation (workflow if you like)

      According to this documentation, there are some known limitations :
      https://github.com/jenkinsci/p4-plugin/blob/master/SETUP.md

      especially :

      No access to Environment ${VAR} variables

      On the other hand, one line below is written :

      Exposed Variables :

      • P4_CHANGELIST - current changelist (valid for this to be blank when there are no changes).

      Within my pipelines, what I see is that 'P4_CHANGELIST' is not available after a call to p4sync.

      Is it expected ?

      If so, how do I retrieve the changelist at which the sync is done ? (in order to propagate it to further steps and stages in the pipeline)

        Attachments

          Issue Links

            Activity

            squalou squalou jenkins created issue -
            pvia p v made changes -
            Field Original Value New Value
            Flagged Impediment [ 10003 ]
            p4karl Karl Wirth made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            p4karl Karl Wirth made changes -
            Assignee Karl Wirth [ p4karl ]
            p4paul Paul Allen made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            p4paul Paul Allen made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            p4paul Paul Allen made changes -
            Link This issue is blocked by JENKINS-38976 [ JENKINS-38976 ]
            p4paul Paul Allen made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            squalou squalou jenkins made changes -
            Description I'm using p4 plugin for several months in freestyle jobs, and I'm moving to 'pipelines' implementation (workflow if you like)

            According to this documentation, there are some known limitations :
            https://github.com/jenkinsci/pipeline-plugin/blob/master/README.md

            especially : {quote}No access to Environment $\{VAR\} variables{quote}

            On the other hand, one line below is written :

            Exposed Variables :
            - *P4_CHANGELIST* - current changelist (valid for this to be blank when there are no changes).


            Within my pipelines, what I see is that 'P4_CHANGELIST' is not available after a call to p4sync.

            Is it expected ?

            If so, how do I retrieve the changelist at which the sync is done ? (in order to propagate it to further steps and stages in the pipeline)


            I'm using p4 plugin for several months in freestyle jobs, and I'm moving to 'pipelines' implementation (workflow if you like)

            According to this documentation, there are some known limitations :
            https://github.com/jenkinsci/p4-plugin/blob/master/SETUP.md

            especially : {quote}No access to Environment $\{VAR\} variables{quote}

            On the other hand, one line below is written :

            Exposed Variables :
            - *P4_CHANGELIST* - current changelist (valid for this to be blank when there are no changes).


            Within my pipelines, what I see is that 'P4_CHANGELIST' is not available after a call to p4sync.

            Is it expected ?

            If so, how do I retrieve the changelist at which the sync is done ? (in order to propagate it to further steps and stages in the pipeline)


            squalou squalou jenkins made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            fkykko Staffan Forsell made changes -
            Link This issue is related to JENKINS-40885 [ JENKINS-40885 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-26100 [ JENKINS-26100 ]
            p4paul Paul Allen made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            p4paul Paul Allen made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                p4karl Karl Wirth
                Reporter:
                squalou squalou jenkins
              • Votes:
                7 Vote for this issue
                Watchers:
                18 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: