Skip to content

Commit 76b60b4

Browse files
author
Kamil
committed
3rd attempt to fix playwright browser issue
1 parent 432270b commit 76b60b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Jenkinsfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
pipeline {
22
agent {
33
docker {
4-
image 'node:18.18.2-alpine3.18'
4+
image 'mcr.microsoft.com/playwright:v1.39.0-jammy'
55
args '-p 3000:3000 -p 5000:5000 -u root'
66
}
77
}
88
stages {
99
stage('build') {
1010
steps {
1111
sh 'PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install'
12-
sh 'PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers npx playwright install'
1312
}
1413
}
1514
stage('test') {
1615
steps {
17-
sh 'PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers npm run test:pw'
16+
sh 'npm run test:pw'
1817
}
1918
}
2019
}

0 commit comments

Comments
 (0)