Docs Navigation
Jenkins
Add a SentinelQA upload step after your Playwright tests. Store environment variables in Jenkins credentials and inject them into the pipeline.
groovy
pipeline {
agent any
stages {
stage('Install') {
steps {
sh 'npm ci'
}
}
stage('Test') {
steps {
sh 'npm run test:playwright'
}
}
stage('Upload') {
environment {
SENTINELQA_API_KEY = credentials('SENTINELQA_API_KEY')
}
steps {
sh 'npx sentinelqa upload'
}
}
}
}