Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#Possible values for ARTIFACTORY_DEPLOY_REPO: sonarsource-private-qa, sonarsource-public-qa
ARTIFACTORY_DEPLOY_REPO: sonarsource-public-qa
ARTIFACTORY_ACCESS_TOKEN: VAULT[development/artifactory/token/${CIRRUS_REPO_OWNER}-${CIRRUS_REPO_NAME}-private-reader access_token]
DEVELOCITY_TOKEN: VAULT[development/kv/data/develocity data.token]
DEVELOCITY_ACCESS_KEY: develocity.sonar.build=${DEVELOCITY_TOKEN}
# Use bash (instead of sh on linux or cmd.exe on windows)
CIRRUS_SHELL: bash

Expand Down Expand Up @@ -39,6 +41,9 @@
only_sonarsource_qa: &ONLY_SONARSOURCE_QA
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*")

log_develocity_url_script: &log_develocity_url_script |
echo "Develocity URL: https://develocity.sonar.build/scans?search.publicHostnames=cirrus-ci-task-${CIRRUS_TASK_ID}"

build_task:
eks_container:
<<: *CONTAINER_DEFINITION
Expand All @@ -55,6 +60,7 @@
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
build_script:
- *log_develocity_url_script
- source cirrus-env BUILD
- regular_mvn_build_deploy_analyze
cleanup_before_cache_script: cleanup_maven_repository
Expand All @@ -74,6 +80,7 @@
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
whitesource_script:
- *log_develocity_url_script
- source cirrus-env QA
- source set_maven_build_version $BUILD_NUMBER
- mvn clean install -DskipTests
Expand All @@ -87,6 +94,7 @@
<<: *WINDOWS_VM_DEFINITION
maven_cache: { folder: .m2/repository }
build_script:
- *log_develocity_url_script
- source cirrus-env CI
- mvn test
cleanup_before_cache_script: cleanup_maven_repository
Expand All @@ -106,6 +114,7 @@
maven_cache:
folder: $CIRRUS_WORKING_DIR/.m2/repository
qa_script:
- *log_develocity_url_script
- source cirrus-env QA
- source set_maven_build_version $BUILD_NUMBER
- cd its/plugin
Expand All @@ -123,6 +132,7 @@
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
ruling_script:
- *log_develocity_url_script
- source cirrus-env QA
- source set_maven_build_version $BUILD_NUMBER
- cd its/ruling
Expand All @@ -136,11 +146,12 @@
maven_cache:
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
build_script:
- *log_develocity_url_script
- source cirrus-env QA
- mvn verify -Pit-ruling -Dsonar.runtimeVersion=LATEST_RELEASE -Dmaven.test.redirectTestOutputToFile=false -B -e -V
cleanup_before_cache_script: cleanup_maven_repository

promote_task:

Check warning on line 154 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L154

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 154 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L154

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 154 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L154

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 154 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L154

task "promote" depends on task "ws_scan", but their only_if conditions are different
depends_on:
- build
- build_win
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Maven
target/
.mvn/.develocity/

# IntelliJ IDEA
*.iws
Expand Down
13 changes: 13 additions & 0 deletions .mvn/develocity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<develocity>
<server>
<url>https://develocity.sonar.build</url>
</server>
<buildCache>
<local>
<storeEnabled>#{env['CI'] == null}</storeEnabled>
</local>
<remote>
<storeEnabled>#{env['CI'] != null}</storeEnabled>
</remote>
</buildCache>
</develocity>
7 changes: 7 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<extensions>
<extension>
<groupId>com.gradle</groupId>
<artifactId>develocity-maven-extension</artifactId>
<version>1.22.2</version>
</extension>
</extensions>
Loading