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<ScriptMode> |
|
enum class Version |
PowerShellStep(init: PowerShellStep.() -> Unit) PowerShellStep()
A build step running PowerShell script |
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, true by default |
|
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 |
|
open fun validate(consumer: ErrorConsumer): Unit
Validates this object and reports found errors to the provided consumer |
fun clearConditions(): Unit
Deletes all configured build step conditions |
|
fun conditions(init: BuildStepConditions.() -> Unit = {}): Unit
Configures build step conditions |
|
open fun create(): BuildStep
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor. |
|
open fun toString(): String |