Skip to content

Commit a82ad5e

Browse files
committed
Add sec opts for pipeline
1 parent 59ddb24 commit a82ad5e

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

Jenkinsfile

+28-22
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
library "alauda-cicd"
22
def language = "golang"
33
AlaudaPipeline {
4-
config = [
5-
agent: 'golang-1.13',
6-
folder: '.',
7-
chart: [
4+
config = [
5+
agent: 'golang-1.13',
6+
folder: '.',
7+
chart: [
88
[
99
chart: "captain",
1010
pipeline: "chart-captain",
1111
project: "acp",
1212
component: "captain",
1313
],
14-
],
15-
scm: [
16-
credentials: 'acp-acp-gitlab'
17-
],
18-
docker: [
19-
repository: "acp/captain",
20-
credentials: "alaudak8s",
21-
context: ".",
22-
dockerfile: "Dockerfile",
23-
],
24-
sonar: [
25-
binding: "sonarqube",
26-
enabled: true,
27-
],
28-
notification: [
29-
name: "default"
30-
],
14+
],
15+
scm: [
16+
credentials: 'acp-acp-gitlab'
17+
],
18+
docker: [
19+
repository: "acp/captain",
20+
credentials: "alaudak8s",
21+
context: ".",
22+
dockerfile: "Dockerfile",
23+
],
24+
sonar: [
25+
binding: "sonarqube",
26+
enabled: true,
27+
],
28+
sec: [
29+
enabled: true,
30+
block: false,
31+
lang: 'go',
32+
customOpts: ''
33+
],
34+
notification: [
35+
name: "default"
36+
],
3137

32-
]
38+
]
3339
env = [
3440
GO111MODULE: "on",
3541
GOPROXY: "https://athens.alauda.cn",

0 commit comments

Comments
 (0)