Skip to content

Commit

Permalink
Merge pull request uselagoon#2948 from uselagoon/testing/more_split
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Nov 29, 2021
2 parents 688f96e + 7db1cba commit 04fc9b8
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,41 @@ pipeline {
stage ('2: run second test suite') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh script: "make -j$NPROC kind/retest TESTS=[drupal-php80,drupal-postgres,drush,gitlab,github,bitbucket,python,node-mongodb,elasticsearch,image-cache] BRANCH_NAME=${SAFEBRANCH_NAME}", label: "Running second test suite on kind cluster"
sh script: "make -j$NPROC kind/retest TESTS=[gitlab,github,bitbucket,python,node-mongodb,elasticsearch,image-cache] BRANCH_NAME=${SAFEBRANCH_NAME}", label: "Running second test suite on kind cluster"
}
sh script: "pkill -f './local-dev/stern'", label: "Closing off test-suite-2 log after test completion"
}
}
stage ('collect logs') {
steps {
timeout(time: 45, unit: 'MINUTES') {
timeout(time: 30, unit: 'MINUTES') {
sh script: "./local-dev/stern --kubeconfig ./kubeconfig.kind.${CI_BUILD_TAG} --all-namespaces '^[a-z]' --since 1s -t > test-suite-2.txt || true", label: "Collecting test-suite-2 logs"
}
sh script: "cat test-suite-2.txt", label: "View ${NODE_NAME}:${WORKSPACE}/test-suite-2.txt"
}
}
}
}
stage ('run third test suite') {
parallel {
stage ('3: run third test suite') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh script: "make -j$NPROC kind/retest TESTS=[drupal-php80,drupal-postgres,drush] BRANCH_NAME=${SAFEBRANCH_NAME}", label: "Running third test suite on kind cluster"
}
sh script: "pkill -f './local-dev/stern'", label: "Closing off test-suite-3 log after test completion"
}
}
stage ('collect logs') {
steps {
timeout(time: 30, unit: 'MINUTES') {
sh script: "./local-dev/stern --kubeconfig ./kubeconfig.kind.${CI_BUILD_TAG} --all-namespaces '^[a-z]' --since 1s -t > test-suite-3.txt || true", label: "Collecting test-suite-3 logs"
}
sh script: "cat test-suite-3.txt", label: "View ${NODE_NAME}:${WORKSPACE}/test-suite-3.txt"
}
}
}
}
stage ('push images to testlagoon/* with :latest tag') {
when {
branch 'main'
Expand Down

0 comments on commit 04fc9b8

Please sign in to comment.