Class NestedConfiguration.Builder

    • Method Detail

      • defaultValue

        @Stability(Experimental)
        public NestedConfiguration.Builder defaultValue​(Default defaultValue)
        (experimental) Default settings for the CI Configuration.

        Jobs that do not define one or more of the listed keywords use the value defined in the default section.

        Parameters:
        defaultValue - Default settings for the CI Configuration. This parameter is required.
        Returns:
        this
      • jobs

        @Stability(Experimental)
        public NestedConfiguration.Builder jobs​(Map<String,​? extends Job> jobs)
        (experimental) An initial set of jobs to add to the configuration.

        Parameters:
        jobs - An initial set of jobs to add to the configuration. This parameter is required.
        Returns:
        this
      • pages

        @Stability(Experimental)
        public NestedConfiguration.Builder pages​(Job pages)
        (experimental) A special job used to upload static sites to Gitlab pages.

        Requires a public/ directory with artifacts.path pointing to it.

        Parameters:
        pages - A special job used to upload static sites to Gitlab pages. This parameter is required.
        Returns:
        this
      • stages

        @Stability(Experimental)
        public NestedConfiguration.Builder stages​(List<String> stages)
        (experimental) Groups jobs into stages.

        All jobs in one stage must complete before next stage is executed. If no stages are specified. Defaults to ['build', 'test', 'deploy'].

        Parameters:
        stages - Groups jobs into stages. This parameter is required.
        Returns:
        this
      • variables

        @Stability(Experimental)
        public NestedConfiguration.Builder variables​(Map<String,​? extends Object> variables)
        (experimental) Global variables that are passed to jobs.

        If the job already has that variable defined, the job-level variable takes precedence.

        Parameters:
        variables - Global variables that are passed to jobs. This parameter is required.
        Returns:
        this
      • workflow

        @Stability(Experimental)
        public NestedConfiguration.Builder workflow​(Workflow workflow)
        (experimental) Used to control pipeline behavior.

        Parameters:
        workflow - Used to control pipeline behavior. This parameter is required.
        Returns:
        this