ci043-add-jenkins-ci #13
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
@@ -7,27 +7,27 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Install Dependencies') {
|
// stage('Install Dependencies') {
|
||||||
steps {
|
// steps {
|
||||||
sh 'npm ci'
|
// sh 'npm ci'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
stage('Test & Security Audit') {
|
// stage('Test & Security Audit') {
|
||||||
steps {
|
// steps {
|
||||||
echo 'Start checking security vulnerabilities in npm packages'
|
// echo 'Start checking security vulnerabilities in npm packages'
|
||||||
sh 'npm audit'
|
// sh 'npm audit'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
stage('Build') {
|
// stage('Build') {
|
||||||
when {
|
// when {
|
||||||
branch 'development'
|
// branch 'development'
|
||||||
}
|
// }
|
||||||
steps {
|
// steps {
|
||||||
sh 'npm run build'
|
// sh 'npm run build'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
stage('Containerize') {
|
stage('Containerize') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user