Outils pour utilisateurs

Outils du site


tech:notes_gitlab-ci_pipeline_-_api

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_gitlab-ci_pipeline_-_api [2026/07/16 09:16] Jean-Baptistetech:notes_gitlab-ci_pipeline_-_api [2026/07/16 13:25] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 <!DOCTYPE markdown> <!DOCTYPE markdown>
-{{tag>Brouillon Gitlab CI API}}+{{tag>Brouillon Gitlab CI API Ansible}}
  
 # Notes Gitlab-ci pipeline - API # Notes Gitlab-ci pipeline - API
Ligne 74: Ligne 74:
 ~~~ ~~~
  
 +`play-launch-ci.yml`
 ~~~yaml ~~~yaml
 #! /usr/bin/env ansible-playbook #! /usr/bin/env ansible-playbook
Ligne 101: Ligne 102:
     - name: Call API     - name: Call API
       # no_log: true       # no_log: true
 +      register: reg_uri
 +      until: reg_uri.status == 201
 +      retries: 3
 +      delay: 5    # Every 5 seconds
       ansible.builtin.uri:       ansible.builtin.uri:
         url: "{{ url }}/projects/100/trigger/pipeline"         url: "{{ url }}/projects/100/trigger/pipeline"
         # validate_certs: false         # validate_certs: false
-        method: POST 
         status_code: 201         status_code: 201
 +        follow_redirects: none
 +        method: POST
         body_format: json         body_format: json
         headers:         headers:
tech/notes_gitlab-ci_pipeline_-_api.1784186205.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki