Hi @ashah_4271 ,
We could definitely improve our documentation in this area, but let me explain a few things...
$ApplicationName are $PipelineName contain the name of the application and pipeline in context. What this means is that, if an OtterScript is running within a build deployment, then it will be the name of the application, and the pipeline that the build is being deployed in.
Your custom build trigger OtterScript is running within an application, which means $ApplicationName will be whatever the name of the current application is. However, it's not running within a pipeline, so $PipelineName will be empty.
Long story short, you should only need to change $PipelineName to be the name of the pipeline you wish to use.
All that said, I don't know why Pipeline is required, when there is a default release template. So this can be an area of improvement in that operation as well :)
Please let me know if this is helpful, and then I will try to log an issue to fix/improve on our ends
Cheers,
Nanci
