Skip to content

Commit

Permalink
ci: 增加standalone release
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Jun 12, 2024
1 parent 82ad2e2 commit c5869ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,13 @@ pipeline {
}
steps {
dir('installer') {
withCredentials([string(credentialsId: 'gitrelease', variable: 'TOKEN'), string(credentialsId: 'HTTPS_PROXY', variable: 'HTTPS_PROXY')]) {
withEnv(["TOKEN=$TOKEN", "HTTPS_PROXY=$HTTPS_PROXY"]) {
sh script: '''
curl -XPOST -H "Authorization:token $TOKEN" --data "{\\"tag_name\\": \\"${RELEASE}\\", \\"target_commitish\\": \\"${BRANCH_NAME}\\", \\"name\\": \\"${RELEASE}\\", \\"body\\": \\"\\", \\"draft\\": false, \\"prerelease\\": true}" https://api.github.com/repos/metersphere/metersphere-standalone/releases
'''
}
}
echo "UPLOADING"
withCredentials([usernamePassword(credentialsId: 'OSSKEY', passwordVariable: 'SK', usernameVariable: 'AK')]) {
sh("java -jar /opt/uploadToOss.jar $AK $SK fit2cloud2-offline-installer metersphere/release/metersphere-ce-offline-installer-${RELEASE}.tar.gz ./metersphere-ce-offline-installer-${RELEASE}.tar.gz")
Expand Down

0 comments on commit c5869ee

Please sign in to comment.