-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple.gocd.yaml
More file actions
30 lines (30 loc) · 973 Bytes
/
simple.gocd.yaml
File metadata and controls
30 lines (30 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# simple.gocd.yaml
pipelines:
default_java:
group: simple
materials:
mygit: # this is the name of material
# says about type of material and url at once
git: https://github.com/gargmukku07/sample-java.git
branch: master
stages:
- build: # name of stage
clean_workspace: true
jobs:
build: # name of the job
environment_variables:
JAVA_HOME: /app/tools/java
M2_HOME: /app/tools/maven
artifacts:
- build:
source: target/*.jar
destination: artifacts/
- test:
source: target/surefire-reports
destination: test-reports/
tasks:
- exec: # indicates type of task
command: /app/tools/maven/bin/mvn
arguments:
- clean
- install