Class Job.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.cdkpipelines.github.Job.Jsii$Proxy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.cdkpipelines.github.Job
Job.Builder, Job.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(Job.Builder builder)Constructor that initializes the object based on literal property values passed by theJob.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ObjectgetConcurrency()(experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.ContainerOptionsgetContainer()A container to run any steps in a job that don't already specify a container.BooleangetContinueOnError()Prevents a workflow run from failing when a job fails.JobDefaultsgetDefaults()A map of default settings that will apply to all steps in the job.Map<String,String>getEnv()A map of environment variables that are available to all steps in the job.ObjectgetEnvironment()The environment that the job references.StringgetIfValue()You can use the if conditional to prevent a job from running unless a condition is met.StringgetName()The name of the job displayed on GitHub.List<String>getNeeds()Identifies any jobs that must complete successfully before this job will run.Map<String,String>getOutputs()A map of outputs for a job.JobPermissionsgetPermissions()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.ObjectgetRunsOn()The type of machine to run the job on.Map<String,ContainerOptions>getServices()Used to host service containers for a job in a workflow.List<JobStep>getSteps()A job contains a sequence of tasks called steps.JobStrategygetStrategy()A strategy creates a build matrix for your jobs.NumbergetTimeoutMinutes()The maximum number of minutes to let a job run before GitHub automatically cancels it.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(Job.Builder builder)
Constructor that initializes the object based on literal property values passed by theJob.Builder.
-
-
Method Detail
-
getPermissions
public final JobPermissions getPermissions()
Description copied from interface:JobYou 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.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.
- Specified by:
getPermissionsin interfaceJob- See Also:
- https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
-
getRunsOn
public final Object getRunsOn()
Description copied from interface:JobThe type of machine to run the job on.The machine can be either a GitHub-hosted runner or a self-hosted runner.
Example:
["ubuntu-latest"]
-
getSteps
public final List<JobStep> getSteps()
Description copied from interface:JobA job contains a sequence of tasks called steps.Steps 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.
-
getConcurrency
public final Object getConcurrency()
Description copied from interface:Job(experimental) Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time.A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
- Specified by:
getConcurrencyin interfaceJob
-
getContainer
public final ContainerOptions getContainer()
Description copied from interface:JobA container to run any steps in a job that don't already specify a container.If 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.
- Specified by:
getContainerin interfaceJob
-
getContinueOnError
public final Boolean getContinueOnError()
Description copied from interface:JobPrevents a workflow run from failing when a job fails.Set to true to allow a workflow run to pass when this job fails.
- Specified by:
getContinueOnErrorin interfaceJob
-
getDefaults
public final JobDefaults getDefaults()
Description copied from interface:JobA map of default settings that will apply to all steps in the job.You can also set default settings for the entire workflow.
- Specified by:
getDefaultsin interfaceJob
-
getEnv
public final Map<String,String> getEnv()
Description copied from interface:JobA map of environment variables that are available to all steps in the job.You can also set environment variables for the entire workflow or an individual step.
-
getEnvironment
public final Object getEnvironment()
Description copied from interface:JobThe environment that the job references.All environment protection rules must pass before a job referencing the environment is sent to a runner.
- Specified by:
getEnvironmentin interfaceJob- See Also:
- https://docs.github.com/en/actions/reference/environments
-
getIfValue
public final String getIfValue()
Description copied from interface:JobYou can use the if conditional to prevent a job from running unless a condition is met.You can use any supported context and expression to create a conditional.
- Specified by:
getIfValuein interfaceJob
-
getName
public final String getName()
Description copied from interface:JobThe name of the job displayed on GitHub.
-
getNeeds
public final List<String> getNeeds()
Description copied from interface:JobIdentifies any jobs that must complete successfully before this job will run.It 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.
-
getOutputs
public final Map<String,String> getOutputs()
Description copied from interface:JobA map of outputs for a job.Job outputs are available to all downstream jobs that depend on this job.
- Specified by:
getOutputsin interfaceJob
-
getServices
public final Map<String,ContainerOptions> getServices()
Description copied from interface:JobUsed to host service containers for a job in a workflow.Service 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.
- Specified by:
getServicesin interfaceJob
-
getStrategy
public final JobStrategy getStrategy()
Description copied from interface:JobA strategy creates a build matrix for your jobs.You can define different variations to run each job in.
- Specified by:
getStrategyin interfaceJob
-
getTimeoutMinutes
public final Number getTimeoutMinutes()
Description copied from interface:JobThe maximum number of minutes to let a job run before GitHub automatically cancels it.Default: 360
- Specified by:
getTimeoutMinutesin interfaceJob
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-