Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
- ./check-license-compliance.sh
cleanup_before_cache_script: cleanup_maven_repository

# Migrated to GHA.
qa_os_win_task:
ec2_instance:
image: base-windows-jdk21-v*
Expand Down Expand Up @@ -289,7 +290,7 @@
actual_artifacts:
path: "${CIRRUS_WORKING_DIR}/its/autoscan/target/actual/**/*"

promote_task:

Check warning on line 293 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L293

task "promote" depends on task "sonar_shadow_scan_and_issue_replication", but their only_if conditions are different
depends_on:
- build
- sonar_shadow_scan_and_issue_replication
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,42 @@ jobs:
-Dmaven.test.redirectTestOutputToFile=false
-Dparallel=methods
-DuseUnlimitedThreads=true

qa-os-win:
name: Build and Unit Test on Windows
# No dependency on build step, because we do not need the build number.
runs-on: github-windows-latest-m
permissions:
id-token: write # Required for Vault OIDC authentication
contents: write # Required for repository access and tagging
steps:
- name: Config Git
run: git config --global core.autocrlf input
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
with:
version: 2025.7.12
- name: Run Maven
run: mvn clean verify --batch-mode

promote:
needs:
- build
- ruling-qa
- plugin-qa
- sanity
- test-analyze
- autoscan
- qa-os-win
if: ${{ needs.build.outputs.deployed }}
runs-on: github-ubuntu-latest-s # Public repo uses custom GitHub-hosted runners
name: Promote
permissions:
id-token: write
contents: write
env:
BUILD_NUMBER: ${{ needs.build.outputs.build-number }}
steps:
- uses: SonarSource/ci-github-actions/promote@v1
with:
promote-pull-request: true
3 changes: 1 addition & 2 deletions java-checks-test-sources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
<fileSeparator>/</fileSeparator>
<pathSeparator>:${line.separator}</pathSeparator>
<includeScope>test</includeScope>
<!-- $$ to not evaluate M2_REPO now, this will become ${M2_REPO} in the output file -->
<localRepoProperty>$${M2_REPO}</localRepoProperty>
<localRepoProperty>M2_REPO</localRepoProperty>
<outputEncoding>UTF-8</outputEncoding>
<outputFile>${project.build.directory}/test-classpath.txt</outputFile>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ public static List<File> loadFromFile(String classpathTextFilePath) {
String mavenRepository = findMavenLocalRepository(System::getenv, System::getProperty);
try {
String content = Files.readString(toPath(classpathTextFilePath), UTF_8);
Arrays.stream(content.split(":"))
// Split on ":", but not when it follows Windows drive letter (e.g. "C:\").
Arrays.stream(content.split("(?<![A-Z]):"))
.map(String::trim)
.filter(line -> !line.isBlank())
.map(TestClasspathUtils::fixSeparator)
.map(line -> line.replace("${M2_REPO}", mavenRepository))
.map(line -> line.replace("M2_REPO", mavenRepository))
.map(Paths::get)
.forEach(dependencyPath -> {
if (!Files.exists(dependencyPath)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
${M2_REPO}/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:
M2_REPO/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
${M2_REPO}/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:
${M2_REPO}/org/bad/luck/missing-artifact/666/missing-artifact-666.jar:
M2_REPO/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:
M2_REPO/org/bad/luck/missing-artifact/666/missing-artifact-666.jar: