2020-05-09 11:15:19 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('install_requirements') {
|
|
|
|
steps {
|
|
|
|
sh """
|
|
|
|
[ -d venv ] && rm -rf venv
|
|
|
|
virtualenv -p python3 venv
|
|
|
|
. venv/bin/activate
|
|
|
|
pip install --upgrade pip
|
|
|
|
pip install -r requirements.txt
|
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
2020-05-16 08:14:40 +00:00
|
|
|
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
|
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 11:15:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('cleanup') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf venv'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|