Some checks failed
InnoHub Processor/tatort/pipeline/head Something is wrong with the build of this commit
38 lines
705 B
Groovy
38 lines
705 B
Groovy
|
|
pipeline {
|
|
agent { label 'master' }
|
|
|
|
stages {
|
|
stage('Install Dependencies') {
|
|
steps {
|
|
sh 'npm ci'
|
|
}
|
|
}
|
|
|
|
stage('Test & Security Audit') {
|
|
steps {
|
|
echo 'Start checking security vulnerabilities in npm packages'
|
|
sh 'npm audit'
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
when {
|
|
branch 'development'
|
|
}
|
|
steps {
|
|
sh 'npm run build'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
echo 'Pipeline erfolgreich!'
|
|
}
|
|
failure {
|
|
echo 'Pipeline fehlgeschlagen!'
|
|
}
|
|
}
|
|
}
|