diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2019-09-25 14:19:11 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-10-07 20:21:06 +0200 |
commit | 69dd7210a6086f1e7687aee5ee2986a91cab0885 (patch) | |
tree | 5da15b9b61a4f7ae7ca630a2c44f7638f34ada96 /.cirrus.yml | |
parent | 42f0cff638b6b7055acc6cf75bbb2215867d0474 (diff) | |
download | sonarqube-69dd7210a6086f1e7687aee5ee2986a91cab0885.tar.gz sonarqube-69dd7210a6086f1e7687aee5ee2986a91cab0885.zip |
SONAR-12471 Embed SAML authentication
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 2b8e20f6981..fca399b5ecb 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -166,11 +166,57 @@ qa_task: path: "**/test-results/**/*.xml" format: junit +# SAML QA is executed in a dedicated task in order to not slow down the pipeline, as a Keycloak server docker image is required. +qa_saml_task: + depends_on: build + # Comment the following line and commit with message "DO NOT MERGE" in order to run + # this task on your branch + only_if: $CIRRUS_BRANCH == "branch-nightly-build" + gke_container: + dockerfile: private/docker/Dockerfile-build + builder_image_project: ci-cd-215716 + builder_image_name: docker-builder-v1 + cluster_name: cirrus-uscentral1a-cluster + zone: us-central1-a + namespace: default + cpu: 2.4 + memory: 10Gb + additional_containers: + - name: keycloak + image: jboss/keycloak:7.0.0 + port: 8080 + cpu: 1 + memory: 1Gb + env: + KEYCLOAK_USER: admin + KEYCLOAK_PASSWORD: admin + env: + # No need to clone the full history. + # Depth of 1 is not enough because it would fail the build in case of consecutive pushes + # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!") + CIRRUS_CLONE_DEPTH: 50 + QA_CATEGORY: SAML + gradle_cache: + folder: ~/.gradle/caches + script: + - ./private/cirrus/cirrus-qa.sh h2 + cleanup_before_cache_script: + - ./private/cirrus/cleanup-gradle-cache.sh + on_failure: + reports_artifacts: + path: "**/build/reports/**/*" + screenshots_artifacts: + path: "**/build/screenshots/**/*" + junit_artifacts: + path: "**/test-results/**/*.xml" + format: junit + promote_task: depends_on: - build - validate - qa + - qa_saml only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "branch-nightly-build" gke_container: dockerfile: private/docker/Dockerfile-build |