---
resources:
- name: repo
type: git
source:
uri: https://github.com/making/hello-servlet.git
jobs:
- name: unit-test
plan:
- get: repo
trigger: true
- task: mvn-test
config:
platform: linux
image_resource:
type: docker-image
source:
repository: maven
inputs:
- name: repo
run:
path: bash
args:
- -c
- |
set -e
cd repo
mvn test
fly -t ws set-pipeline -p hello-servlet -c pipeline.yml
fly -t ws unpause-pipeline -p hello-servlet
fly -t ws trigger-job -j hello-servlet/unit-test --watch