-
Notifications
You must be signed in to change notification settings - Fork 46
/
Jenkinsfile
62 lines (61 loc) · 1.18 KB
/
Jenkinsfile
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
library "alauda-cicd"
def language = "golang"
AlaudaPipeline {
config = [
agent: 'golang-1.13',
folder: '.',
chart: [
[
chart: "captain",
pipeline: "chart-captain",
project: "acp",
component: "captain",
],
],
scm: [
credentials: 'acp-acp-gitlab'
],
docker: [
repository: "acp/captain",
credentials: "alaudak8s",
context: ".",
dockerfile: "Dockerfile",
],
sonar: [
binding: "sonarqube",
enabled: true,
],
sec: [
enabled: true,
block: false,
lang: 'go',
customOpts: ''
],
notification: [
name: "default"
],
]
env = [
GO111MODULE: "on",
GOPROXY: "https://athens.alauda.cn",
]
yaml = "alauda.yaml"
stepsYaml =
"""
steps:
- name: "Unit test"
container: "golang"
groovy:
- |+
try {
sh script: "make test", label: "unit tests..."
} finally {
junit allowEmptyResults: true, testResults: 'pkg/**/*.xml'
}
- name: "Build"
container: "golang"
commands:
- |+
make build
"""
}