fix: Jenkins

This commit is contained in:
Ismail Ali
2025-08-31 18:22:42 +02:00
parent 9147cec40f
commit d4d0c91400
8 changed files with 17 additions and 13 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.788 NEXT_PUBLIC_APP_VERSION=1.6.789
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) 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_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.788 NEXT_PUBLIC_APP_VERSION=1.6.789
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.789] 2025-08-31
- fix: Jenkins node20
---
## [1.6.788] 2025-08-31 ## [1.6.788] 2025-08-31
- Test: Jenkinsfile - Test: Jenkinsfile

9
Jenkinsfile vendored
View File

@@ -1,18 +1,17 @@
pipeline { pipeline {
agent any agent any
tools { nodejs 'node20' } // Name genau wie in Tools tools { nodejs 'node20' } // exakt der Name aus "Manage Jenkins → Tools"
stages { stages {
stage('Check versions') { stage('Versions') {
steps { sh 'node -v && npm -v' } steps { sh 'node -v && npm -v' }
} }
stage('Install dependencies') { stage('Install deps') {
steps { sh 'npm ci' } steps { sh 'npm ci' }
} }
stage('Playwright tests') { stage('Playwright tests') {
steps { steps {
// Dependencies installieren (falls fehlende Systemlibs meckern, sagen wir Bescheid) sh 'npx playwright install' // Browser-Binärdateien laden
sh 'npx playwright install'
sh 'npx playwright test' sh 'npx playwright test'
} }
} }

Binary file not shown.

4
package-lock.json generated
View File

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

View File

@@ -1,9 +1,9 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.788", "version": "1.6.789",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev -p 3000",
"clean": "rimraf .next out", "clean": "rimraf .next out",
"build": "npm run clean && cross-env EXPORT_STATIC=true next build", "build": "npm run clean && cross-env EXPORT_STATIC=true next build",
"postbuild": "copy LICENSE_ICONIFY.txt out\\LICENSE_ICONIFY.txt", "postbuild": "copy LICENSE_ICONIFY.txt out\\LICENSE_ICONIFY.txt",

View File

@@ -33,8 +33,8 @@ export default defineConfig({
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: { webServer: {
command: "npm run dev -p 3000", command: "npm run dev -- -p 3000", // wichtig: "--" damit npm das "-p" an next weiterreicht
url: process.env.E2E_BASE_URL || "http://localhost:3000", url: "http://localhost:3000",
reuseExistingServer: true, reuseExistingServer: true,
timeout: 120_000, timeout: 120_000,
}, },