From 37bbd6a9b30641202cb7bfddcb86ff39c8c5ca72 Mon Sep 17 00:00:00 2001 From: ISA Date: Thu, 28 Aug 2025 07:59:32 +0200 Subject: [PATCH] feat: Jenkinsfile --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++++ Jenkinsfile | 31 +++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- playwright/tests/combined.spec.ts | 2 ++ 7 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 Jenkinsfile diff --git a/.env.development b/.env.development index 0454657..427cfb9 100644 --- a/.env.development +++ b/.env.development @@ -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.755 +NEXT_PUBLIC_APP_VERSION=1.6.756 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index c3a6fcb..682f9f9 100644 --- a/.env.production +++ b/.env.production @@ -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.755 +NEXT_PUBLIC_APP_VERSION=1.6.756 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f1f39a..8123496 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.756] – 2025-08-28 + +- WIP: playwright Präsentation + +--- ## [1.6.755] – 2025-08-28 - fix: KabelModulstatus KÜ V 421 und 431 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..08bea84 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent any + environment { + CI = 'true' + } + stages { + stage('Install dependencies') { + steps { + script { + if (fileExists('package-lock.json')) { + bat 'npm ci' + } else { + bat 'npm install' + } + } + } + } + stage('Run Playwright tests') { + steps { + bat 'npx playwright install --with-deps' + bat 'npx playwright test' + } + } + } + post { + always { + junit 'playwright/test-results/**/*.xml' + archiveArtifacts artifacts: 'playwright/test-results/**', allowEmptyArchive: true + } + } +} diff --git a/package-lock.json b/package-lock.json index 1b97890..fa68c4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.755", + "version": "1.6.756", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.755", + "version": "1.6.756", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 3247c2c..2ea93e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.755", + "version": "1.6.756", "private": true, "scripts": { "dev": "next dev", diff --git a/playwright/tests/combined.spec.ts b/playwright/tests/combined.spec.ts index c7c3c44..b3a9ef5 100644 --- a/playwright/tests/combined.spec.ts +++ b/playwright/tests/combined.spec.ts @@ -3,6 +3,8 @@ import { runDashboardTest } from "./dashboardTest"; import { runAnalogInputsTest } from "./analogInputsTest"; import { runSettingsPageTest } from "./settingsPageTest"; +import "./digitalInputsTest"; + test("Dashboard, AnalogInputs und SettingsPage", async ({ page }) => { await runDashboardTest(page); await runAnalogInputsTest(page);