test: jenkinsfile

This commit is contained in:
ISA
2025-08-28 08:52:47 +02:00
parent 539ebd5ff6
commit f9f358a678
6 changed files with 15 additions and 30 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.758
NEXT_PUBLIC_APP_VERSION=1.6.759
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.758
NEXT_PUBLIC_APP_VERSION=1.6.759
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.759] 2025-08-28
- test: WIP: digitalInputsTest.ts
---
## [1.6.758] 2025-08-28
- fix: Jenkinsfile

30
Jenkinsfile vendored
View File

@@ -1,36 +1,16 @@
pipeline {
agent {
docker {
image 'mcr.microsoft.com/playwright:v1.45.0-jammy'
args '-u root'
}
}
environment {
CI = 'true'
}
agent any
stages {
stage('Install dependencies') {
steps {
script {
if (fileExists('package-lock.json')) {
sh 'npm ci'
} else {
sh 'npm install'
}
}
bat 'npm ci'
}
}
stage('Run Playwright tests') {
steps {
sh 'npx playwright install'
sh 'npx playwright test || true'
bat 'npx playwright install'
bat 'npx playwright test'
}
}
}
post {
always {
junit 'playwright/test-results/**/*.xml'
archiveArtifacts artifacts: 'playwright/test-results/**', allowEmptyArchive: true
}
}
}
}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
"version": "1.6.758",
"version": "1.6.759",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
"version": "1.6.758",
"version": "1.6.759",
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.758",
"version": "1.6.759",
"private": true,
"scripts": {
"dev": "next dev",