jetbrains.buildServer.configs.kotlin.v10.buildSteps / PowerShellStep

PowerShellStep

open class PowerShellStep : BuildStep

A build step running PowerShell script

See Also

powerShell

Types

Edition

enum class Edition

A PowerShell edition

ExecutionMode

enum class ExecutionMode

PowerShell script execution mode

Platform

enum class Platform

A required platform bitness

ScriptMode

sealed class ScriptMode : CompoundParam

Version

enum class Version

Constructors

<init>

PowerShellStep(init: PowerShellStep.() -> Unit = {}, base: PowerShellStep? = null)

Properties

args

var args: String?

Additional arguments to be passed to PowerShell

edition

var edition: Edition?

PowerShell edition to use

formatStderrAsError

var formatStderrAsError: Boolean?

Specifies how the error output is handled. If set to true any output to stderr is handled as an error. By default any output to stderr is handled as a warning.

minRequiredVersion

var minRequiredVersion: String?

A minimum required PowerShell version installed on a build agent

minVersion

var minVersion: Version?

noProfile

var noProfile: Boolean?

Whether the script should be executed with the -NoProfile added

platform

var platform: Platform?

A required platform bitness

scriptExecMode

var scriptExecMode: ExecutionMode?

PowerShell execution mode

scriptMode

var scriptMode: ScriptMode?

PowerShell script execution mode

workingDir

var workingDir: String?

Build working directory for ant script, specify it if it is different from the checkout directory.

Inherited Properties

conditions

var conditions: BuildStepConditions

Optional collection of build step execution conditions

enabled

var enabled: Boolean

Specifies whether the step is enabled

executionMode

var executionMode: ExecutionMode

Build step execution mode

id

var id: String?

Id of the step, if not specified will be generated

name

var name: String

Build step name

type

var type: String

Build step type

Functions

file

fun file(init: File.() -> Unit = {}): File

Run a PowerShell script at the given path

script

fun script(init: Script.() -> Unit = {}): Script

Run a PowerShell script with the given content

Inherited Functions

conditions

fun conditions(base: BuildStepConditions? = null, init: BuildStepConditions.() -> Unit = {}): Unit

Configures build step conditions