improve Jenkinsfile, do more testing
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2020-05-16 10:14:40 +02:00
parent 4e72b41971
commit 6ecdb5be47
Signed by: kunsi
GPG key ID: 12E3D2136B818350

46
Jenkinsfile vendored
View file

@ -8,19 +8,47 @@ pipeline {
virtualenv -p python3 venv
. venv/bin/activate
pip install --upgrade pip
"""
sh """
. venv/bin/activate
pip install -r requirements.txt
"""
}
}
stage('bw_test') {
steps {
sh """
. venv/bin/activate
bw test --ignore-missing-faults
"""
stage('bw test') {
parallel {
stage('ignore missing vaults') {
steps {
sh """
. venv/bin/activate
bw test --ignore-missing-faults
"""
}
}
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') {