• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • p4-plugin
    • None
    • Linux

      Plugin Version 1.3.25

      I'm not getting a value for ${P4_LABEL} in a shell script. It looks like from the plugin doc version history that it should be set if building from a label (the P4 Label field in the SCM configuration).

      I'm trying to run the following command to create a BOM file in a build step:
      /usr/local/bin/p4 files //depot/...@${P4_LABEL} > ${WORKSPACE}/p4.bom

      Also, could you please add the list of all variables you are setting with this plugin to the documentation? I haven't found a definitive list anywhere.

      Thanks.

          [JENKINS-20735] P4_LABEL variable not set

          D Soa created issue -

          Rob Petti added a comment -

          I just took a quick glance at the code, and you're right, it doesn't make any sense. It's trying to use the label from the TagAction, which when the build is still running hasn't been tagged yet.

          I'll also look into listing all the env variables. It's a good thing to have listed somewhere.

          Rob Petti added a comment - I just took a quick glance at the code, and you're right, it doesn't make any sense. It's trying to use the label from the TagAction, which when the build is still running hasn't been tagged yet. I'll also look into listing all the env variables. It's a good thing to have listed somewhere.
          Rob Petti made changes -
          Assignee Original: Rob Petti [ rpetti ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 152544 ] New: JNJira + In-Review [ 178246 ]
          Jenkins IRC Bot made changes -
          Component/s New: p4-plugin [ 19224 ]
          Component/s Original: perforce-plugin [ 15506 ]

            Unassigned Unassigned
            dsoa D Soa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: