We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d855a3f commit 53f02eeCopy full SHA for 53f02ee
1 file changed
JenkinsFile
@@ -1,22 +1,22 @@
1
pipeline {
2
agent any
3
4
- environment {
5
- NODE_HOME = tool name: 'plwnodejs', type: 'NodeJS'
6
- PATH = "${NODE_HOME}/bin:${env.PATH}"
7
- }
8
-
9
stages {
10
stage('Checkout') {
11
steps {
12
checkout scm
13
}
14
+
+ stage('Install Dependencies') {
+ steps {
+ sh 'npm ci'
+ sh 'npx playwright install --with-deps'
15
+ }
16
17
18
stage('Run Playwright Tests') {
19
- // Run Playwright tests using npx
- sh 'npx playwright install'
20
sh 'npx playwright test --grep PlaywrightWithJenkins' // You can specify browsers or configurations
21
22
0 commit comments