Intégration

Composants GitLab CI Pathly

pathly-ping et pathly-scenario dans le catalogue GitLab — pipeline rouge si le smoke échoue.

Contrat OpenAPIÉmettre une clé d’APICompte Solo gratuit

Document complet, sans authentification, à donner à votre générateur de client.

GitLab CI

Composants CI officiels sous gitlab.com/pathly1/provider/gitlab-ci, publiés dans le CI/CD Catalog GitLab (sources monorepo integrations/gitlab-ci). pathly-ping vérifie la clé ; pathly-assert échoue si lastStatus ≠ ok ; pathly-run déclenche et attend ; pathly-scenario assure un Ping. Déclarez PATHLY_API_TOKEN en variable masquée / protégée du projet ou du groupe.

Enchaînez le composant après le job de deploy (stage smoke). Si ping échoue, le pipeline devient rouge avant la promotion en production.

include pathly-assert

# .gitlab-ci.yml
include:
  - component: gitlab.com/pathly1/provider/gitlab-ci/pathly-assert@0.1.2
    inputs:
      api_token: $PATHLY_API_TOKEN
      scenario_id: $PATHLY_SCENARIO_ID

pathly-run (smoke post-deploy)

include:
  - component: gitlab.com/pathly1/provider/gitlab-ci/pathly-run@0.1.2
    inputs:
      api_token: $PATHLY_API_TOKEN
      scenario_id: $PATHLY_SCENARIO_ID
      timeout_sec: "120"

pathly-scenario

include:
  - component: gitlab.com/pathly1/provider/gitlab-ci/pathly-scenario@0.1.2
    inputs:
      api_token: $PATHLY_API_TOKEN
      scenario_name: Checkout
      scenario_url: https://www.example.com/cart
      interval_sec: "300"