2020-08-16 14:42:05 +00:00
|
|
|
image: adoptopenjdk:8-openj9
|
|
|
|
#image: openjdk:8
|
2020-08-13 15:50:26 +00:00
|
|
|
|
|
|
|
pipelines:
|
|
|
|
branches:
|
|
|
|
master:
|
|
|
|
- step:
|
|
|
|
caches:
|
|
|
|
- gradle
|
|
|
|
name: Build and Test
|
|
|
|
script:
|
|
|
|
- ./gradlew clean build
|
|
|
|
tags: # add the 'tags' section
|
|
|
|
v*: # specify the tag
|
|
|
|
- step: # define the build pipeline for the tag
|
|
|
|
caches:
|
|
|
|
- gradle
|
|
|
|
name: Build and Release
|
|
|
|
script:
|
2020-09-14 11:34:06 +00:00
|
|
|
- ./gradlew clean build shadowJar startShadowScripts buildRpm buildDeb
|
2020-08-18 05:55:29 +00:00
|
|
|
- shopt -s nullglob ; for file in ${BITBUCKET_CLONE_DIR}/build/libs/*-all.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
|
|
|
|
- shopt -s nullglob ; for file in ${BITBUCKET_CLONE_DIR}/build/distributions/*.rpm ; 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
|
|
|
|
- shopt -s nullglob ; for file in ${BITBUCKET_CLONE_DIR}/build/distributions/*.deb ; 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
|