Friday 12 August 2016

How to set output properties from within a custom Urbancode plugin step


Assuming you’ve imported AirPluginTool and have instantiated as follows …
import com.urbancode.air.AirPluginTool
def apTool = new AirPluginTool(this.args[0], this.args[1])

Then you can set outputs props for this step as follows
apTool.outProps.put("prope name", "prop value")
apTool.setOutputProperties()

For example
apTool.outProps.put("componentsInSnapshot", componentNamesString.toString() )
apTool.setOutputProperties()

The property can now be accessed in the usual way by other steps in you process - i.e.  ${p:step name/property name}



No comments:

Post a Comment