Jenkinsfile: use less steps
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-17 13:08:59 +01:00
parent 3517facfc0
commit 6118e6a530
Signed by: kunsi
GPG key ID: 12E3D2136B818350

31
Jenkinsfile vendored
View file

@ -5,8 +5,10 @@ pipeline {
steps { steps {
sh """ sh """
[ -d venv ] && rm -rf venv [ -d venv ] && rm -rf venv
virtualenv -p python3 venv virtualenv -p python3 venv
. venv/bin/activate . venv/bin/activate
pip install --upgrade pip pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
""" """
@ -14,47 +16,28 @@ pipeline {
} }
stage('bw test') { stage('bw test') {
parallel { parallel {
stage('determinism') { stage('config and metadata determinism') {
steps { steps {
sh """ sh """
. venv/bin/activate . venv/bin/activate
export BW_VAULT_DUMMY_MODE=1 export BW_VAULT_DUMMY_MODE=1
bw test --metadata-determinism 3 --config-determinism 3 bw test --metadata-determinism 3 --config-determinism 3
""" """
} }
} }
stage('ignore missing vaults') { stage('other tests') {
steps { steps {
sh """ sh """
. venv/bin/activate . venv/bin/activate
bw test --ignore-missing-faults bw test --ignore-missing-faults
"""
}
}
stage('dummy mode') {
when {
branch 'main'
}
steps {
sh """
. venv/bin/activate
export BW_VAULT_DUMMY_MODE=1 export BW_VAULT_DUMMY_MODE=1
bw test bw test
""" """
} }
} }
stage('reactor.provides') {
when {
branch 'main'
}
steps {
sh """
. venv/bin/activate
export BW_VAULT_DUMMY_MODE=1
bw test -p
"""
}
}
} }
} }
} }