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

com.saucelabs.bamboo.sod.plan.ViewSODCondition Maven / Gradle / Ivy

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

import com.atlassian.plugin.PluginParseException;
import com.atlassian.plugin.web.Condition;

import java.util.Map;

/**
 * {@link Condition} instance that controls whether the 'Sauce OnDemand' tab appears for Bamboo build
 * results.
 *
 * @author Ross Rowe
 */
public class ViewSODCondition implements Condition {

    /**
     * {@inheritDoc}
     */
    @Override
    public void init(Map map) throws PluginParseException {
    }

    /**
     * Sauce on demand tab should always be shown
     * {@inheritDoc}
     * @return true
     */
    @Override
    public boolean shouldDisplay(Map context) {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy