更新 Jenkins CI 服务器的发布模型 (#4559)
This commit is contained in:
23
config/jenkins/stable/Jenkinsfile
vendored
Normal file
23
config/jenkins/stable/Jenkinsfile
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
HMCL_CI = '1'
|
||||
|
||||
VERSION_TYPE = 'stable'
|
||||
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/*'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user