Skip to content

Fail Gulp task if PowerShell scripts fail #8

@uli-weltersbach

Description

@uli-weltersbach

When a Gulp-task calls a PowerShell script, ensure a non-zero exit code causes the Gulp-script to fail.

E.g. Install-Packages.ps1:

foreach ($package in $packages.packages) {
    Install-NugetPackage -package $package -webRootPath $webRootPath -dataRootPath $dataRootPath -username $username -password $password
}

Gulp will return an exit code of zero even when one of the Install-NugetPackage-calls fails, the user doesn't have administrative privileges to run the script etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions