Jenkinsfile: use less steps
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
3517facfc0
commit
6118e6a530
1 changed files with 7 additions and 24 deletions
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
|
@ -5,8 +5,10 @@ pipeline {
|
|||
steps {
|
||||
sh """
|
||||
[ -d venv ] && rm -rf venv
|
||||
|
||||
virtualenv -p python3 venv
|
||||
. venv/bin/activate
|
||||
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
"""
|
||||
|
@ -14,47 +16,28 @@ pipeline {
|
|||
}
|
||||
stage('bw test') {
|
||||
parallel {
|
||||
stage('determinism') {
|
||||
stage('config and metadata determinism') {
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
|
||||
export BW_VAULT_DUMMY_MODE=1
|
||||
bw test --metadata-determinism 3 --config-determinism 3
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('ignore missing vaults') {
|
||||
stage('other tests') {
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
|
||||
bw test --ignore-missing-faults
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('dummy mode') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
|
||||
export BW_VAULT_DUMMY_MODE=1
|
||||
bw test
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('reactor.provides') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
sh """
|
||||
. venv/bin/activate
|
||||
export BW_VAULT_DUMMY_MODE=1
|
||||
bw test -p
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue