diff --git a/.github/workflows/pr-docker-build.yml b/.github/workflows/pr-docker-build.yml index 50bba361..9cf0b2b8 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 diff --git a/Jenkinsfile b/Jenkinsfile index 75c1ce0f..57d6bf97 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,25 +27,13 @@ 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 { echo 'Build completed successfully!'