Files
multiAgent-scripted/Jenkinsfile
Mpho raf 812de20570
All checks were successful
ci-tests/multiAgent-scripted/pipeline/head This commit looks good
Modernised the tests
2024-10-03 12:40:18 +02:00

25 lines
601 B
Groovy

node {
/* Requires the Docker Pipeline plugin to be installed */
stage('Back-end') {
docker.image('maven:3-amazoncorretto-23-alpine').inside {
sh 'mvn --version'
}
}
stage('Front-end') {
docker.image('node:16-alpine').inside {
sh 'npm --version'
sh 'npx --version'
sh 'node --version'
}
}
stage('vulnerability scanner') {
sh """
docker run --rm anchore/grype:v0.80.2 debian:buster-20190326 | \
grep -iE 'high|medium' | \
sort -rk 7
"""
}
}