Skip to content

Commit ba5a692

Browse files
authored
Update JenkinsFile
1 parent 010dbc3 commit ba5a692

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

JenkinsFile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,14 @@ pipeline {
1212
checkout scm
1313
}
1414
}
15-
stage('Install Dependencies') {
16-
steps {
17-
// Ensure dependencies are installed using npm ci
18-
sh 'npm ci'
19-
}
20-
}
15+
2116
stage('Run Playwright Tests') {
2217
steps {
2318
// Run Playwright tests using npx
19+
sh 'npm install -g'
2420
sh 'npx playwright install'
2521
sh 'npx playwright test --grep PlaywrightWithJenkins' // You can specify browsers or configurations
2622
}
2723
}
28-
stage('Cleanup') {
29-
steps {
30-
// Clean up after the tests, if needed
31-
sh 'rm -rf node_modules' // Example cleanup step
32-
}
33-
}
3424
}
3525
}

0 commit comments

Comments
 (0)