From c74322228f1d88e00d93d0b46e78323beb9e7d79 Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 25 Jun 2025 16:34:17 +0200 Subject: [PATCH] activate ci and audit, deactivate docker --- Jenkinsfile | 44 ++++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ed6476a..1aa55ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,18 +7,18 @@ pipeline { } stages { - // stage('Install Dependencies') { - // steps { - // sh 'npm ci' - // } - // } + stage('Install Dependencies') { + steps { + sh 'npm ci' + } + } - // stage('Test & Security Audit') { - // steps { - // echo 'Start checking security vulnerabilities in npm packages' - // sh 'npm audit' - // } - // } + stage('Test & Security Audit') { + steps { + echo 'Start checking security vulnerabilities in npm packages' + sh 'npm audit' + } + } // stage('Build') { // when { @@ -29,24 +29,16 @@ pipeline { // } // } - // stage('Manuelles Containerisieren') { + // stage('Push image in gitea registry') { // steps { - // input message: 'Jetzt manuell freigeben für Deployment?', submitter: 'admin' - // sh 'docker build -t tatort-app .' - // sh 'docker image ls' + // echo 'Start Pushing' + // script { + // docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') { + // docker.build('innohub/tatort-app').push('latest') + // } + // } // } // } - - stage('Push image in gitea registry') { - steps { - echo 'Start Pushing' - script { - docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') { - docker.build('innohub/tatort/tatort-app').push('latest') - } - } - } - } } post {