Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-15793 Add support for specifying https protocol
- Loading branch information
Showing
7 changed files
with
154 additions
and
59 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
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
53 changes: 53 additions & 0 deletions
53
src/main/java/hudson/plugins/sauce_ondemand/SeleniumBuilderBuilder.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,53 @@ | ||
package hudson.plugins.sauce_ondemand; | ||
|
||
import com.saucelabs.ci.SeleniumBuilderManager; | ||
import hudson.Extension; | ||
import hudson.Launcher; | ||
import hudson.model.AbstractBuild; | ||
import hudson.model.AbstractProject; | ||
import hudson.model.BuildListener; | ||
import hudson.model.Descriptor; | ||
import hudson.tasks.BuildStepDescriptor; | ||
import hudson.tasks.Builder; | ||
import org.kohsuke.stapler.DataBoundConstructor; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* @author Ross Rowe | ||
*/ | ||
public class SeleniumBuilderBuilder extends Builder { | ||
|
||
private String scriptFile; | ||
|
||
@DataBoundConstructor | ||
public SeleniumBuilderBuilder(String scriptFile) { | ||
this.scriptFile = scriptFile; | ||
} | ||
|
||
@Override | ||
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { | ||
SeleniumBuilderManager seleniumBuilderManager = new SeleniumBuilderManager(); | ||
seleniumBuilderManager.executeSeleniumBuilder(false, getScriptFile()); | ||
|
||
return true; | ||
} | ||
|
||
public String getScriptFile() { | ||
return scriptFile; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> { | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Invoke Selenium Builder script"; | ||
} | ||
|
||
@Override | ||
public boolean isApplicable(Class<? extends AbstractProject> jobType) { | ||
return true; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" | ||
xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | ||
|
||
<f:block> | ||
<f:section title="Selenium Builder Options"> | ||
<f:entry title="${%Blah Script File}" field="scriptFile"> | ||
<f:textbox id="scriptFile"/> | ||
</f:entry> | ||
</f:section> | ||
</f:block> | ||
</j:jelly> |
c3047f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jenkins » sauce-ondemand-plugin #58 FAILURE
Looks like this commit caused a build failure
(what's this?)