Need to get the build request object created when a promotion is triggered?
Can i write a script in the source configuration only from which promotion is triggred?
The build request object can only be retrieved from destination configuration side via a step. For instance below script prints current promotion name which is stored in promotionSource object of build request object:
groovy:
logger.info(request.promotionSource.promotionName);