improve Jenkinsfile, do more testing
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
4e72b41971
commit
6ecdb5be47
1 changed files with 37 additions and 9 deletions
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
|
@ -8,14 +8,13 @@ pipeline {
|
|||
virtualenv -p python3 venv
|
||||
. venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
"""
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('bw_test') {
|
||||
stage('bw test') {
|
||||
parallel {
|
||||
stage('ignore missing vaults') {
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
|
@ -23,6 +22,35 @@ pipeline {
|
|||
"""
|
||||
}
|
||||
}
|
||||
stage('dummy mode') {
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
export BW_VAULT_DUMMY_MODE=1
|
||||
bw test
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('secret rotation') {
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
export BW_VAULT_DUMMY_MODE=1
|
||||
bw test -s ''
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('determinism') {
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
export BW_VAULT_DUMMY_MODE=1
|
||||
bw test --metadata-determinism 3 --config-determinism 3
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('cleanup') {
|
||||
steps {
|
||||
sh 'rm -rf venv'
|
||||
|
|
Loading…
Reference in a new issue