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 {
agent { node { label 'podman-aws-trivy' } }
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
stage('Build'){
steps {
@ -8,6 +15,12 @@ pipeline {
}
}
stage('Test'){
steps {
sh 'make test'
}
}
// Scan via trivy
stage('Scan'){
environment {

View File

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