ci043-add-jenkins-ci #13

Merged
jared merged 36 commits from ci043-add-jenkins-ci into development 2025-06-25 16:40:38 +02:00
Showing only changes of commit 41a98d3d1d - Show all commits

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