-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtask.json
More file actions
121 lines (121 loc) · 3.69 KB
/
task.json
File metadata and controls
121 lines (121 loc) · 3.69 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"atomCode": "dockerBuildPush",
"execution": {
"packagePath": "dockerBuildPush.jar",
"language": "java",
"minimumVersion": "1.8",
"demands": [],
"target": "java -jar dockerBuildPush.jar"
},
"input": {
"sourceMirrorTicketPair": {
"label": "源仓库host、凭证键值对",
"default": [],
"type": "key-value-normal",
"desc": "Dockerfile中From的基础镜像仓库以及该host的凭证名称",
"required": false,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"targetImage": {
"label": "目标镜像地址(含域名+路径)",
"default": "",
"placeholder": "例如:csighub.tencentyun.com/pathA/imageName",
"type": "vuex-input",
"required": true,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"targetTicketId": {
"label": "目标镜像仓库凭证",
"desc": "登录到目标镜像仓库的凭证",
"default": "",
"placeholder": "请选择",
"type": "select-input",
"required": false,
"disabled": false,
"hidden": false,
"isSensitive": false,
"optionsConf": {
"searchable": true,
"clearable": true,
"multiple": false,
"url": "/ticket/api/user/credentials/{projectId}/hasPermissionList?permission=USE&page=1&pageSize=100&credentialTypes=USERNAME_PASSWORD",
"paramId": "credentialId",
"paramName": "credentialId",
"itemTargetUrl": "/ticket/{projectId}/createCredential/USERNAME_PASSWORD/true",
"itemText": "添加相应的凭证",
"hasAddItem": true
}
},
"targetImageTag": {
"label": "目标镜像tag",
"default": "latest",
"placeholder": "请输入目标镜像tag;大小写字母,数字,下划线,不能包含中划线",
"type": "vuex-input",
"desc": "大小写字母,数字,下划线,不能用中划线,不超过127个字符",
"required": true,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"dockerBuildDir": {
"label": "Docker Build执行目录(workspace相对路径)",
"default": ".",
"type": "vuex-input",
"desc": " docker build 命令执行的路径 ",
"required": true,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"dockerFilePath": {
"label": "DockerFile位置(workspace相对路径/Dockerfile)",
"default": "Dockerfile",
"type": "vuex-input",
"desc": " Dockerfile所在的位置及文件名称,不填默认为根目录下的Dockerfile",
"required": true,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"dockerBuildArgs": {
"label": "docker build build-arg参数的值,多个换行分隔",
"default": "",
"placeholder": "例如:key1=value1\nkey2=value2",
"type": "vuex-textarea",
"required": false,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"dockerBuildHosts": {
"label": "docker build add-host参数的值,多个换行分隔(只支持第三方机器,暂不支持公共机)",
"type": "vuex-textarea",
"required": false,
"disabled": false,
"hidden": false,
"isSensitive": false
}
},
"output": {
"BK_DOCKER_TARGE_IMAGE_NAME": {
"description": "目标镜像地址",
"type": "string",
"props": {
"noticeMail": false
},
"isSensitive": false
},
"BK_DOCKER_TARGE_IMAGE_TAG": {
"description": "目标镜像Tag",
"type": "string",
"props": {
"noticeMail": false
},
"isSensitive": false
}
}
}