software.amazon.jsii.JsiiObject.InitializationModeJob.Builder, Job.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(Job.Builder builder)
Constructor that initializes the object based on literal property values passed by the
Job.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Object |
getConcurrency()
(experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.
|
ContainerOptions |
getContainer()
(experimental) A container to run any steps in a job that don't already specify a container.
|
Boolean |
getContinueOnError()
(experimental) Prevents a workflow run from failing when a job fails.
|
JobDefaults |
getDefaults()
(experimental) A map of default settings that will apply to all steps in the job.
|
Map<String,String> |
getEnv()
(experimental) A map of environment variables that are available to all steps in the job.
|
Object |
getEnvironment()
(experimental) The environment that the job references.
|
String |
getIfValue()
(experimental) You can use the if conditional to prevent a job from running unless a condition is met.
|
String |
getName()
(experimental) The name of the job displayed on GitHub.
|
List<String> |
getNeeds()
(experimental) Identifies any jobs that must complete successfully before this job will run.
|
Map<String,JobStepOutput> |
getOutputs()
(experimental) A map of outputs for a job.
|
JobPermissions |
getPermissions()
(experimental) You can modify the default permissions granted to the GITHUB_TOKEN, adding or removing access as required, so that you only allow the minimum required access.
|
List<String> |
getRunsOn()
(experimental) The type of machine to run the job on.
|
Map<String,ContainerOptions> |
getServices()
(experimental) Used to host service containers for a job in a workflow.
|
List<JobStep> |
getSteps()
(experimental) A job contains a sequence of tasks called steps.
|
JobStrategy |
getStrategy()
(experimental) A strategy creates a build matrix for your jobs.
|
Number |
getTimeoutMinutes()
(experimental) The maximum number of minutes to let a job run before GitHub automatically cancels it.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Job.Builder builder)
Job.Builder.public final JobPermissions getPermissions()
Job
Use { contents: READ } if your job only needs to clone code.
This is intentionally a required field since it is required in order to allow workflows to run in GitHub repositories with restricted default access.
getPermissions in interface Jobhttps://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_tokenpublic final List<String> getRunsOn()
JobThe machine can be either a GitHub-hosted runner or a self-hosted runner.
Example:
// Example automatically generated from non-compiling source. May contain errors. ["ubuntu-latest"]
public final List<JobStep> getSteps()
JobSteps can run commands, run setup tasks, or run an action in your repository, a public repository, or an action published in a Docker registry. Not all steps run actions, but all actions run as a step. Each step runs in its own process in the runner environment and has access to the workspace and filesystem. Because steps run in their own process, changes to environment variables are not preserved between steps. GitHub provides built-in steps to set up and complete a job.
public final Object getConcurrency()
JobA concurrency group can be any string or expression. The expression can use any context except for the secrets context.
getConcurrency in interface Jobpublic final ContainerOptions getContainer()
JobIf you have steps that use both script and container actions, the container actions will run as sibling containers on the same network with the same volume mounts.
getContainer in interface Jobpublic final Boolean getContinueOnError()
JobSet to true to allow a workflow run to pass when this job fails.
getContinueOnError in interface Jobpublic final JobDefaults getDefaults()
JobYou can also set default settings for the entire workflow.
getDefaults in interface Jobpublic final Map<String,String> getEnv()
JobYou can also set environment variables for the entire workflow or an individual step.
public final Object getEnvironment()
JobAll environment protection rules must pass before a job referencing the environment is sent to a runner.
getEnvironment in interface Jobhttps://docs.github.com/en/actions/reference/environmentspublic final String getIfValue()
JobYou can use any supported context and expression to create a conditional.
getIfValue in interface Jobpublic final String getName()
Jobpublic final List<String> getNeeds()
JobIt can be a string or array of strings. If a job fails, all jobs that need it are skipped unless the jobs use a conditional expression that causes the job to continue.
public final Map<String,JobStepOutput> getOutputs()
JobJob outputs are available to all downstream jobs that depend on this job.
getOutputs in interface Jobpublic final Map<String,ContainerOptions> getServices()
JobService containers are useful for creating databases or cache services like Redis. The runner automatically creates a Docker network and manages the life cycle of the service containers.
getServices in interface Jobpublic final JobStrategy getStrategy()
JobYou can define different variations to run each job in.
getStrategy in interface Jobpublic final Number getTimeoutMinutes()
JobDefault: 360
getTimeoutMinutes in interface Job@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.