OpenQAOpenQA
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 Tests
2 
3on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8 
9jobs:
10 openqa:
11 runs-on: ubuntu-latest
12 steps:
13 - name: Trigger OpenQA
14 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 results
20 run: |
21 sleep 60
22 curl https://your-openqa-instance.com/api/status

GitLab CI

.gitlab-ci.yml
1openqa:
2 stage: test
3 script:
4 - curl -X POST $OPENQA_URL/api/brain/run
5 only:
6 - main
7 when: on_success

Jenkins

Jenkinsfile
1pipeline {
2 agent any
3 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}

Next Steps