working dir /app
Jenkins Trigger / trigger_jenkins (push) Waiting to run Details

This commit is contained in:
Artur Kuś 2025-09-04 20:35:41 +02:00
parent 63dd2171d5
commit 90f0dd2984
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ pipeline {
// Wykonaj osobno kroki npm wewnątrz kontenera
def containerName = "arti24-container"
sh "docker exec -w /app ${containerName} npm install --save-dev typescript"
sh "docker exec -w /app ${containerName} npm ci || (echo '❌ npm ci failed' && exit 1)"
sh "docker exec -w /app ${containerName} npm run build || (echo '❌ build failed' && exit 1)"
sh "docker exec -w /app ${containerName} npm start || (echo '❌ start failed' && exit 1)"