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