forked from microsoft/PSRule-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.config.cjs
130 lines (125 loc) · 3.39 KB
/
extension.config.cjs
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Configuration script for extension
module.exports = (env) => {
let [publisher, idPrefix] = (env.official == "true") ? ["ps-rule", "pipelines"] : ["bewhite", "ps-rule"];
let version = env.version;
let [idPostfix, namePostfix] = (env.channel == "stable") ? ["", ""] : ["-dev", " [DEV]"];
if (env.channel == "canary") {
idPostfix = "-canary";
namePostfix = " [CANARY]";
}
else if (env.channel == "preview") {
idPostfix = "-preview";
namePostfix = " [PREVIEW]";
}
let manifest = {
manifestVersion: 1,
id: `${idPrefix}${idPostfix}`,
name: `PSRule${namePostfix}`,
version: version,
publisher: publisher,
targets: [
{ id: "Microsoft.VisualStudio.Services" },
],
description: "An extension for using PSRule within Azure Pipelines.",
public: false,
categories: ["Azure Pipelines"],
branding: {
theme: "dark",
color: "#0072c6"
},
content: {
details: {
path: "extension.md"
},
license: {
path: "LICENSE"
}
},
links: {
home: {
uri: "https://github.com/microsoft/PSRule-pipelines"
},
repository: {
uri: "https://github.com/microsoft/PSRule-pipelines"
},
issues: {
uri: "https://github.com/microsoft/PSRule-pipelines/issues"
}
},
repository: {
type: "git",
url: "https://github.com/microsoft/PSRule-pipelines"
},
files: [
{
path: "out/dist/images/icon128.png",
packagePath: "/images/icon128.png",
assetType: "Microsoft.VisualStudio.Services.Icons.Default"
},
{
path: "out/dist/ps-rule-assert",
packagePath: "/ps-rule-assert"
},
{
path: "out/dist/ps-rule-install",
packagePath: "/ps-rule-install"
},
{
path: "out/dist/modules.json",
packagePath: "/ps-rule-assert/ps-rule-assertV2/modules.json"
},
{
path: "out/dist/version.json",
packagePath: "/ps-rule-assert/ps-rule-assertV2/version.json"
},
{
path: "out/dist/ps_modules/PSRule/2.9.0",
packagePath: "/ps-rule-assert/ps-rule-assertV2/ps_modules/PSRule/2.9.0"
},
{
path: "out/dist/ps_modules/VstsTaskSdk/0.20.0",
packagePath: "/ps-rule-assert/ps-rule-assertV2/ps_modules/VstsTaskSdk"
},
{
path: "out/dist/ps_modules/PowerShellGet",
packagePath: "/ps-rule-install/ps-rule-installV2/ps_modules/PowerShellGet"
},
{
path: "out/dist/ps_modules/PackageManagement",
packagePath: "/ps-rule-install/ps-rule-installV2/ps_modules/PackageManagement"
},
{
path: "out/dist/ps_modules/VstsTaskSdk/0.20.0",
packagePath: "/ps-rule-install/ps-rule-installV2/ps_modules/VstsTaskSdk"
}
],
contributions: [
{
id: "assert",
type: "ms.vss-distributed-task.task",
targets: [
"ms.vss-distributed-task.tasks"
],
properties: {
name: "ps-rule-assert"
}
},
{
id: "install",
type: "ms.vss-distributed-task.task",
targets: [
"ms.vss-distributed-task.tasks"
],
properties: {
name: "ps-rule-install"
}
}
],
CustomerQnASupport: {
enableqna: false
},
}
return manifest;
}