You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Bash# Run a Bash script on macOS, Linux, or Windows
- task: Bash@3inputs:
#targetType: 'filePath' # Optional. Options: filePath, inline#filePath: # Required when targetType == FilePath#arguments: # Optional#script: '# echo Hello world' # Required when targetType == inline#workingDirectory: # Optional#failOnStderr: false # Optional#noProfile: true # Optional#noRc: true # Optional
steps:
- bash: string # contents of the script to rundisplayName: string # friendly name displayed in the UIname: string # identifier for this step (A-Z, a-z, 0-9, and underscore)workingDirectory: string # initial working directory for the stepfailOnStderr: boolean # if the script writes to stderr, should that be treated as the step failing?condition: stringcontinueOnError: boolean # 'true' if future steps should run even if this step fails; defaults to 'false'enabled: boolean # whether to run this step; defaults to 'true'target:
container: string # where this step will run; values are the container name or the word 'host'commands: enum # whether to process all logging commands from this step; values are `any` (default) or `restricted`timeoutInMinutes: numberenv: { string: string } # list of environment variables to add