Class Job.Jsii$Proxy

  • All Implemented Interfaces:
    Job, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    Job

    @Stability(Experimental)
    @Internal
    public static final class Job.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Job
    An implementation for Job
    • 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 the Job.Builder.
    • Method Detail

      • getAllowFailure

        public final Object getAllowFailure()
        Description copied from interface: Job
        (experimental) Whether to allow the pipeline to continue running on job failure (Default: false).
        Specified by:
        getAllowFailure in interface Job
      • getCoverage

        public final String getCoverage()
        Description copied from interface: Job
        (experimental) Must be a regular expression, optionally but recommended to be quoted, and must be surrounded with '/'.

        Example: '/Code coverage: \d+.\d+/'

        Specified by:
        getCoverage in interface Job
      • getDependencies

        public final List<String> getDependencies()
        Description copied from interface: Job
        (experimental) Specify a list of job names from earlier stages from which artifacts should be loaded.

        By default, all previous artifacts are passed. Use an empty array to skip downloading artifacts.

        Specified by:
        getDependencies in interface Job
      • getEnvironment

        public final Object getEnvironment()
        Description copied from interface: Job
        (experimental) Used to associate environment metadata with a deploy.

        Environment can have a name and URL attached to it, and will be displayed under /environments under the project.

        Specified by:
        getEnvironment in interface Job
      • getExcept

        public final Object getExcept()
        Description copied from interface: Job
        (experimental) Job will run except for when these filtering options match.
        Specified by:
        getExcept in interface Job
      • getExtendsValue

        public final List<String> getExtendsValue()
        Description copied from interface: Job
        (experimental) The name of one or more jobs to inherit configuration from.
        Specified by:
        getExtendsValue in interface Job
      • getIdTokens

        public final Map<String,​IDToken> getIdTokens()
        Description copied from interface: Job
        (experimental) Configurable ID tokens (JSON Web Tokens) that are used for CI/CD authentication.
        Specified by:
        getIdTokens in interface Job
      • getImage

        public final Image getImage()
        Specified by:
        getImage in interface Job
      • getInherit

        public final Inherit getInherit()
        Description copied from interface: Job
        (experimental) Controls inheritance of globally-defined defaults and variables.

        Boolean values control inheritance of all default: or variables: keywords. To inherit only a subset of default: or variables: keywords, specify what you wish to inherit. Anything not listed is not inherited.

        Specified by:
        getInherit in interface Job
      • getNeeds

        public final List<Object> getNeeds()
        Description copied from interface: Job
        (experimental) The list of jobs in previous stages whose sole completion is needed to start the current job.
        Specified by:
        getNeeds in interface Job
      • getOnly

        public final Object getOnly()
        Description copied from interface: Job
        (experimental) Job will run only when these filtering options match.
        Specified by:
        getOnly in interface Job
      • getParallel

        public final Object getParallel()
        Description copied from interface: Job
        (experimental) Parallel will split up a single job into several, and provide CI_NODE_INDEX and CI_NODE_TOTAL environment variables for the running jobs.
        Specified by:
        getParallel in interface Job
      • getRelease

        public final Release getRelease()
        Description copied from interface: Job
        (experimental) Indicates that the job creates a Release.
        Specified by:
        getRelease in interface Job
      • getResourceGroup

        public final String getResourceGroup()
        Description copied from interface: Job
        (experimental) Limit job concurrency.

        Can be used to ensure that the Runner will not run certain jobs simultaneously.

        Specified by:
        getResourceGroup in interface Job
      • getRetry

        public final Retry getRetry()
        Specified by:
        getRetry in interface Job
      • getRules

        public final List<IncludeRule> getRules()
        Description copied from interface: Job
        (experimental) Rules allows for an array of individual rule objects to be evaluated in order, until one matches and dynamically provides attributes to the job.
        Specified by:
        getRules in interface Job
      • getScript

        public final List<String> getScript()
        Description copied from interface: Job
        (experimental) Shell scripts executed by the Runner.

        The only required property of jobs. Be careful with special characters (e.g. :, {, }, &) and use single or double quotes to avoid issues.

        Specified by:
        getScript in interface Job
      • getStage

        public final String getStage()
        Description copied from interface: Job
        (experimental) Define what stage the job will run in.
        Specified by:
        getStage in interface Job
      • getTrigger

        public final Object getTrigger()
        Description copied from interface: Job
        (experimental) Trigger allows you to define downstream pipeline trigger.

        When a job created from trigger definition is started by GitLab, a downstream pipeline gets created. Read more: https://docs.gitlab.com/ee/ci/yaml/README.html#trigger

        Specified by:
        getTrigger in interface Job
      • getVariables

        public final Map<String,​String> getVariables()
        Description copied from interface: Job
        (experimental) Configurable values that are passed to the Job.
        Specified by:
        getVariables in interface Job
      • getWhen

        public final JobWhen getWhen()
        Description copied from interface: Job
        (experimental) Describes the conditions for when to run the job.

        Defaults to 'on_success'.

        Specified by:
        getWhen in interface Job
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object