open class PowerShellStep : BuildStep
A build step running PowerShell script
See Also
enum class Edition
A PowerShell edition |
|
enum class ExecutionMode
PowerShell script execution mode |
|
enum class Platform
A required platform bitness |
|
sealed class ScriptMode : CompoundParam |
|
enum class Version |
PowerShellStep(init: PowerShellStep.() -> Unit = {}, base: PowerShellStep? = null) |
var args: String?
Additional arguments to be passed to PowerShell |
|
var edition: Edition?
PowerShell edition to use |
|
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. |
|
var minRequiredVersion: String?
A minimum required PowerShell version installed on a build agent |
|
var |
|
var noProfile: Boolean?
Whether the script should be executed with the -NoProfile added |
|
var platform: Platform?
A required platform bitness |
|
var scriptExecMode: ExecutionMode?
PowerShell execution mode |
|
var scriptMode: ScriptMode?
PowerShell script execution mode |
|
var workingDir: String?
Build working directory for ant script, specify it if it is different from the checkout directory. |
var conditions: BuildStepConditions
Optional collection of build step execution conditions |
|
var enabled: Boolean
Specifies whether the step is enabled |
|
var executionMode: ExecutionMode
Build step execution mode |
|
var id: String?
Id of the step, if not specified will be generated |
|
var name: String
Build step name |
|
var type: String
Build step type |
fun file(init: File.() -> Unit = {}): File
Run a PowerShell script at the given path |
|
fun script(init: Script.() -> Unit = {}): Script
Run a PowerShell script with the given content |
fun conditions(base: BuildStepConditions? = null, init: BuildStepConditions.() -> Unit = {}): Unit
Configures build step conditions |