From 1e669f69b219020c5c6c9820dbc5b3997abd4ea6 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 14 Apr 2025 02:46:22 +0200 Subject: [PATCH 1/4] pr-docker-build.yml aktualisieren --- .github/workflows/pr-docker-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr-docker-build.yml b/.github/workflows/pr-docker-build.yml index 50bba361..931db57f 100644 --- a/.github/workflows/pr-docker-build.yml +++ b/.github/workflows/pr-docker-build.yml @@ -8,6 +8,10 @@ jobs: build-and-publish: runs-on: ubuntu-latest + permissions: + contents: read # for actions/checkout and general read access + packages: write # to push images to ghcr.io + steps: - name: Checkout code uses: actions/checkout@v4 From 956c5825e44353ebc8a016fa5b708962ada01244 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 14 Apr 2025 03:11:02 +0200 Subject: [PATCH 2/4] Jenkinsfile aktualisieren --- Jenkinsfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75c1ce0f..5d56f6b1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,23 +27,14 @@ pipeline { } } - stage('Run Unit Tests') { - steps { - sh 'npm test' - } - } - stage('Build Project') { steps { - sh 'npm run build 2>&1 | tee build_report.log' // Captures build output + sh 'npm run build' } } } post { always { - junit '**/reports/junit.xml' - archiveArtifacts artifacts: 'reports/**', fingerprint: true - archiveArtifacts artifacts: 'build_report.log', fingerprint: true cleanWs(cleanWhenNotBuilt: false, notFailBuild: true) } success { From 936a1fbf7e265aafecd5848144880ea377c825e7 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 14 Apr 2025 04:21:50 +0200 Subject: [PATCH 3/4] Update pr-docker-build.yml --- .github/workflows/pr-docker-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-docker-build.yml b/.github/workflows/pr-docker-build.yml index 931db57f..9cf0b2b8 100644 --- a/.github/workflows/pr-docker-build.yml +++ b/.github/workflows/pr-docker-build.yml @@ -8,9 +8,9 @@ jobs: build-and-publish: runs-on: ubuntu-latest - permissions: - contents: read # for actions/checkout and general read access - packages: write # to push images to ghcr.io + permissions: + contents: read # for actions/checkout and general read access + packages: write # to push images to ghcr.io steps: - name: Checkout code From 1d248bb25a5c596c20cbe78babee77c981b30d27 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 14 Apr 2025 04:26:36 +0200 Subject: [PATCH 4/4] Update Jenkinsfile --- Jenkinsfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5d56f6b1..57d6bf97 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,9 +34,6 @@ pipeline { } } post { - always { - cleanWs(cleanWhenNotBuilt: false, notFailBuild: true) - } success { echo 'Build completed successfully!'