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 {
|
2020-08-29 19:32:22 +00:00
|
|
|
branch 'main'
|
2020-05-17 17:15:43 +00:00
|
|
|
}
|
2020-05-16 08:14:40 +00:00
|
|
|
steps {
|
|
|
|
sh """
|
|
|
|
. venv/bin/activate
|
|
|
|
export BW_VAULT_DUMMY_MODE=1
|
|
|
|
bw test
|
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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
|
|
|
}
|
2020-11-11 08:01:32 +00:00
|
|
|
changed {
|
|
|
|
emailext body: "Check console output at ${env.BUILD_URL}",
|
|
|
|
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
|
|
|
|
subject: "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"
|
|
|
|
}
|
2020-05-09 11:15:19 +00:00
|
|
|
}
|
|
|
|
}
|