On Ai Release we have "VSTS/TFS Queue Build" task and we want to retrieive the variable "BuildResult" in case of the task is in "Partially succedeed" or "Failed" status.

Actually the variable "BuildResult" only conatin "succedeed" or nothing.
The build is launched by the release task

The error log we have in the activity section is:
------------------------------
Exception during execution:
javax.script.ScriptException: Exception: Build failed with status 'partiallySucceeded' in <script> at line number 23
------------------------------

The use case is that the release task which executes a build does not fall into error if a build task is partially successful (warning) because it is a task which is not important for deployment on a test infrastructure (QA) but which will be important for deployment on a production infrastructure. In our case, these are file signing and file provisioning tasks for developers.

Comments