added first Jenkins ci
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit

This commit is contained in:
2025-06-25 09:52:46 +02:00
parent b4c669226f
commit 41a98d3d1d

37
Jenkinsfile vendored Normal file
View File

@@ -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!'
}
}
}