libcvrapi/bitbucket-pipelines.yml

20 lines
804 B
YAML
Raw Permalink Normal View History

image: openjdk:8
pipelines:
default:
2019-08-19 09:43:07 +00:00
- step: # define the build pipeline for the tag
caches:
- gradle
2019-08-19 09:43:07 +00:00
name: Build and Test
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:
- 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