Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shen2c7262d2705e
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index 016ce45ede..1b59d69057 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -33,6 +33,7 @@ jobs:
image: 1dev/build-environment:1.3
commands:
- set -e
+ - set -o pipefail
- ''
- echo "Detecting project version (may require some time while downloading maven
dependencies)..."
@@ -64,6 +65,10 @@ jobs:
- ''
- echo "Creating release in GitHub..."
- ''
+ - curl2 -u robinshine:@secrets:github-token@ https://api.github.com/repos/theonedev/onedev/releases/tags/v$buildVersion
+ > release.json
+ - ''
+ - ''
- releaseId=$(curl2 -u robinshine:@secrets:github-token@ https://api.github.com/repos/theonedev/onedev/releases/tags/v$buildVersion
| jq '.id')
- ''