forked from HariSekhon/DevOps-Bash-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gocd.yml
89 lines (86 loc) · 2.25 KB
/
.gocd.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# vim:ts=2:sts=2:sw=2:et
#
# Author: Hari Sekhon
# Date: 2020-03-21 11:14:07 +0000 (Sat, 21 Mar 2020)
#
# https://github.com/harisekhon/bash-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/harisekhon
#
# https://github.com/tomzo/gocd-yaml-config-plugin#setup
# https://docs.gocd.org/current/configuration/configuration_reference.html
format_version: 3
pipelines:
devops-bash-tools:
group: defaultGroup
label_template: ${COUNT}
lock_behavior: none
display_order: -1
materials:
git:
git: https://github.com/harisekhon/bash-tools
shallow_clone: false
auto_update: true
branch: master
stages:
- build-and-test:
fetch_materials: true
keep_artifacts: false
clean_workspace: false
approval:
type: success
allow_only_on_success: false
jobs:
# apt-update:
# timeout: 10
# tasks:
# - exec:
# command: apt
# arguments:
# - update
# run_if: passed
# install-make:
# timeout: 10
# tasks:
# - exec:
# command: apt
# arguments:
# - install
# - -qy
# - git
# - make
# run_if: passed
ci-bootstrap:
timeout: 10
tasks:
- exec:
command: setup/ci_bootstrap.sh
run_if: passed
init:
timeout: 10
tasks:
- exec:
command: make
arguments:
- init
run_if: passed
build:
timeout: 60
tasks:
- exec:
command: make
arguments:
- ci
run_if: passed
test:
timeout: 60
tasks:
- exec:
command: make
arguments:
- test
run_if: passed