All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.bamboo.specs.builders.trigger.AfterSuccessfulDeploymentTrigger Maven / Gradle / Ivy

There is a newer version: 10.1.0
Show newest version
package com.atlassian.bamboo.specs.builders.trigger;

import com.atlassian.bamboo.specs.api.builders.trigger.Trigger;
import com.atlassian.bamboo.specs.model.trigger.AfterSuccessfulDeploymentTriggerProperties;
import org.jetbrains.annotations.NotNull;

/**
 * Trigger which schedule a deployment when other environment deployment complete.
 */
public class AfterSuccessfulDeploymentTrigger extends Trigger {
    private final String environment;

    /**
     * Schedule a deployment when environment deployment complete.
     * @param environment name
     */
    public AfterSuccessfulDeploymentTrigger(@NotNull final String environment) {
        this.environment = environment;
    }

    @Override
    protected AfterSuccessfulDeploymentTriggerProperties build() {
        return new AfterSuccessfulDeploymentTriggerProperties(name, description, triggerEnabled, environment);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy