Skip to content

Commit 917f227

Browse files
committed
Updated jenkins file
1 parent 8dd5abe commit 917f227

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

JenkinsFile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pipeline {
2121
stage('Run Playwright Tests') {
2222
steps {
2323
// Run Playwright tests using npx
24-
sh 'npx playwright test --project=firefox' // You can specify browsers or configurations
24+
sh 'npx playwright test --grep @PlaywrightWithJenkins' // You can specify browsers or configurations
2525
}
2626
}
2727
stage('Cleanup') {
@@ -35,7 +35,9 @@ pipeline {
3535
post {
3636
always {
3737
// Ensure workspace is cleaned up after the tests, even if they fail
38-
cleanWs()
38+
node {
39+
cleanWs()
40+
}
3941
}
4042
success {
4143
echo 'Tests passed successfully!'

0 commit comments

Comments
 (0)