Skip to content

Commit

Permalink
SONAR-23852 Creates new version structure
Browse files Browse the repository at this point in the history
  • Loading branch information
davividal committed Jan 2, 2025
1 parent 621c9f4 commit 2687cec
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 34 deletions.
41 changes: 21 additions & 20 deletions .cirrus/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
CURRENT_LTA_VERSION: 9.9.7
CURRENT_VERSION: 10.8.1
NEXT_VERSION: 2025.1

# Must be in the format YY.MM.0.###### where ###### is the build number
COMMUNITY_BUILD_VERSION: 24.12.0.100206

Expand Down Expand Up @@ -62,9 +63,9 @@ multi_arch_build_gcp_staging_task:
only_if: $CIRRUS_CRON == 'nightly-mend-scan' || $TRIGGER == 'PUSH_GCP_STAGING_IMAGES'
env:
matrix:
- version: 10/datacenter/app
- version: 2025.1/datacenter/app
STAGING_IMAGE_NAME: ${GCLOUD_STAGING_REGISTRY}/${GCLOUD_STAGING_PRODUCT_NAME}
- version: 10/datacenter/search
- version: 2025.1/datacenter/search
STAGING_IMAGE_NAME: ${GCLOUD_STAGING_REGISTRY}/${GCLOUD_STAGING_PRODUCT_NAME}/sonarqube-dce-search
ec2_instance:
<<: *VM_TEMPLATE
Expand Down Expand Up @@ -112,19 +113,19 @@ multi_arch_build_9_x_task:
- version: 9/datacenter/search
tag: $CURRENT_LTA_VERSION-datacenter-search

multi_arch_build_10_x_task:
multi_arch_build_2025_x_task:
<<: *multi_arch_build_task_template
skip: "!changesInclude('10/**/*') && !changesInclude('.cirrus/*')"
skip: "!changesInclude('${NEXT_VERSION}/**/*') && !changesInclude('.cirrus/*')"
env:
matrix:
- version: 10/developer
tag: $NEXT_VERSION-developer
- version: 10/enterprise
tag: $NEXT_VERSION-enterprise
- version: 10/datacenter/app
tag: $NEXT_VERSION-datacenter-app
- version: 10/datacenter/search
tag: $NEXT_VERSION-datacenter-search
- version: ${NEXT_VERSION}/developer
tag: ${NEXT_VERSION}-developer
- version: ${NEXT_VERSION}/enterprise
tag: ${NEXT_VERSION}-enterprise
- version: ${NEXT_VERSION}/datacenter/app
tag: ${NEXT_VERSION}-datacenter-app
- version: ${NEXT_VERSION}/datacenter/search
tag: ${NEXT_VERSION}-datacenter-search

multi_arch_build_community_build_task:
<<: *multi_arch_build_task_template
Expand All @@ -141,7 +142,7 @@ private_scan_task:
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
matrix:
- tag: $CURRENT_LTA_VERSION-datacenter-app
- tag: $NEXT_VERSION-datacenter-app
- tag: ${NEXT_VERSION}-datacenter-app
ec2_instance:
<<: *CI_SCANNER
login_script:
Expand All @@ -153,7 +154,7 @@ private_scan_task:
- java -jar /usr/local/bin/wss-unified-agent.jar -c .cirrus/wss-unified-agent.config -apiKey $MEND_API_KEY -product ${WS_PRODUCTNAME} -project ${STAGING_IMAGE_NAME}:${tag} -wss.url ${WS_WSS_URL} -docker.scanImages true
depends_on:
- multi_arch_build_9_x
- multi_arch_build_10_x
- multi_arch_build_2025_x_task

public_scan_task:
only_if: $CIRRUS_CRON == 'nightly-mend-scan'
Expand Down Expand Up @@ -211,9 +212,9 @@ multi_arch_test_9_x_task:
tag: $CURRENT_LTA_VERSION-datacenter
depends_on: multi_arch_build_9_x

multi_arch_test_10_x_task:
multi_arch_test_2025_x_task:
<<: *multi_arch_test_task_template
skip: "!changesInclude('10/**/*') && !changesInclude('.cirrus/*')"
skip: "!changesInclude('${NEXT_VERSION}/**/*') && !changesInclude('.cirrus/*')"
matrix:
- env:
CIRRUS_ARCH: arm64
Expand All @@ -226,12 +227,12 @@ multi_arch_test_10_x_task:
env:
matrix:
- test_name: docker
tag: $NEXT_VERSION-developer
tag: ${NEXT_VERSION}-developer
- test_name: docker
tag: $NEXT_VERSION-enterprise
tag: ${NEXT_VERSION}-enterprise
- test_name: docker-compose
tag: $NEXT_VERSION-datacenter
depends_on: multi_arch_build_10_x
tag: ${NEXT_VERSION}-datacenter
depends_on: multi_arch_build_2025_x_task

multi_arch_test_community_build_task:
<<: *multi_arch_test_task_template
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
uses: ./.github/workflows/release-template.yml
with:
tag: ${{ matrix.tag }}
release-10-x:
name: Upload Release Assets for 10-X releases
if: contains(github.event.release.name, '10.')
release-2025-x:
name: Upload Release Assets for 2025.X releases
if: contains(github.event.release.name, '2025.')
permissions:
contents: write
id-token: write
strategy:
fail-fast: false
matrix:
tag:
- 10-developer
- 10-enterprise
- 10-datacenter-app
- 10-datacenter-search
- 2025-developer
- 2025-enterprise
- 2025-datacenter-app
- 2025-datacenter-search
uses: ./.github/workflows/release-template.yml
with:
tag: ${{ matrix.tag }}
Expand All @@ -54,4 +54,4 @@ jobs:
- community
uses: ./.github/workflows/release-template.yml
with:
tag: ${{ matrix.tag }}
tag: ${{ matrix.tag }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:17-jre-noble

LABEL io.k8s.description="SonarQube is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.k8s.description="SonarQube Server is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.openshift.min-cpu=400m
LABEL io.openshift.min-memory=2048M
LABEL io.openshift.non-scalable=false
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:17-jre-noble

LABEL io.k8s.description="SonarQube is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.k8s.description="SonarQube Server is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.openshift.min-cpu=400m
LABEL io.openshift.min-memory=2048M
LABEL io.openshift.non-scalable=false
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion 10/developer/Dockerfile → 2025.1/developer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:17-jre-noble

LABEL io.k8s.description="SonarQube is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.k8s.description="SonarQube Server is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.openshift.min-cpu=400m
LABEL io.openshift.min-memory=2048M
LABEL io.openshift.non-scalable=true
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion 10/enterprise/Dockerfile → 2025.1/enterprise/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:17-jre-noble

LABEL io.k8s.description="SonarQube is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.k8s.description="SonarQube Server is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.openshift.min-cpu=400m
LABEL io.openshift.min-memory=2048M
LABEL io.openshift.non-scalable=true
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion community-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:17-jre-noble

LABEL io.k8s.description="SonarQube is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.k8s.description="SonarQube Community Build is a self-managed, automatic code review tool that systematically helps you deliver Clean Code."
LABEL io.openshift.min-cpu=400m
LABEL io.openshift.min-memory=2048M
LABEL io.openshift.non-scalable=true
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sonar.projectKey=SonarSource_docker-sonarqube_AYcnOvlJTpBOcQuGEdI5
sonar.sources=9/,10/
sonar.sources=9/,2025.1/
sonar.organization=sonarsource

0 comments on commit 2687cec

Please sign in to comment.