Skip to content

Throw on errors ? #23

@martinbonnin

Description

@martinbonnin

Is it possible to automatically throw on errors? Similar to set -e:

    shell {
      throwOnNonZeroStatus() // or simply throwOnError() ? 
      // will fail the script if the zip file is not present
      "unzip ${zipFile.absolutePath}"()
    }

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