Issue
How does Folders affect Parameterized Trigger Plugin’s Environment variables?
What
Resolution
The plugin documents following environment variables:
LAST_TRIGGERED_JOB_NAME="Last project started" TRIGGERED_BUILD_NUMBER_<project name>="Last build number triggered" TRIGGERED_JOB_NAMES="Comma separated list of all triggered projects" TRIGGERED_BUILD_NUMBERS_<project name>="Comma separated list of build numbers triggered" TRIGGERED_BUILD_RESULT_<project name>="Last triggered build result of project" TRIGGERED_BUILD_RESULT_<project name>RUN<build number>="Result of triggered build for build number" TRIGGERED_BUILD_RUN_COUNT_project name>="Number of builds triggered for the project"
In this case "<project name>" placeholder is a full name of the project (which includes the folders) with all non-alphanumeric characters replaced by the underscores. For example, if the name of the Project you trigger is Some-Folder/Some-Project
, then the variable names are going to be as follows:
TRIGGERED_BUILD_NUMBER_Some_Folder_Some_Project TRIGGERED_BUILD_NUMBERS_Some_Folder_Some_Project TRIGGERED_BUILD_RESULT_Some_Folder_Some_Project TRIGGERED_BUILD_RESULT_Some_Folder_Some_Project_RUN_<build number> TRIGGERED_BUILD_RUN_COUNT_Some_Folder_Some_Project