Class Runner
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.cdkpipelines.github.Runner
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.62.0 (build 293ac17)", date="2022-07-16T00:20:23.476Z") @Stability(Stable) public class Runner extends software.amazon.jsii.JsiiObject
The type of runner to run the job on.Can be GitHub or Self-hosted. In case of self-hosted, a list of labels can be supplied.
-
-
Field Summary
Fields Modifier and Type Field Description static RunnerMACOS_LATESTRunner instance that sets runsOn to `macos-latest`.static RunnerUBUNTU_LATESTRunner instance that sets runsOn to `ubuntu-latest`.static RunnerWINDOWS_LATESTRunner instance that sets runsOn to `windows-latest`.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetRunsOn()static RunnerselfHosted(List<String> labels)Creates a runner instance that sets runsOn to `self-hosted`.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Field Detail
-
MACOS_LATEST
@Stability(Stable) public static final Runner MACOS_LATEST
Runner instance that sets runsOn to `macos-latest`.
-
UBUNTU_LATEST
@Stability(Stable) public static final Runner UBUNTU_LATEST
Runner instance that sets runsOn to `ubuntu-latest`.
-
WINDOWS_LATEST
@Stability(Stable) public static final Runner WINDOWS_LATEST
Runner instance that sets runsOn to `windows-latest`.
-
-
Method Detail
-
selfHosted
@Stability(Stable) @NotNull public static Runner selfHosted(@NotNull List<String> labels)
Creates a runner instance that sets runsOn to `self-hosted`.Additional labels can be supplied. There is no need to supply
self-hostedas a label explicitly.- Parameters:
labels- This parameter is required.
-
getRunsOn
@Stability(Stable) @NotNull public Object getRunsOn()
-
-