File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11pipeline {
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 }
You can’t perform that action at this time.
0 commit comments