Skip to content

Commit

Permalink
Update Jenkinsfile1
Browse files Browse the repository at this point in the history
  • Loading branch information
effortlessdevsec authored Jun 4, 2024
1 parent 129b588 commit e9e4bd1
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions Jenkinsfile1
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
pipeline {
agent any
pipeline {
agent any

tools {nodejs "node"}
tools {nodejs "node"}
tools {snyk "snyk"}

stages {
stage("BUILD") {
steps {
echo "Starting building the Node.js application"
sh 'npm i'

stages {
stage("BUILD") {
steps {
echo "Starting building the Node.js application"
sh 'npm i'

}
}
}
}

post {
failure {
error 'Error in pipeline!'

stage("SECURITY TEST"){

parallel {

stage("SCA SCAN")
{
sh 'snyk test'

}
}



}

post {
failure {
error 'Error in pipeline!'
}
}
}
}

0 comments on commit e9e4bd1

Please sign in to comment.