fix: add workaround for Jenkins

This commit is contained in:
Stefan Reimer 2022-01-16 11:55:02 +01:00
parent e6b163fdd5
commit 991e9b2ffc
2 changed files with 15 additions and 0 deletions

13
Jenkinsfile vendored
View File

@ -1,6 +1,13 @@
pipeline { pipeline {
agent { node { label 'podman-aws-trivy' } } agent { node { label 'podman-aws-trivy' } }
stages { stages {
stage('Prepare'){
steps {
// get tags
sh 'git fetch --tags ${env.GIT_URL}" +refs/heads/${env.BRANCH_NAME}:refs/remotes/origin/${env.BRANCH_NAME}'
}
}
// Build using rootless podman // Build using rootless podman
stage('Build'){ stage('Build'){
steps { steps {
@ -8,6 +15,12 @@ pipeline {
} }
} }
stage('Test'){
steps {
sh 'make test'
}
}
// Scan via trivy // Scan via trivy
stage('Scan'){ stage('Scan'){
environment { environment {

View File

@ -27,3 +27,5 @@ push:
scan: scan:
trivy $(TRIVY_OPTS) $(REPOSITORY):$(TAG) trivy $(TRIVY_OPTS) $(REPOSITORY):$(TAG)
test: