fix: add workaround for Jenkins
This commit is contained in:
parent
e6b163fdd5
commit
991e9b2ffc
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user