When I added this task to a release pipeline, I kept getting the error: "Path must be a string. Received undefined".
This error occurred because it was trying to use the predefined variable BUILD_SOURCESDIRECTORY in triggerAnotherBuild.js which is only available in build pipelines. As a workaround I added BUILD_SOURCESDIRECTORY as a variable to my release pipeline and set it to $(System.DefaultWorkingDirectory).
Could we update this file to use SYSTEM_DEFAULTWORKINGDIRECTORY instead which is available to both types of pipelines?
When I added this task to a release pipeline, I kept getting the error: "Path must be a string. Received undefined".
This error occurred because it was trying to use the predefined variable BUILD_SOURCESDIRECTORY in triggerAnotherBuild.js which is only available in build pipelines. As a workaround I added BUILD_SOURCESDIRECTORY as a variable to my release pipeline and set it to $(System.DefaultWorkingDirectory).
Could we update this file to use SYSTEM_DEFAULTWORKINGDIRECTORY instead which is available to both types of pipelines?