From 8c6ca3bc4dd27adb167bb335d16fa5ec21c0afc4 Mon Sep 17 00:00:00 2001 From: GabinL21 Date: Tue, 5 Nov 2024 12:09:38 +0100 Subject: [PATCH] SONARPHP-1519 Add Gradle signing env secrets --- .cirrus.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 590f564e7..c703e84fb 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -14,6 +14,10 @@ env: PATH: ${CIRRUS_WORKING_DIR}/.cirrus:${PATH} # Use bash (instead of sh on linux or cmd.exe on windows) CIRRUS_SHELL: bash + # Gradle signing configuration + ORG_GRADLE_PROJECT_signingKey: VAULT[development/kv/data/sign data.key] + ORG_GRADLE_PROJECT_signingPassword: VAULT[development/kv/data/sign data.passphrase] + ORG_GRADLE_PROJECT_signingKeyId: VAULT[development/kv/data/sign data.key_id] build_secrets: &BUILD_SECRETS SIGN_KEY: VAULT[development/kv/data/sign data.key] @@ -117,6 +121,7 @@ build_task: - source cirrus-env BUILD # TODO Remove ITs exclusion after SONARIAC-1521, since the ITs won't be in the test task anymore - regular_gradle_build_deploy_analyze -x :its:plugin:tests:test -x :its:ruling:test + - gradle --no-daemon --info --stacktrace --console plain build sonar artifactoryPublish -DbuildNumber="$BUILD_NUMBER" -Dsonar.host.url="$SONAR_HOST_URL" -Dsonar.token="$SONAR_TOKEN" -Dsonar.projectVersion="$INITIAL_VERSION" -Dsonar.analysis.buildNumber="$BUILD_NUMBER" -Dsonar.analysis.pipeline="$PIPELINE_ID" -Dsonar.analysis.sha1="$GIT_SHA1" -Dsonar.analysis.repository="$GITHUB_REPO" "$@" build_win_task: <<: *WINDOWS_VM_DEFINITION