Skip to content

Commit c704807

Browse files
authored
Merge pull request #3559 from chocolatey/release/2.4.0
(release) 2.4.0
2 parents 781d36f + 8253217 commit c704807

File tree

104 files changed

+5634
-1314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+5634
-1314
lines changed

.editorconfig

Lines changed: 0 additions & 184 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
stale:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/stale@v4.1.0
15+
- uses: actions/stale@v9
1616
id: stale
1717
with:
1818
days-before-stale: 30
@@ -24,9 +24,10 @@ jobs:
2424
only-labels: '0 - Waiting on User'
2525
close-issue-label: "No Response / Stale"
2626
close-pr-label: "No Response / Stale"
27-
exempt-issue-labels: 'Security / CVE'
28-
exempt-pr-labels: 'Security / CVE'
29-
labels-to-remove-when-unstale: '0 - Wating on User,Pending closure'
27+
exempt-issue-labels: 'Security / CVE,2 - Working,3 - Review'
28+
exempt-pr-labels: 'Security / CVE,2 - Working,3 - Review'
29+
labels-to-remove-when-unstale: '0 - Waiting on User,Pending closure'
30+
remove-stale-when-updated: true
3031
stale-issue-message: |
3132
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
3233
This issue will be closed in 14 days if it continues to be inactive.

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ code_drop
66
obj
77
src/packages
88
/.vscode/**
9+
!.vscode/extensions.json
910
!/.vscode/settings.json
1011
.vs
1112

@@ -53,4 +54,7 @@ tools/**
5354
!tools/Modules/packages.config
5455
BuildArtifacts/
5556
code_drop/
56-
src/chocolatey.install/assets/Install.ps1
57+
src/chocolatey.install/assets/Install.ps1
58+
59+
# This project uses an editorconfig file maintained via a nuget package, so do not commit any of these to the repo
60+
.editorconfig

.teamcity/settings.kts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ object Chocolatey : BuildType({
2222
id = AbsoluteId("Chocolatey")
2323
name = "Chocolatey CLI (Built with Unit Tests)"
2424

25+
templates(AbsoluteId("SlackNotificationTemplate"))
26+
2527
artifactRules = """
2628
""".trimIndent()
2729

@@ -86,13 +88,16 @@ object Chocolatey : BuildType({
8688

8789
requirements {
8890
doesNotExist("docker.server.version")
91+
doesNotContain("teamcity.agent.name", "Docker")
8992
}
9093
})
9194

9295
object ChocolateySchd : BuildType({
9396
id = AbsoluteId("ChocolateySchd")
9497
name = "Chocolatey CLI (Scheduled Integration Testing)"
9598

99+
templates(AbsoluteId("SlackNotificationTemplate"))
100+
96101
artifactRules = """
97102
""".trimIndent()
98103

@@ -150,13 +155,16 @@ object ChocolateySchd : BuildType({
150155

151156
requirements {
152157
doesNotExist("docker.server.version")
158+
doesNotContain("teamcity.agent.name", "Docker")
153159
}
154160
})
155161

156162
object ChocolateyQA : BuildType({
157163
id = AbsoluteId("ChocolateyQA")
158164
name = "Chocolatey CLI (SonarQube)"
159165

166+
templates(AbsoluteId("SlackNotificationTemplate"))
167+
160168
artifactRules = """
161169
""".trimIndent()
162170

@@ -216,13 +224,16 @@ object ChocolateyQA : BuildType({
216224

217225
requirements {
218226
doesNotExist("docker.server.version")
227+
doesNotContain("teamcity.agent.name", "Docker")
219228
}
220229
})
221230

222231
object ChocolateySign : BuildType({
223232
id = AbsoluteId("ChocolateySign")
224233
name = "Chocolatey CLI (Script Signing)"
225234

235+
templates(AbsoluteId("SlackNotificationTemplate"))
236+
226237
artifactRules = """
227238
""".trimIndent()
228239

@@ -286,13 +297,16 @@ object ChocolateySign : BuildType({
286297

287298
requirements {
288299
doesNotExist("docker.server.version")
300+
doesNotContain("teamcity.agent.name", "Docker")
289301
}
290302
})
291303

292304
object ChocolateyDockerWin : BuildType({
293305
id = AbsoluteId("ChocolateyDockerWin")
294306
name = "Docker (Windows)"
295307

308+
templates(AbsoluteId("SlackNotificationTemplate"))
309+
296310
params {
297311
// TeamCity has suggested "${Chocolatey.depParamRefs.buildNumber}"
298312
param("env.CHOCOLATEY_VERSION", "%dep.Chocolatey.build.number%")
@@ -340,13 +354,16 @@ object ChocolateyDockerWin : BuildType({
340354
requirements {
341355
contains("docker.server.osType", "windows")
342356
exists("docker.server.version")
357+
contains("teamcity.agent.name", "Docker")
343358
}
344359
})
345360

346361
object ChocolateyPosix : BuildType({
347362
id = AbsoluteId("ChocolateyPosix")
348363
name = "Docker (Linux)"
349364

365+
templates(AbsoluteId("SlackNotificationTemplate"))
366+
350367
params {
351368
param("env.CAKE_NUGET_SOURCE", "") // The Cake version we use has issues with authing to our private source on Linux
352369
param("env.PRIMARY_NUGET_SOURCE", "") // As above there are issues with authing to our private source on Linux
@@ -452,5 +469,6 @@ object ChocolateyPosix : BuildType({
452469
requirements {
453470
contains("docker.server.osType", "linux")
454471
exists("docker.server.version")
472+
contains("teamcity.agent.name", "Docker")
455473
}
456474
})

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one"
4+
]
5+
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"[powershell]": {
33
"files.encoding": "utf8bom",
4-
}
4+
},
5+
"markdown.extension.toc.levels": "2..6"
56
}

0 commit comments

Comments
 (0)