Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-56290] Impossible to Add Streams with Exact Names to Multibranch Pipeline #93

Merged
merged 3 commits into from
Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,6 @@ private List<String> getDepotsForDirs() throws Exception {
* @throws Exception push up stack
*/
public List<IStreamSummary> getStreams(List<String> paths) throws Exception {
ListIterator<String> list = paths.listIterator();
while (list.hasNext()) {
String i = list.next();
if (!i.contains("...") && !i.contains("*")) {
list.set(i + "*");
}
}

GetStreamsOptions opts = new GetStreamsOptions();
List<IStreamSummary> streams = connection.getStreams(paths, opts);
return streams;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div>
<p>A List of Perforce depot paths to one or more Streams (separated by new lines). The plugin will recursively search for a
<code>Jenkinsfile</code> (or defined item) using the Stream name for the multi-branch name.</p>
<p><code>...</code> or <code>*</code> can be used as wildcards in Perforce depot paths.</p>
<p>For example: <code>//streams/...</code></p>
</div>