bundlewrap/Jenkinsfile

64 lines
1.9 KiB
Text
Raw Normal View History

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') {
2020-05-17 17:15:43 +00:00
when {
branch 'master'
}
2020-05-16 08:14:40 +00:00
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 'root on,registration_shared_secret'
2020-05-16 08:14:40 +00:00
"""
}
}
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
}
}
2020-05-17 17:15:43 +00:00
}
post {
always {
sh 'rm -rf venv'
2020-05-09 11:15:19 +00:00
}
}
}