The Unified and Autonomous Development Platform
chore: Edit .onedev-buildspec.yml
Robin Shenc6e46455a34c
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.ymlindex 36e7915aff..5c4f1aaedc 100644--- a/.onedev-buildspec.yml+++ b/.onedev-buildspec.yml@@ -1,4 +1,4 @@-version: 47+version: 52imports:- projectPath: onedevrevision: main@@ -30,7 +30,8 @@ jobs:runInContainer: trueimage: '@property:buildEnvironment@'interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |set -eset -o pipefail@@ -39,6 +40,8 @@ jobs:projectDir=`pwd`+ curl -H "Authorization: Bearer @secret:onedev-token@" -G -X DELETE https://code.onedev.io/~/api/packages --data-urlencode 'query="Version" is "@build_version@"'+mvn -Dmaven.deploy.username=@job_token@ -Dmaven.deploy.password=@secrets:maven-deploy-password@ deploy# Prepare for artifact and site publish@@ -125,7 +128,8 @@ jobs:runInContainer: trueimage: '@property:buildEnvironment@'interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |set -e@@ -146,7 +150,8 @@ jobs:runInContainer: trueimage: '@property:buildEnvironment@'interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |set -eset -o pipefail@@ -198,7 +203,8 @@ jobs:runInContainer: trueimage: ubuntuinterpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: "apt update \napt install -y zip\nbuildVersion=`ls onedev-*.tar.gz | grep -Po 'onedev-\\K.*(?=.tar.gz)'`\ntar zxvf onedev-$buildVersion.tar.gz\nmv onedev-$buildVersion onedev-latest\ntar zcvf onedev-latest.tar.gz onedev-latest\nzip -r onedev-latest.zip onedev-latest\nsha256sum onedev-latest.zip > onedev-latest.zip.sha256\nsha256sum onedev-latest.tar.gz > onedev-latest.tar.gz.sha256\necho $buildVersion > build_version\n"runAs: 0:0useTTY: false@@ -248,7 +254,8 @@ jobs:runInContainer: trueimage: '@property:buildEnvironment@'interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |set -e@@ -323,7 +330,8 @@ jobs:runInContainer: trueimage: '@property:buildEnvironment@'interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |mvn clean packagerunAs: 0:0@@ -380,7 +388,8 @@ jobs:runInContainer: trueimage: '@property:buildEnvironment@'interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |mvn packagerunAs: 0:0@@ -423,7 +432,8 @@ jobs:runInContainer: trueimage: alpine/git:1.0.7interpreter:- type: DefaultInterpreter+ type: PosixInterpreter+ shell: shcommands: |git config --global --unset http.extraHeadergit push -f https://robinshine:@secrets:github-token@@@github.com/theonedev/onedev.git