Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
254 additions
and 67 deletions.
- +5 −31 src/main/java/org/jenkinsci/test/acceptance/plugins/dashboard_view/DashboardView.java
- +38 −16 src/main/java/org/jenkinsci/test/acceptance/plugins/git/GitRepo.java
- +7 −2 src/main/java/org/jenkinsci/test/acceptance/plugins/nested_view/NestedView.java
- +35 −0 src/main/java/org/jenkinsci/test/acceptance/plugins/workflow_multibranch/GitBranchSource.java
- +12 −6 src/main/java/org/jenkinsci/test/acceptance/po/View.java
- +142 −12 src/test/java/plugins/AnalysisCollectorPluginTest.java
- +15 −0 src/test/resources/analysis_collector_plugin/Jenkinsfile
@@ -0,0 +1,35 @@ | ||
package org.jenkinsci.test.acceptance.plugins.workflow_multibranch; | ||
|
||
import org.jenkinsci.test.acceptance.po.Control; | ||
import org.jenkinsci.test.acceptance.po.Describable; | ||
import org.jenkinsci.test.acceptance.po.WorkflowMultiBranchJob; | ||
import org.openqa.selenium.By; | ||
import org.openqa.selenium.support.ui.Select; | ||
|
||
/** | ||
* Git Branch Source for the pipeline multi-branch plugin. | ||
* | ||
* @author Ullrich Hafner | ||
*/ | ||
@Describable("Git") | ||
// TODO: Remove duplicates with GitScm | ||
public class GitBranchSource extends BranchSource { | ||
private final Control remote = control("remote"); | ||
|
||
public GitBranchSource(WorkflowMultiBranchJob job, String path) { | ||
super(job, path); | ||
} | ||
|
||
public GitBranchSource setRemote(final String remoteUrl) { | ||
this.remote.set(remoteUrl); | ||
|
||
return this; | ||
} | ||
|
||
public GitBranchSource setCredentials(final String name) { | ||
Select select = new Select(control(By.className("credentials-select")).resolve()); | ||
select.selectByVisibleText(name); | ||
|
||
return this; | ||
} | ||
} |
Oops, something went wrong.