-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
37 lines (37 loc) · 1.05 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
pipeline {
agent {
docker {
image 'mcr.microsoft.com/playwright:v1.34.3-jammy'
args '-p 3000:3000 -p 5000:5000 -u root'
}
}
stages {
stage('Build') {
steps {
sh 'PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install'
}
}
stage('Test') {
steps {
sh 'npm run test:pw'
}
}
stage('Report') {
steps {
publishHTML (target : [allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'playwright-report',
reportFiles: 'index.html',
reportName: 'Playwright Report',
reportTitles: 'PW Report'])
}
}
}
post {
always {
archiveArtifacts artifacts: 'playwright-report/**/*.*', fingerprint: true
junit 'test-results/**/*.xml'
}
}
}