jenkinsci / jenkinsci/java-client-api

JENKINS-45898 Proper Multibranch pipeline support

Offen
#273 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
913
Forks
466
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently, the Java client api does not have proper support for Multibranch projects. Since these differ a bit from other types of jobs, how to use the Java client api's are not intuitive. The code base does not really take Multibranch projects in to account either. It would preferable if these could be supported out of the box with proper object models.

The current workaround is to mimic the Multibranch job as a folder, such as:
```
FolderJob multibranchRoot = new FolderJob(createdJob.getName(), jenkinsUrl + '/job/' + createdJob.getName() + '/')
def job = jenkins.getJob(multibranchRoot, 'master')
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.