levonet.ci_github_rm_branch

CI: Entfernen eines Branches aus dem GitHub-Repository

Diese Rolle ist im CI-Pipeline nach dem Zusammenführen eines Pull Requests nützlich.

Rollenvariablen

  • ci_github_api (Standard: https://api.github.com)
  • ci_github_username (erforderlich): GitHub-Benutzername.
  • ci_github_password (erforderlich): GitHub-Zugangstoken.
  • ci_github_owner (erforderlich): GitHub-Besitzer oder Name der Organisation.
  • ci_github_repo (erforderlich): Name des GitHub-Projektrepositories.
  • ci_github_ref (erforderlich): GitHub-Referenzname.
  • ci_github_ignore_error (Standard: ja): Ignoriere alle Fehler.

Beispiel-Playbook

- hosts: 127.0.0.1
  connection: local
  gather_facts: no
  vars:
    ci_github_username: ci-bot
    ci_github_password: geheim
    ci_github_owner: meineorganisation
    ci_github_repo: meineanwendung
    ci_github_ref: "heads/{{ github_branch }}"
  roles:
    - role: levonet.ci_github_rm_branch

Und im Jenkins ausführen:

ansible-playbook myplaybook.yml -e github_branch="${X_GH_BRANCH}"

Lizenz

MIT

Autoreninformationen

Diese Rolle wurde von Pavlo Bashynskyi erstellt.

Über das Projekt

Remove branch from github repository.

Installieren
ansible-galaxy install levonet.ci_github_rm_branch
GitHub Repository
Lizenz
mit
Downloads
16.7k