-
Bug
-
Resolution: Unresolved
-
Major
-
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.
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.