-
Notifications
You must be signed in to change notification settings - Fork 4
/
task.json
155 lines (154 loc) · 4.24 KB
/
task.json
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"atomCode": "uploadArtifact",
"execution": {
"packagePath": "uploadArtifact-jar-with-dependencies.jar",
"language": "java",
"minimumVersion": "1.8",
"demands": [],
"target": "$bk_java_path -jar uploadArtifact-jar-with-dependencies.jar -Dfile.encoding=utf8"
},
"input": {
"filePath": {
"label": "待归档的文件",
"default": "",
"placeholder": "请输入文件路径,支持Glob通配符(目录名中只能包含*或者**通配符,待匹配文件名支持所有Glob通配符)",
"type": "vuex-input",
"desc": "归档当前工作空间相对路径或绝对路径目录下的构建产物,可以用通配符匹配,支持多个路径(以英文 , 隔开),\r\n不支持归档目录,上传文件个数不超过500个",
"required": true,
"disabled": false,
"hidden": false,
"isSensitive": false
},
"repoName":{
"type": "enum-input",
"default": "pipeline",
"required": true,
"list": [
{
"value": "pipeline",
"label": "流水线仓库"
},
{
"value": "custom",
"label": "自定义仓库"
}
]
},
"isParentPipeline": {
"text": "归档至父流水线",
"default": false,
"type": "atom-checkbox",
"required": false,
"disabled": false,
"hidden": false,
"isSensitive": false,
"rely": {
"operation": "AND",
"expression": [
{
"key": "repoName",
"value": "pipeline"
}
]
}
},
"destPath": {
"default": "./",
"type": "vuex-input",
"required": false,
"disabled": false,
"hidden": false,
"isSensitive": false,
"rely": {
"operation": "AND",
"expression": [
{
"key": "repoName",
"value": "custom"
}
]
}
},
"downloadFiles" : {
"label" : "需要输出下载链接的文件",
"type" : "dynamic-parameter-simple",
"parameters": [{
"rowAttributes": [
{
"id": "path",
"label": "文件路径",
"type": "input",
"placeholder" : "文件路径",
"desc" : "单个文件在当前工作空间的相对路径或绝对路径,不支持通配符"
},
{
"id": "param",
"label": "输出变量名称",
"type": "input",
"placeholder" : "输出变量名称",
"desc": "接收对应下载链接的变量名称"
}
],
"columnNumber": 2
}],
"desc" : "指定需要生成下载链接的文件,以及接收对应下载链接的变量,以便于在下游插件里通过变量获得链接"
},
"metadata" : {
"label" : "自定义元数据",
"type" : "dynamic-parameter-simple",
"parameters": [{
"rowAttributes": [
{
"id": "key",
"label": "键",
"type": "input",
"placeholder" : "键",
"desc": "键"
},
{
"id": "value",
"label": "值",
"type": "input",
"placeholder" : "值",
"desc": "值"
}
],
"columnNumber": 2
}],
"desc" : "为归档的所有构件添加自定义的元数据"
},
"enableMD5Checksum": {
"text": "启用MD5校验",
"default": false,
"type": "atom-checkbox",
"desc" : "校验本地与上传至制品库的文件MD5是否一致"
}
},
"releaseInfo": {
"projectId": "demo",
"name": "归档构件",
"language": "java",
"logoUrl": "${{indexFile(\"uploadArtifact.png\")}}",
"category": "TASK",
"classifyCode": "deploy",
"jobType": "AGENT",
"os": [
"LINUX",
"MACOS",
"WINDOWS"
],
"labelCodes": [
],
"summary": "本插件将构建机本地的文件归档至流水线仓库或自定义仓库,对产出物进行归档",
"description": "${{indexFile(\"README.md\")}}",
"configInfo": {
"frontendType": "NORMAL"
},
"versionInfo": {
"publisher": "BlueKing",
"releaseType": "NEW",
"version": "1.0.0",
"versionContent": "init"
}
}
}