We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dd5abe commit 917f227Copy full SHA for 917f227
JenkinsFile
@@ -21,7 +21,7 @@ pipeline {
21
stage('Run Playwright Tests') {
22
steps {
23
// Run Playwright tests using npx
24
- sh 'npx playwright test --project=firefox' // You can specify browsers or configurations
+ sh 'npx playwright test --grep @PlaywrightWithJenkins' // You can specify browsers or configurations
25
}
26
27
stage('Cleanup') {
@@ -35,7 +35,9 @@ pipeline {
35
post {
36
always {
37
// Ensure workspace is cleaned up after the tests, even if they fail
38
- cleanWs()
+ node {
39
+ cleanWs()
40
+ }
41
42
success {
43
echo 'Tests passed successfully!'
0 commit comments