chore: Jenkinsfile
This commit is contained in:
@@ -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.854
|
NEXT_PUBLIC_APP_VERSION=1.6.855
|
||||||
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)
|
||||||
|
|
||||||
|
|||||||
@@ -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.854
|
NEXT_PUBLIC_APP_VERSION=1.6.855
|
||||||
NEXT_PUBLIC_CPL_MODE=production
|
NEXT_PUBLIC_CPL_MODE=production
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## [1.6.855] – 2025-09-05
|
||||||
|
|
||||||
|
- fix: allow scripts in woodpecker
|
||||||
|
|
||||||
|
---
|
||||||
## [1.6.854] – 2025-09-05
|
## [1.6.854] – 2025-09-05
|
||||||
|
|
||||||
- fix: woodpecker allow scripts
|
- fix: woodpecker allow scripts
|
||||||
|
|||||||
50
Jenkinsfile
vendored
50
Jenkinsfile
vendored
@@ -6,13 +6,51 @@ pipeline {
|
|||||||
stage('Versions') {
|
stage('Versions') {
|
||||||
steps { sh 'node -v && npm -v' }
|
steps { sh 'node -v && npm -v' }
|
||||||
}
|
}
|
||||||
stage('Install deps') {
|
|
||||||
steps { sh 'npm ci' }
|
stage('Verify mocks') {
|
||||||
}
|
|
||||||
stage('Playwright tests') {
|
|
||||||
steps {
|
steps {
|
||||||
sh 'npx playwright install' // Browser-Binärdateien laden
|
sh '''
|
||||||
sh 'npx playwright test'
|
set -euxo pipefail
|
||||||
|
npm ci
|
||||||
|
echo "=== git ls-files ==="
|
||||||
|
git ls-files | grep -i "^mocks/device-cgi-simulator/SERVICE/systemMockData.js" || true
|
||||||
|
echo "=== ls -la ==="
|
||||||
|
ls -la mocks/device-cgi-simulator/SERVICE || true
|
||||||
|
echo "=== file exists? ==="
|
||||||
|
test -f mocks/device-cgi-simulator/SERVICE/systemMockData.js && echo "FOUND" || (echo "MISSING" && exit 1)
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build & E2E (chromium)') {
|
||||||
|
environment {
|
||||||
|
CI = 'true'
|
||||||
|
NODE_ENV = 'production'
|
||||||
|
NEXT_TELEMETRY_DISABLED = '1'
|
||||||
|
PORT = '3000'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
set -euxo pipefail
|
||||||
|
# Install devDependencies as well (rimraf, cross-env, etc.)
|
||||||
|
env npm_config_production=false npm ci
|
||||||
|
|
||||||
|
# Build Next.js
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
# Start local static simulator in background
|
||||||
|
npm run server:sim &
|
||||||
|
|
||||||
|
# Ensure Playwright browsers and OS deps are installed (best-effort)
|
||||||
|
npx playwright install-deps || true
|
||||||
|
npx playwright install
|
||||||
|
|
||||||
|
# Wait until simulator responds on port 3000 (no curl dependency)
|
||||||
|
node -e "const http=require('http');let n=120;function ping(){http.get('http://localhost:3000',res=>{console.log('Server is up');process.exit(0)}).on('error',()=>{if(n--<=0){console.error('Server did not start');process.exit(1)}setTimeout(ping,1000)});}ping();"
|
||||||
|
|
||||||
|
# Run tests (chromium only to match Woodpecker)
|
||||||
|
npx playwright test --project=chromium
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.854",
|
"version": "1.6.855",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.854",
|
"version": "1.6.855",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/roboto": "^5.1.0",
|
"@fontsource/roboto": "^5.1.0",
|
||||||
"@headlessui/react": "^2.2.4",
|
"@headlessui/react": "^2.2.4",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.854",
|
"version": "1.6.855",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 3000",
|
"dev": "next dev -p 3000",
|
||||||
|
|||||||
Reference in New Issue
Block a user