Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-13207 Provide ability for users to set the working directory …
…for the Sauce Connect process
- Loading branch information
Showing
9 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/saucelabs/hudson/HudsonSauceConnectManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/help-sauceConnectDirectory.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div> | ||
Specify the directory where the Sauce Connect process should be run from. By default, the plugin will attempt to | ||
launch Sauce Connect using the USER_HOME directory as the working directory. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters