diff --git a/.env.development b/.env.development index 7af4043..37e28ea 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.858 +NEXT_PUBLIC_APP_VERSION=1.6.859 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 e428c4b..d20f6a3 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.858 +NEXT_PUBLIC_APP_VERSION=1.6.859 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bac96c..adf8412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.859] – 2025-09-08 + +- Jenkinsfile auf Woodpecker-Parität umgestellt: + +--- ## [1.6.858] – 2025-09-08 - fix: Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile index 70c0f9b..d303f9c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,15 +21,32 @@ pipeline { } stages { + stage('Self-check Jenkinsfile version') { + steps { + sh '''#!/bin/bash +set -euo pipefail +echo '==== Showing first lines of Jenkinsfile (debug) ====' +head -n 40 Jenkinsfile || true +echo 'Git commit:' +git rev-parse --short HEAD || true + ''' + } + } + stage('Versions') { steps { - sh 'node -v && npm -v && npx playwright --version' + sh '''#!/bin/bash +set -euo pipefail +node -v && npm -v +npx playwright --version || true + ''' } } stage('Verify mocks') { steps { - sh '''bash -euo pipefail <<'EOF' + sh '''#!/bin/bash +set -euo pipefail echo "[Verify mocks] working dir: $(pwd)" node -v && npm -v echo "HUSKY=$HUSKY" @@ -39,27 +56,29 @@ git ls-files | grep -i '^mocks/device-cgi-simulator/SERVICE/systemMockData.js' | echo "=== ls -la ===" ls -la mocks/device-cgi-simulator/SERVICE || true echo "=== file exists? ===" -if [ -f mocks/device-cgi-simulator/SERVICE/systemMockData.js ]; then +if [[ -f mocks/device-cgi-simulator/SERVICE/systemMockData.js ]]; then echo 'FOUND' else echo 'MISSING'; exit 1 fi -EOF""" + ''' } } stage('Build') { steps { - sh '''bash -euo pipefail <<'EOF' + sh '''#!/bin/bash +set -euo pipefail env npm_config_production=false npm ci npm run build -EOF""" + ''' } } stage('E2E chromium') { steps { - sh '''bash -euo pipefail <<'EOF' + sh '''#!/bin/bash +set -euo pipefail echo 'Start simulator' npm run server:sim & SIM_PID=$! @@ -78,7 +97,7 @@ npx playwright install --with-deps chromium || true echo 'Run tests (chromium)' npx playwright test --project=chromium -EOF""" + ''' } } } diff --git a/package-lock.json b/package-lock.json index 2927ce7..46e95c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.858", + "version": "1.6.859", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.858", + "version": "1.6.859", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 448f07a..fb4c35c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.858", + "version": "1.6.859", "private": true, "scripts": { "dev": "next dev -p 3000",