Skip to content

Commit 62f2c5c

Browse files
authored
Update JenkinsFile
1 parent d3cd40e commit 62f2c5c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

JenkinsFile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pipeline {
22
agent any
3-
environment {
4-
NODE_HOME = tool name: 'nodejs-latest', type: 'NodeJSInstallation'
5-
}
3+
//environment {
4+
// NODE_HOME = tool name: 'nodejs-latest', type: 'NodeJSInstallation'
5+
// }
66
stages {
77
stage('Checkout') {
88
steps {
@@ -13,16 +13,17 @@ pipeline {
1313
steps {
1414
script {
1515
// Use NodeJS tool configured in Jenkins
16-
env.PATH = "${NODE_HOME}/bin:${env.PATH}"
17-
sh 'npm install' // Install dependencies from package.json
16+
//env.PATH = "${NODE_HOME}/bin:${env.PATH}"
17+
//sh 'npm install' // Install dependencies from package.json
18+
sh 'npx playwright install'
1819
}
1920
}
2021
}
2122
stage('Run Playwright Tests') {
2223
steps {
2324
script {
2425
// Run the Playwright tests
25-
sh 'npx playwright install'
26+
// sh 'npx playwright install'
2627
sh 'npx playwright test --grep PlaywrightWithJenkins'
2728
}
2829
}

0 commit comments

Comments
 (0)