diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..be13e81 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,37 @@ + +pipeline { + agent { label 'nodejs-builder' } + + stages { + stage('Install Dependencies') { + steps { + sh 'npm ci' + } + } + + stage('Test & Security Audit') { + echo 'Start checking security vulnerabilities in npm packages' + steps { + sh 'npm audit' + } + } + + stage('Build') { + when { + branch 'development' + } + steps { + sh 'npm run build' + } + } + } + + post { + success { + echo 'Pipeline erfolgreich!' + } + failure { + echo 'Pipeline fehlgeschlagen!' + } + } +}