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 3
  • views 95
  • 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);
chaudharyritika ·

Could you please also share the lists of scripts which are evaluated when we click a build?
Ex : Promotion scripts are evaluated

It would be really helpful for me.

Thank you

robinshen ADMIN ·

You may add a step of type "Misc -> Execute Script" in the destination configuration to run aforementioned script.