Skip to content

[release/3.6] 更新 Jenkins CI 服务器的发布模型#4582

Merged
Glavo merged 2 commits intoHMCL-dev:release/3.6from
Glavo:backport/3.6/4559
Oct 2, 2025
Merged

[release/3.6] 更新 Jenkins CI 服务器的发布模型#4582
Glavo merged 2 commits intoHMCL-dev:release/3.6from
Glavo:backport/3.6/4559

Conversation

@Glavo
Copy link
Member

@Glavo Glavo commented Oct 2, 2025

@Glavo Glavo added the backport label Oct 2, 2025
@Glavo Glavo requested a review from Copilot October 2, 2025 08:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Jenkins CI server's release model for HMCL (Hello Minecraft! Launcher) by introducing a new project configuration structure and reorganizing the CI pipeline setup.

  • Adds project configuration properties for version management
  • Reorganizes Jenkins configuration files into separate dev and stable pipelines
  • Refactors version numbering logic to support different build types (dev, stable, unofficial)

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
config/project.properties Defines project version root configuration
config/jenkins/stable/Jenkinsfile Jenkins pipeline configuration for stable releases
config/jenkins/dev/Jenkinsfile Jenkins pipeline configuration for development releases
config/jenkins/config-jenkins.sh Gradle wrapper configuration script for Jenkins
config-jenkins.sh Removed old Jenkins configuration script
buildSrc/src/main/java/org/jackhuang/hmcl/gradle/utils/PropertiesUtils.java Utility class for loading properties files
buildSrc/src/main/java/org/jackhuang/hmcl/gradle/ci/JenkinsUtils.java Utility class for Jenkins environment detection
buildSrc/src/main/java/org/jackhuang/hmcl/gradle/ci/GitHubActionUtils.java Utility class for GitHub Actions environment detection
buildSrc/build.gradle.kts Updated to support custom Maven repository configuration
HMCL/build.gradle.kts Refactored version logic and build configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

#!/usr/bin/env bash

sed -i 's,//services.gradle.org/distributions/,//mirrors.cloud.tencent.com/gradle/,g' "$PWD/gradle/wrapper/gradle-wrapper.properties"

Copy link

Copilot AI Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The script ends with an empty line after the sed command. Consider removing the trailing empty line for cleaner formatting.

Suggested change

Copilot uses AI. Check for mistakes.
val curseForgeApiKey = System.getenv("CURSEFORGE_API_KEY") ?: ""

val launcherExe = System.getenv("HMCL_LAUNCHER_EXE")
val launcherExe = System.getenv("HMCL_LAUNCHER_EXE") ?: ""
Copy link

Copilot AI Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The variable launcherExe is assigned a default empty string but later checked with isBlank() and isNotBlank(). Consider using a nullable type and checking for null instead, or document why empty string is preferred over null.

Copilot uses AI. Check for mistakes.
@Glavo Glavo merged commit 785f334 into HMCL-dev:release/3.6 Oct 2, 2025
3 checks passed
@Glavo Glavo deleted the backport/3.6/4559 branch October 2, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants