forked from tomzo/gocd-yaml-config-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.gocd.yaml
69 lines (69 loc) · 1.9 KB
/
ci.gocd.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
format_version: 3
pipelines:
"gocd-yaml-plugin":
group: gocd
label_template: "${git[:8]}"
locking: off
materials:
git:
git: [email protected]:tomzo/gocd-yaml-config-plugin.git
blacklist:
- README.md
stages:
- build:
clean_workspace: true
resources:
- docker
artifacts:
- build:
source: build/libs/*.jar
destination: build/libs
tasks:
- exec:
command: bash
arguments:
- -c
- ./tasks.sh build
- release:
approval: manual
clean_workspace: true
jobs:
github:
resources:
- docker
secure_variables:
GITHUB_TOKEN: "AES:+QBztHVft9PmbwLLgpXvhA==:QHWQ+Ya2aJF2HoYo2G6LGlb2thWekhXiO626YKcEfeCw0IH7ornkOf7F91+RetOY"
tasks:
- fetch:
stage: build
job: build
source: build/libs
destination: build
- exec:
command: /bin/bash
arguments:
- ./tasks.sh
- github_release
- bump:
clean_workspace: true
jobs:
patch:
resources:
- docker
tasks:
- exec:
command: /bin/bash
arguments:
- ./tasks.sh
- set_version
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks.sh commit
- exec:
command: git
arguments:
- push
- origin
- master