From c8f3d91f9c081aaa78f1c20b1dd0261744f0c9b1 Mon Sep 17 00:00:00 2001 From: ISA Date: Thu, 28 Aug 2025 08:13:53 +0200 Subject: [PATCH] fix: Jenkinsfile --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++++ Jenkinsfile | 15 ++++++++++----- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.env.development b/.env.development index 427cfb9..81a802c 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.756 +NEXT_PUBLIC_APP_VERSION=1.6.757 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 682f9f9..6ed8e6c 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.756 +NEXT_PUBLIC_APP_VERSION=1.6.757 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8123496..c453fc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.757] – 2025-08-28 + +- feat: Jenkinsfile + +--- ## [1.6.756] – 2025-08-28 - WIP: playwright Präsentation diff --git a/Jenkinsfile b/Jenkinsfile index 08bea84..5118432 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,10 @@ pipeline { - agent any + agent { + docker { + image 'mcr.microsoft.com/playwright:v1.45.0-jammy' + args '-u root' + } + } environment { CI = 'true' } @@ -8,17 +13,17 @@ pipeline { steps { script { if (fileExists('package-lock.json')) { - bat 'npm ci' + sh 'npm ci' } else { - bat 'npm install' + sh 'npm install' } } } } stage('Run Playwright tests') { steps { - bat 'npx playwright install --with-deps' - bat 'npx playwright test' + sh 'npx playwright install' + sh 'npx playwright test || true' } } } diff --git a/package-lock.json b/package-lock.json index fa68c4d..832479d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.756", + "version": "1.6.757", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.756", + "version": "1.6.757", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 2ea93e4..657d72d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.756", + "version": "1.6.757", "private": true, "scripts": { "dev": "next dev",