Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-39950] Reproduced broken links.
- Loading branch information
Showing
7 changed files
with
254 additions
and
67 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
35 changes: 35 additions & 0 deletions
35
...main/java/org/jenkinsci/test/acceptance/plugins/workflow_multibranch/GitBranchSource.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,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; | ||
} | ||
} |
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
Oops, something went wrong.