deis / deis/workflow-cli

Extract common Jenkinsfile logic into Pipeline Global Library

Offen
#142 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Go
Sterne
31
Forks
42
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

This repo's [Jenkinsfile](https://github.com/deis/workflow-cli/blob/master/Jenkinsfile) as well as the [controller-sdk-go](https://github.com/deis/controller-sdk-go) repo's [Jenkinsfile](https://github.com/deis/controller-sdk-go/blob/master/Jenkinsfile) share common logic, especially as of https://github.com/deis/controller-sdk-go/pull/46 which builds workflow-cli in place, duplicating many steps used in this repo's pipeline.

It would be preferable if we extracted shared logic into common functionality via the [Pipeline Global Library](https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md#pipeline-global-library) to both reduce duplication and enable only making changes to such functionality in one location. Some functionality will even prove to be generally useful outside of workflow-cli/controller-sdk-go's scope, such as [sending email notifications on e2e failures](https://github.com/deis/workflow-cli/pull/133).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Vergleiche das Jenkinsfile dieses Repos mit dem Jenkinsfile von controller-sdk-go und achte besonders auf die durch controller-sdk-go#46 eingeführten duplizierten Schritte. Lies die Dokumentation zu Pipeline Global Library und workflow-cli#133 für das Beispiel zur E-Mail-Benachrichtigung; erledigt ist die Aufgabe, wenn die gemeinsame Logik zentralisiert ist und beide Pipelines sie verwenden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
go
Bereich
build-system, ci-cd, devops
Issue-Typ
Refactoring
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

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