Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

How to instantly pick the build request generated while triggering a promotion in run time? #122

chaudharyritika ·

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?

  • replies 1
  • views 14
  • stars 0
robinshen ADMIN ·

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);