ci: push iOS releases with Jenkins SSH credentials
这个提交包含在:
父节点
487571b51d
当前提交
d13b9f2c62
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -93,8 +93,8 @@ pipeline {
|
||||
stage('SNAPSHOT: Push main') {
|
||||
when { expression { params.SNAPSHOT } }
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'GITEA_TOKEN', variable: 'TOKEN')]) {
|
||||
bat "git push https://xuqinmin12:%TOKEN%@xuqinmin.com/xuqmGroup/XuqmGroup-iOSSDK.git HEAD:main"
|
||||
sshagent(credentials: ['jenkins-ssh-key']) {
|
||||
bat "git push origin HEAD:main"
|
||||
}
|
||||
echo "SNAPSHOT 已推送到 main 分支"
|
||||
echo "应用端 project.yml 保持 branch: main 即可自动获取最新代码"
|
||||
@ -109,9 +109,9 @@ pipeline {
|
||||
bat "git add version.properties"
|
||||
bat """git commit -m "ci: release %RELEASE_TAG% [%CHANGED_MODULES%]" """
|
||||
bat "git tag %RELEASE_TAG%"
|
||||
withCredentials([string(credentialsId: 'GITEA_TOKEN', variable: 'TOKEN')]) {
|
||||
bat "git push https://xuqinmin12:%TOKEN%@xuqinmin.com/xuqmGroup/XuqmGroup-iOSSDK.git HEAD:main"
|
||||
bat "git push https://xuqinmin12:%TOKEN%@xuqinmin.com/xuqmGroup/XuqmGroup-iOSSDK.git %RELEASE_TAG%"
|
||||
sshagent(credentials: ['jenkins-ssh-key']) {
|
||||
bat "git push origin HEAD:main"
|
||||
bat "git push origin %RELEASE_TAG%"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户