Skip to content

Commit 53f02ee

Browse files
authored
Update JenkinsFile
1 parent d855a3f commit 53f02ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

JenkinsFile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
pipeline {
22
agent any
33

4-
environment {
5-
NODE_HOME = tool name: 'plwnodejs', type: 'NodeJS'
6-
PATH = "${NODE_HOME}/bin:${env.PATH}"
7-
}
8-
94
stages {
105
stage('Checkout') {
116
steps {
127
checkout scm
138
}
149
}
10+
11+
stage('Install Dependencies') {
12+
steps {
13+
sh 'npm ci'
14+
sh 'npx playwright install --with-deps'
15+
}
16+
}
1517

1618
stage('Run Playwright Tests') {
1719
steps {
18-
// Run Playwright tests using npx
19-
sh 'npx playwright install'
2020
sh 'npx playwright test --grep PlaywrightWithJenkins' // You can specify browsers or configurations
2121
}
2222
}

0 commit comments

Comments
 (0)