From b011ab98626e3ad64c3140f0b82ac9c5ce86b728 Mon Sep 17 00:00:00 2001 From: ISA Date: Thu, 28 Aug 2025 15:36:32 +0200 Subject: [PATCH] feat: Jenkinsfile node_Modules verzeichnis in Docker Volume gespeichert --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++++ Jenkinsfile | 15 +++++++-------- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.env.development b/.env.development index 53b1e68..c0b00c7 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.765 +NEXT_PUBLIC_APP_VERSION=1.6.766 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 0dc1b11..dae1965 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.765 +NEXT_PUBLIC_APP_VERSION=1.6.766 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9073845..e2f8665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.766] – 2025-08-28 + +- Test: kabelueberwachungTest.ts + +--- ## [1.6.765] – 2025-08-28 - fix: Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile index 74fd057..0645b40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,20 +1,19 @@ pipeline { agent any + + environment { + NODE_PATH = '/var/jenkins_home/.npm/node_modules' + NPM_CONFIG_CACHE = '/var/jenkins_home/.npm' + } + stages { stage('Install dependencies') { steps { - sh 'npm ci' - } - } - stage('Start Webserver') { - steps { - sh 'nohup npm run dev &' - sleep(time: 20, unit: 'SECONDS') // Wartezeit für Server-Start + sh 'npm install --prefer-offline --no-audit' } } stage('Run Playwright tests') { steps { - sh 'npx playwright install' sh 'npx playwright test' } } diff --git a/package-lock.json b/package-lock.json index 010258c..81f54c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.765", + "version": "1.6.766", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.765", + "version": "1.6.766", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 57e28de..6ba6297 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.765", + "version": "1.6.766", "private": true, "scripts": { "dev": "next dev",