We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 010dbc3 commit ba5a692Copy full SHA for ba5a692
1 file changed
JenkinsFile
@@ -12,24 +12,14 @@ pipeline {
12
checkout scm
13
}
14
15
- stage('Install Dependencies') {
16
- steps {
17
- // Ensure dependencies are installed using npm ci
18
- sh 'npm ci'
19
- }
20
+
21
stage('Run Playwright Tests') {
22
steps {
23
// Run Playwright tests using npx
+ sh 'npm install -g'
24
sh 'npx playwright install'
25
sh 'npx playwright test --grep PlaywrightWithJenkins' // You can specify browsers or configurations
26
27
28
- stage('Cleanup') {
29
30
- // Clean up after the tests, if needed
31
- sh 'rm -rf node_modules' // Example cleanup step
32
33
34
35
0 commit comments