Skip to content

Commit

Permalink
JENKINS-12741 Removed call to addTunnelToMap - this is now included i…
Browse files Browse the repository at this point in the history
…n the openConnection() method
  • Loading branch information
rossrowe committed Feb 17, 2012
1 parent e042d6c commit 57df006
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -115,7 +115,7 @@
<dependency>
<groupId>com.saucelabs</groupId>
<artifactId>ci-sauce</artifactId>
<version>1.6</version>
<version>1.7</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Expand Up @@ -267,12 +267,11 @@ public SauceConnectStarter(String buildName, BuildListener listener, int port, F

public ITunnelHolder call() throws IOException {
TunnelHolder tunnelHolder = new TunnelHolder(username);
//SauceTunnelManager sauceManager = new SauceConnectTwoManager();
SauceTunnelManager sauceManager = null;
try {
sauceManager = HudsonSauceManagerFactory.getInstance().createSauceConnectManager();
Object process = sauceManager.openConnection(username, key, port, sauceConnectJar, listener.getLogger());
sauceManager.addTunnelToMap(buildName, process);

tunnelHolder.tunnelManagers.add(sauceManager);
return tunnelHolder;
} catch (ComponentLookupException e) {
Expand Down
Expand Up @@ -2,6 +2,7 @@
xmlns:t="/lib/hudson" xmlns:f="/lib/form">

<f:block>
<f:section title="Sauce Connect Options">
<f:entry field="enableSauceConnect">
<f:checkbox title="${%Enable Sauce Connect?}" default="checked"/>
</f:entry>
Expand All @@ -24,6 +25,7 @@
<f:password value="${credentials.apiKey}"/>
</f:entry>
</f:optionalBlock>
</f:section>
<f:section title="Sauce Connect Advanced Options">
<f:advanced>
<f:entry title="${%Sauce OnDemand Host}" field="seleniumHost">
Expand Down

0 comments on commit 57df006

Please sign in to comment.