Integrations
CI/CD Pipelines
Integrate OpenQA into your CI/CD pipeline for automated testing on every deploy.
GitHub Actions
.github/workflows/openqa.yml
1name: OpenQA Tests2 3on:4 push:5 branches: [main]6 pull_request:7 branches: [main]8 9jobs:10 openqa:11 runs-on: ubuntu-latest12 steps:13 - name: Trigger OpenQA14 run: |15 curl -X POST https://your-openqa-instance.com/api/brain/run \16 -H "Authorization: Bearer ${{ secrets.OPENQA_TOKEN }}" \17 -H "Content-Type: application/json"18 19 - name: Wait for results20 run: |21 sleep 6022 curl https://your-openqa-instance.com/api/statusGitLab CI
.gitlab-ci.yml
1openqa:2 stage: test3 script:4 - curl -X POST $OPENQA_URL/api/brain/run5 only:6 - main7 when: on_successJenkins
Jenkinsfile
1pipeline {2 agent any3 stages {4 stage('OpenQA Tests') {5 steps {6 sh '''7 curl -X POST http://openqa.internal/api/brain/run \8 -H "Content-Type: application/json"9 '''10 }11 }12 }13}