feat: Jenkinsfile

This commit is contained in:
ISA
2025-08-28 07:59:32 +02:00
parent 2d9a7118c6
commit 37bbd6a9b3
7 changed files with 43 additions and 5 deletions

31
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,31 @@
pipeline {
agent any
environment {
CI = 'true'
}
stages {
stage('Install dependencies') {
steps {
script {
if (fileExists('package-lock.json')) {
bat 'npm ci'
} else {
bat 'npm install'
}
}
}
}
stage('Run Playwright tests') {
steps {
bat 'npx playwright install --with-deps'
bat 'npx playwright test'
}
}
}
post {
always {
junit 'playwright/test-results/**/*.xml'
archiveArtifacts artifacts: 'playwright/test-results/**', allowEmptyArchive: true
}
}
}