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

com.saucelabs.bamboo.sod.AbstractSauceBuildPlugin Maven / Gradle / Ivy

The newest version!
package com.saucelabs.bamboo.sod;

import com.atlassian.bamboo.build.BuildDefinition;
import com.atlassian.bamboo.plan.Plan;
import com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin;
import com.saucelabs.bamboo.sod.config.SODMappedBuildConfiguration;
import com.saucelabs.bamboo.sod.variables.Bamboo3Modifier;
import com.saucelabs.bamboo.sod.variables.DefaultVariableModifier;
import com.saucelabs.bamboo.sod.variables.VariableModifier;

/**
 * Contains common logic for Sauce OnDemand plugin classes.
 *
 * @author Ross Rowe
 */
public abstract class AbstractSauceBuildPlugin extends BaseConfigurableBuildPlugin {

    /**
     * Return a new {@link VariableModifier} instance that will be used to construct the environment
     * variables.
     *
     * @param config        Mapped config for project
     * @param definition    Project definition
     * @return instance that will be used to construct the environment variables
     */
    protected VariableModifier getVariableModifier(SODMappedBuildConfiguration config, BuildDefinition definition) {
        return new Bamboo3Modifier(config, definition, buildContext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy