Skip to content

Commit a8a8d95

Browse files
OPE-858 migrate from cirrus to github
1 parent 454f142 commit a8a8d95

File tree

5 files changed

+62
-75
lines changed

5 files changed

+62
-75
lines changed

.cirrus.star

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

.cirrus.yml

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

.github/workflows/build.yml

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

mise.toml

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

sonar-orchestrator/src/main/java/com/sonar/orchestrator/locator/ArtifactoryFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
public class ArtifactoryFactory {
2828

2929
private static final String DEFAULT_ARTIFACTORY_PREFIX = "https://repox.jfrog.io";
30-
private static final String DEFAULT_ARTIFACTORY_URL = DEFAULT_ARTIFACTORY_PREFIX + "/repox";
30+
private static final String DEFAULT_ARTIFACTORY_URL = DEFAULT_ARTIFACTORY_PREFIX + "/artifactory";
3131

3232
/**
3333
* Two types of Artifactory are supported: Maven and Default.

0 commit comments

Comments
 (0)