Skip to content

Instantly share code, notes, and snippets.

@icheko
Created July 30, 2021 16:57
Show Gist options
  • Save icheko/ab270eaa0d561c64ef860a15f840c06e to your computer and use it in GitHub Desktop.
Save icheko/ab270eaa0d561c64ef860a15f840c06e to your computer and use it in GitHub Desktop.
// load shared library via @Library or other methods
pipeline {
agent {
kubernetes {
yaml mergePodTemplates('node-10,sonar-scanner,veracode')
}
}
stages {
stage('Build App'){
steps {
container('node-10'){
sh 'npm install'
}
}
}
stage('SonarQube Analysis') {
steps {
container('sonar-scanner'){
// scan
}
}
}
stage('Veracode Analysis') {
steps {
container('veracode'){
// scan
}
}
}
} // stages
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment