Modernised the tests
All checks were successful
ci-tests/multiAgent-scripted/pipeline/head This commit looks good
All checks were successful
ci-tests/multiAgent-scripted/pipeline/head This commit looks good
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -2,13 +2,13 @@ node {
|
|||||||
/* Requires the Docker Pipeline plugin to be installed */
|
/* Requires the Docker Pipeline plugin to be installed */
|
||||||
|
|
||||||
stage('Back-end') {
|
stage('Back-end') {
|
||||||
docker.image('maven:3.8.1-adoptopenjdk-11').inside {
|
docker.image('maven:3-amazoncorretto-23-alpine').inside {
|
||||||
sh 'mvn --version'
|
sh 'mvn --version'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Front-end') {
|
stage('Front-end') {
|
||||||
docker.image('node:14-alpine').inside {
|
docker.image('node:16-alpine').inside {
|
||||||
sh 'npm --version'
|
sh 'npm --version'
|
||||||
sh 'npx --version'
|
sh 'npx --version'
|
||||||
sh 'node --version'
|
sh 'node --version'
|
||||||
@@ -16,7 +16,7 @@ node {
|
|||||||
}
|
}
|
||||||
stage('vulnerability scanner') {
|
stage('vulnerability scanner') {
|
||||||
sh """
|
sh """
|
||||||
docker run --rm anchore/grype:v0.73.5 debian:wheezy-20170907 | \
|
docker run --rm anchore/grype:v0.80.2 debian:buster-20190326 | \
|
||||||
grep -iE 'high|medium' | \
|
grep -iE 'high|medium' | \
|
||||||
sort -rk 7
|
sort -rk 7
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user