Test: Jenkinsfile
This commit is contained in:
34
Jenkinsfile
vendored
34
Jenkinsfile
vendored
@@ -1,21 +1,19 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
NODE_PATH = '/var/jenkins_home/.npm/node_modules'
|
||||
NPM_CONFIG_CACHE = '/var/jenkins_home/.npm'
|
||||
agent any
|
||||
tools { nodejs 'node20' }
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps { checkout scm }
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Install dependencies') {
|
||||
steps {
|
||||
sh 'npm install --prefer-offline --no-audit'
|
||||
}
|
||||
}
|
||||
stage('Run Playwright tests') {
|
||||
steps {
|
||||
sh 'npx playwright test'
|
||||
}
|
||||
}
|
||||
stage('Install dependencies') {
|
||||
steps { sh 'npm ci' }
|
||||
}
|
||||
}
|
||||
stage('Playwright tests') {
|
||||
steps {
|
||||
// Installiert Browser & Systemdeps falls nötig
|
||||
sh 'npx playwright install --with-deps'
|
||||
sh 'npx playwright test'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user