2019-08-19 08:12:22 +00:00
|
|
|
image: openjdk:8
|
|
|
|
|
|
|
|
pipelines:
|
|
|
|
default:
|
2019-08-19 09:43:07 +00:00
|
|
|
- step: # define the build pipeline for the tag
|
2019-08-19 08:12:22 +00:00
|
|
|
caches:
|
|
|
|
- gradle
|
2019-08-19 09:43:07 +00:00
|
|
|
name: Build and Test
|
2019-08-19 08:12:22 +00:00
|
|
|
script:
|
2019-08-19 09:43:07 +00:00
|
|
|
- bash ./gradlew clean build
|
|
|
|
tags: # add the 'tags' section
|
|
|
|
release-*: # specify the tag
|
|
|
|
- step: # define the build pipeline for the tag
|
|
|
|
caches:
|
|
|
|
- gradle
|
|
|
|
name: Build and Release
|
|
|
|
script:
|
2021-08-22 13:55:46 +00:00
|
|
|
- bash ./gradlew clean build
|
|
|
|
- shopt -s nullglob ; for file in ${BITBUCKET_CLONE_DIR}/build/libs/*.jar ; do curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"${file}" ; done
|