Files
exercisie-ratpack/bitbucket-pipelines.yml
T

30 lines
1.1 KiB
YAML

# This is a sample build configuration for Java (Maven).
# Check our guides at https://confluence.atlassian.com/x/zd-5Mw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: maven:3.3.9
pipelines:
default:
- step:
caches:
- maven
script: # Modify the commands below to build your repository.
- mvn -B verify # -B batch mode makes Maven less verbose
- step:
name: Run test
deployment: test
script:
- mvn clean test
- step:
name: Build package
deployment: production
trigger: manual
script:
- mvn clean install
- mv target/github-repo-seeker-1.0-SNAPSHOT-jar-with-dependencies.jar target/github-repo-seeker_$(git rev-parse --short HEAD).jar
- ls target/
- curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"target/github-repo-seeker_$(git rev-parse --short HEAD).jar"