Skip to content

Unable to trigger build from a release pipeline #4

@antony-wintech

Description

@antony-wintech

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions