更新 Jenkins CI 服务器的发布模型 (#4559)

This commit is contained in:
Glavo
2025-10-01 13:04:19 +08:00
committed by GitHub
parent 168c4ac708
commit 495da6b6b0
11 changed files with 207 additions and 25 deletions

23
config/jenkins/dev/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,23 @@
pipeline {
agent any
environment {
HMCL_CI = '1'
VERSION_TYPE = 'dev'
MICROSOFT_AUTH_ID = credentials('microsoft_auth_id')
MICROSOFT_AUTH_SECRET = credentials('microsoft_auth_secret')
CURSEFORGE_API_KEY = credentials('curseforge_api_key')
HMCL_SIGNATURE_KEY = credentials('hmcl_signature_key')
}
stages {
stage('Build') {
steps {
sh 'bash ./config/jenkins/config-jenkins.sh'
sh './gradlew clean makeExecutables --stacktrace --no-daemon'
archiveArtifacts artifacts: 'HMCL/build/libs/*'
}
}
}
}