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

com.saucelabs.hudson.HudsonSauceConnectManager Maven / Gradle / Ivy

The newest version!
package com.saucelabs.hudson;

import com.saucelabs.ci.sauceconnect.SauceConnectTwoManager;
import hudson.plugins.sauce_ondemand.PluginImpl;
import org.apache.commons.lang.StringUtils;

/**
 * @author Ross Rowe
 */
public class HudsonSauceConnectManager extends SauceConnectTwoManager {

    @Override
    public String getSauceConnectWorkingDirectory() {
        String workingDirectory = PluginImpl.get().getSauceConnectDirectory();
        if (StringUtils.isBlank(workingDirectory)) {
            return super.getSauceConnectWorkingDirectory();
        } else {
            return workingDirectory;
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy