levonet.ci_github_rm_branch

CI : Supprimer une branche du dépôt github.

Ce rôle est utile dans le pipeline CI après la fusion d'une Pull Request.

Variables de rôle

  • ci_github_api (par défaut : https://api.github.com)
  • ci_github_username (obligatoire) : Nom d'utilisateur Github.
  • ci_github_password (obligatoire) : Jeton d'accès Github.
  • ci_github_owner (obligatoire) : Nom du propriétaire ou de l'organisation Github.
  • ci_github_repo (obligatoire) : Nom du dépôt du projet Github.
  • ci_github_ref (obligatoire) : Nom de la référence Github.
  • ci_github_ignore_error (par défaut : oui) : Ignorer les erreurs.

Exemple de Playbook

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

Et exécuter dans Jenkins :

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

Licence

MIT

Informations sur l'auteur

Ce rôle a été créé par Pavlo Bashynskyi

À propos du projet

Remove branch from github repository.

Installer
ansible-galaxy install levonet.ci_github_rm_branch
Licence
mit
Téléchargements
16.7k
Propriétaire