Class Environment

    • Constructor Detail

      • Environment

        public Environment​(@NotNull
                           @NotNull java.lang.String name)
        Specifies environment.
        Parameters:
        name - name of the environment.
    • Method Detail

      • description

        public Environment description​(java.lang.String description)
        Sets the environment description.
      • releaseApprovalPrerequisite

        public Environment releaseApprovalPrerequisite​(@NotNull
                                                       @NotNull Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisite)
        Sets release approval prerequisite the environment requires to be met by deployment project release before the deployment can be launched. The deployment project release is the context the environment is executed in. The default prerequisite is Environment.ReleaseApprovalPrerequisite.NOT_BROKEN.
        Parameters:
        releaseApprovalPrerequisite - the prerequisite to set
        Since:
        9.4
      • tasks

        public Environment tasks​(@NotNull
                                 @NotNull Task<?,​?>... tasks)
        Adds provided Tasks to the list of tasks executed by the environment.
      • finalTasks

        public Environment finalTasks​(@NotNull
                                      @NotNull Task<?,​?>... finalTasks)
        Adds provided Tasks to the list of the final tasks executed by the environment.

        Final tasks for a environment are always executed, even if previous tasks in the environment failed.

      • triggers

        public Environment triggers​(@NotNull
                                    @NotNull Trigger<?,​?>... triggers)
        Adds triggers to this environment.
      • variables

        public Environment variables​(@NotNull
                                     @NotNull Variable... variables)
        Adds deployment environment variables.
      • requirements

        public Environment requirements​(Requirement... requirements)
        Adds custom requirements to the environment.

        Requirements control which Bamboo agents are able to execute deployments to the environment.

      • notifications

        public Environment notifications​(@NotNull
                                         @NotNull Notification... notifications)
        Appends a notification rule to the environment.
      • getName

        public java.lang.String getName()