Skip to content

Instantly share code, notes, and snippets.

@baso53
Last active June 29, 2020 14:58
Show Gist options
  • Save baso53/a690fde3274eef5ef8f50953b73d1195 to your computer and use it in GitHub Desktop.
Save baso53/a690fde3274eef5ef8f50953b73d1195 to your computer and use it in GitHub Desktop.
resources:
- name: project-repo
type: git
source:
uri: git@github.com:spring-petclinic/spring-petclinic-kotlin.git
branch: master
jobs:
- name: build
plan:
- get: project-repo
trigger: true
- task: gradle-build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: gradle
inputs:
- name: project-repo
outputs:
- name: build-output
run:
path: sh
args:
- -exc
- |
gradle build -p ./project-repo
cp ./project-repo/build/libs/-*.jar ./build-output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment