Skip to content

Commit 49fd46d

Browse files
Finalize CI Migration (#42)
1 parent 35f9e18 commit 49fd46d

File tree

6 files changed

+16
-291
lines changed

6 files changed

+16
-291
lines changed

.cirrus.star

Lines changed: 0 additions & 4 deletions
This file was deleted.

.cirrus.yml

Lines changed: 0 additions & 142 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@ jobs:
2222
id-token: write
2323
contents: write
2424
outputs:
25-
build-number: ${{ steps.build-maven.outputs.BUILD_NUMBER }}
25+
build-number: ${{ steps.build-step.outputs.BUILD_NUMBER }}
26+
deployed: ${{ steps.build-step.outputs.deployed }}
2627
steps:
27-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2829
- uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd # v3.2.0
2930
with:
3031
version: 2025.7.12
3132
- uses: SonarSource/ci-github-actions/build-maven@v1
32-
id: build-maven
33+
id: build-step
3334
with:
3435
deploy-pull-request: true
3536
artifactory-reader-role: private-reader # Override default public-reader
3637
artifactory-deployer-role: qa-deployer # Override default public-deployer
3738

3839
qa:
3940
needs: [build]
41+
if: ${{ needs.build.outputs.deployed }}
4042
runs-on: github-ubuntu-latest-l
41-
if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
4243
permissions:
4344
id-token: write
4445
strategy:
@@ -49,6 +50,8 @@ jobs:
4950
- { name: "for SonarQube Project Only", profile: "only-sonarqube-project", java_plugin_version: "LATEST_MASTER" }
5051
- { name: "with Prod SonarJava Plugin", profile: "without-sonarqube-project", java_plugin_version: "POM_PROPERTY" }
5152
name: "QA Tests ${{ matrix.item.name }}"
53+
env:
54+
BUILD_NUMBER: ${{ needs.build.outputs.build-number }}
5255
steps:
5356
- name: Checkout repository
5457
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -101,17 +104,15 @@ jobs:
101104

102105
promote:
103106
name: Promote
104-
needs: [build, qa]
107+
if: ${{ needs.build.outputs.deployed }}
108+
needs:
109+
- build
110+
- qa
105111
runs-on: github-ubuntu-latest-s
106-
if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
107112
permissions:
108113
id-token: write
114+
env:
115+
BUILD_NUMBER: ${{ needs.build.outputs.build-number }}
109116
steps:
110-
- name: Checkout repository
111-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112-
- uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd # v3.2.0
113-
with:
114-
cache_save: false
115-
version: 2025.7.12
116117
- name: Promote artifacts
117118
uses: SonarSource/ci-github-actions/promote@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Sonar Java symbolic execution plugin [![Build Status](https://api.cirrus-ci.com/github/SonarSource/sonar-java-symbolic-execution.svg?branch=master)](https://cirrus-ci.com/github/SonarSource/sonar-java) [![Quality Gate](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.java%3Asonar-java-symbolic-execution&metric=alert_status)](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.java%3Asonar-java-symbolic-execution) [![Coverage](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.java%3Asonar-java-symbolic-execution&metric=coverage)](https://next.sonarqube.com/sonarqube/component_measures/domain/Coverage?id=org.sonarsource.java%3Asonar-java-symbolic-execution)
1+
Sonar Java symbolic execution plugin [![Build Status](https://github.com/SonarSource/sonar-java-symbolic-execution/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/SonarSource/sonar-java-symbolic-execution/actions/workflows/build.yml) [![Quality Gate](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.java%3Asonar-java-symbolic-execution&metric=alert_status)](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.java%3Asonar-java-symbolic-execution) [![Coverage](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.java%3Asonar-java-symbolic-execution&metric=coverage)](https://next.sonarqube.com/sonarqube/component_measures/domain/Coverage?id=org.sonarsource.java%3Asonar-java-symbolic-execution)
22
==========
33

44
This SonarSource project is a plugin designed for advanced bug detection in Java projects, helping developers write [Clean Code](https://www.sonarsource.com/solutions/clean-code/).

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
<url>https://jira.sonarsource.com/browse/JAVASE</url>
6565
</issueManagement>
6666
<ciManagement>
67-
<system>Cirrus CI</system>
68-
<url>https://cirrus-ci.com/github/SonarSource/sonar-java-symbolic-execution</url>
67+
<system>GitHub Actions</system>
68+
<url>https://github.com/SonarSource/sonar-java-symbolic-execution/actions/workflows/build.yml</url>
6969
</ciManagement>
7070

7171
<properties>

shadow-scan-and-issue-replication.sh

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)