Skip to content

Commit 488cbd2

Browse files
committed
MCP-86 Migrate from Cirrus CI to Github actions
1 parent 426859c commit 488cbd2

File tree

6 files changed

+59
-120
lines changed

6 files changed

+59
-120
lines changed

.cirrus.star

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

.cirrus.yml

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

.github/workflows/build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- branch-*
7+
- dogfood-on-*
8+
pull_request:
9+
merge_group:
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
17+
runs-on: ubuntu-24.04-large
18+
name: Build
19+
permissions:
20+
id-token: write
21+
contents: write
22+
steps:
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4
25+
with:
26+
version: 2025.7.12
27+
- uses: SonarSource/ci-github-actions/build-gradle@v1
28+
with:
29+
deploy-pull-request: true
30+
artifactory-reader-role: private-reader
31+
artifactory-deployer-role: qa-deployer
32+
33+
promote:
34+
needs: [build]
35+
concurrency:
36+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
37+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
38+
runs-on: ubuntu-24.04-large
39+
name: Promote
40+
permissions:
41+
id-token: write
42+
contents: write
43+
steps:
44+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45+
- uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2.4.4
46+
with:
47+
cache_save: false
48+
version: 2025.7.12
49+
- uses: SonarSource/ci-github-actions/promote@v1
50+
with:
51+
promote-pull-request: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SonarQube MCP Server
22

3-
[![Build Status](https://api.cirrus-ci.com/github/SonarSource/sonarqube-mcp-server.svg?branch=master)](https://cirrus-ci.com/github/SonarSource/sonarqube-mcp-server)
3+
[![Build](https://github.com/SonarSource/sonarqube-mcp-server/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/SonarSource/sonarqube-mcp-server/actions/workflows/build.yml)
44
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=SonarSource_sonar-mcp-server&metric=alert_status&token=364a508a1e77096460f8571d8e66b41c99c95bea)](https://sonarcloud.io/summary/new_code?id=SonarSource_sonar-mcp-server)
55

66
The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables seamless integration with SonarQube Server or Cloud for code quality and security.

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ artifactory {
174174
publications("mavenJava")
175175
setProperties(
176176
mapOf(
177-
"vcs.revision" to System.getenv("CIRRUS_CHANGE_IN_REPO"),
178-
"vcs.branch" to (System.getenv("CIRRUS_BASE_BRANCH")
179-
?: System.getenv("CIRRUS_BRANCH")),
177+
"vcs.revision" to System.getenv("GITHUB_SHA"),
178+
"vcs.branch" to (System.getenv("GITHUB_BASE_REF")
179+
?: System.getenv("GITHUB_REF_NAME")),
180180
"build.name" to "sonarqube-mcp-server",
181181
"build.number" to System.getenv("BUILD_NUMBER")
182182
)
@@ -225,7 +225,7 @@ sonar {
225225
property("sonar.organization", "sonarsource")
226226
property("sonar.projectKey", "SonarSource_sonar-mcp-server")
227227
property("sonar.projectName", "SonarQube MCP Server")
228-
property("sonar.links.ci", "https://cirrus-ci.com/github/SonarSource/sonarqube-mcp-server")
228+
property("sonar.links.ci", "https://github.com/SonarSource/sonarqube-mcp-server/actions")
229229
property("sonar.links.scm", "https://github.com/SonarSource/sonarqube-mcp-server")
230230
property("sonar.links.issue", "https://jira.sonarsource.com/browse/MCP")
231231
property("sonar.exclusions", "**/build/**/*")

mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
java = "21.0"
3+
gradle = "8.13"

0 commit comments

Comments
 (0)