Skip to content

Commit

Permalink
Move standard rspec tests into seperate step
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlesbykumbi committed Aug 11, 2022
1 parent 8810903 commit d7fa67b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ pipeline {
}
}

// Run outside parallel block to avoid external pressure
stage('Run standard rspec tests') {
steps {
sh 'ci/test rspec'
}
}

// Run outside parallel block to reduce main Jenkins executor load.
stage('Nightly Only') {
when {
Expand All @@ -282,6 +289,8 @@ pipeline {
unstash 'version_info'
// Catch errors so remaining steps always run.
catchError {
sh script: "ci/test rspec", label: "Standard rspec tests"

runConjurTests(params.RUN_ONLY)
}

Expand Down Expand Up @@ -755,9 +764,6 @@ def testShouldRun(run_only_str, test) {
def runConjurTests(run_only_str) {

all_tests = [
"rspec": [
"RSpec - ${env.STAGE_NAME}": { sh 'ci/test rspec' }
],
"authenticators_config": [
"Authenticators Config - ${env.STAGE_NAME}": {
sh 'ci/test authenticators_config'
Expand Down

0 comments on commit d7fa67b

Please sign in to comment.