added first Jenkins ci
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
This commit is contained in:
37
Jenkinsfile
vendored
Normal file
37
Jenkinsfile
vendored
Normal 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!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user