master_and_nightly_task_template: &MASTER_AND_NIGHTLY_TASK_TEMPLATE
only_if: $CIRRUS_BRANCH == $BRANCH_NIGHTLY || $CIRRUS_BRANCH == $BRANCH_MAIN
+master_or_nightly_or_maintenance_task_template: &MASTER_OR_NIGHTLY_OR_MAINTENANCE_TASK_TEMPLATE
+ only_if: $CIRRUS_BRANCH == $BRANCH_NIGHTLY || $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE
+
except_nightly_task_template: &EXCEPT_ON_NIGHTLY_TASK_TEMPLATE
only_if: $CIRRUS_BRANCH != $BRANCH_NIGHTLY
-database_related_nightly_task_template: &DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+database_related_task_template: &DATABASE_RELATED_TASK_TEMPLATE
only_if: >-
- $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
+ $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
changesInclude('server/sonar-db-dao/**/*Mapper.xml', 'server/sonar-db-migration/**/DbVersion*.java', 'server/sonar-db-dao/**/*Dao.java', 'server/sonar-db-core/src/main/java/org/sonar/db/*.java')
-saml_nightly_task_template: &SAML_NIGHTLY_TASK_TEMPLATE
+saml_task_template: &SAML_TASK_TEMPLATE
only_if: >-
- $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
+ $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
changesInclude('server/sonar-auth-saml/src/main/java/**/*.java', 'server/sonar-auth-saml/src/main/resources/**/*', 'server/sonar-db-dao/src/main/**/SAML*.java', 'private/it-core/src/test/java/org/sonarqube/tests/saml/*.java', 'server/sonar-webserver-webapi/src/main/java/org/sonar/server/saml/**/*.java')
-ldap_nightly_task_template: &LDAP_NIGHTLY_TASK_TEMPLATE
+ldap_task_template: &LDAP_TASK_TEMPLATE
only_if: >-
- $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
+ $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
changesInclude('server/sonar-auth-ldap/src/main/java/**/*.java', 'server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/LdapCredentialsAuthentication.java', 'private/it-core/src/test/java/org/sonarqube/tests/ldap/*.java')
-github_nightly_task_template: &GITHUB_NIGHTLY_TASK_TEMPLATE
+github_task_template: &GITHUB_TASK_TEMPLATE
only_if: >-
- $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
+ $CIRRUS_BRANCH == $BRANCH_MAIN || $CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE || $CIRRUS_BRANCH == $BRANCH_NIGHTLY ||
changesInclude('private/core-extension-developer-server/src/main/java/com/sonarsource/branch/pr/github/*.java', 'private/it-branch/it-tests/src/test/java/com/sonarsource/branch/it/suite/pr/github/*.java')
docker_build_container_template: &CONTAINER_TEMPLATE
task: #bitbucket
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *NIGHTLY_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
qa_bb_cloud_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *NIGHTLY_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
qa_ha_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *NIGHTLY_TASK_TEMPLATE
+ <<: *MASTER_OR_NIGHTLY_OR_MAINTENANCE_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
# GitLab QA is executed in a dedicated task in order to not slow down the pipeline, as a GitLab on-prem server docker image is required.
qa_gitlab_task:
<<: *DEFAULT_TEMPLATE
- <<: *NIGHTLY_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
depends_on:
qa_gitlab_cloud_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *NIGHTLY_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
qa_azure_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *NIGHTLY_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
qa_github_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *GITHUB_NIGHTLY_TASK_TEMPLATE
+ <<: *GITHUB_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
qa_saml_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *SAML_NIGHTLY_TASK_TEMPLATE
+ <<: *SAML_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
qa_ldap_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *LDAP_NIGHTLY_TASK_TEMPLATE
+ <<: *LDAP_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
sql_mssql_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+ <<: *DATABASE_RELATED_TASK_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
<<: *CONTAINER_TEMPLATE
sql_postgres_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+ <<: *DATABASE_RELATED_TASK_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
<<: *CONTAINER_TEMPLATE
sql_postgres11_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+ <<: *DATABASE_RELATED_TASK_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
<<: *CONTAINER_TEMPLATE
sql_oracle21_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+ <<: *DATABASE_RELATED_TASK_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
<<: *CONTAINER_TEMPLATE
upgd_mssql_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+ <<: *DATABASE_RELATED_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container:
upgd_oracle21_task:
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
- <<: *DATABASE_RELATED_NIGHTLY_TASK_TEMPLATE
+ <<: *DATABASE_RELATED_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
eks_container: