Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Fix HealthCheck auth endpoint for alternate Azure Clouds (Server 2022.1 stream) #40

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
3d4d008
Removing spike executable (#25)
MJRichardson Mar 9, 2022
a5bb17c
Add support for discovering Web App deployment slots as targets (#27)
geofflamrock May 6, 2022
a2c96f7
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 9, 2022
2647090
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 9, 2022
334a2d1
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 9, 2022
170090c
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 9, 2022
79dc7a7
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 9, 2022
75004b8
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
04d5072
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
b1281f0
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
cfb684e
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
9a168c4
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
e53d014
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
f399e48
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
404cc3b
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
13564b4
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
b2fd04f
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
1f760fe
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
d84c0d3
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
f6f2eab
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
97a8e9a
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
8fc9412
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
bc83aae
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
f0afb2c
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
5076b5f
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
4ea816d
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
79491a4
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
b884fdf
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
0eb0c31
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
93ebd28
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
014487c
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
e8af926
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
0cf42e2
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
678dc7c
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
b1fb796
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
6403ad6
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
fa9c19c
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
0ad4ecb
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
de4b068
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
7f9ca0d
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
6c09104
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
ab676ad
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
bd86324
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
geofflamrock May 9, 2022
13d85e3
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 9, 2022
da56c3e
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 10, 2022
49dcb24
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 10, 2022
480de5b
Builds: all configs get Pull Request feature
mjhilton May 10, 2022
2ad332d
Builds: clear patched features from patch files
mjhilton May 10, 2022
cbf251c
Builds: remove unused configs
mjhilton May 10, 2022
15af245
Builds: Apply patch to Chain
mjhilton May 10, 2022
3f1d295
Builds: Fix import for PR feature
mjhilton May 10, 2022
98b1756
Builds: Fix import for Chain dependencies
mjhilton May 10, 2022
18b5d9a
Improves target discovery resilience and tests (#30)
geofflamrock May 11, 2022
c044183
Caps max retry delay to 10 seconds
geofflamrock May 11, 2022
13e5e58
Improves handling of NotFound responses
geofflamrock May 12, 2022
e0ead68
Changes NotFound handling to use fallback policy
geofflamrock May 12, 2022
827e22d
Minor naming and other improvements
geofflamrock May 12, 2022
2a66dc9
Fix precedence of TargetDiscovery failure policies
mjhilton May 12, 2022
17d4b36
Failing test that reproduces https://github.com/OctopusDeploy/Issues/…
mjhilton May 6, 2022
207cb8a
Adds separate test for RunFromPackage setting
mjhilton May 7, 2022
da5ffdc
Clean up test fixture
mjhilton May 7, 2022
6e1f1a9
Fixes OctopusDeploy/Issues#7456
mjhilton May 7, 2022
f447c2f
Prevents file locking in new Integration tests
mjhilton May 9, 2022
9c3a143
Fixes potential NullRefEx when test creds are missing
mjhilton May 12, 2022
61eda0d
Adds prefix to name of discovered web app targets (#33)
geofflamrock May 13, 2022
8656565
Failing test to reproduce OctopusDeploy/Issues#7095
mjhilton May 13, 2022
c8885cc
Fix locking on the source Zip file for ZipDeploy
mjhilton May 13, 2022
250e017
Removes unneeded test method overload
mjhilton May 16, 2022
9423f0f
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 18, 2022
d72ad3d
Build feature parameter added
liam-mackie May 19, 2022
a7a47dd
Build feature parameter added
liam-mackie May 19, 2022
6698d8a
Build feature parameter added
liam-mackie May 19, 2022
af831de
Build feature parameter added
liam-mackie May 19, 2022
c6ef7d5
Build feature parameter added
liam-mackie May 19, 2022
a1d5765
Build feature parameter added
liam-mackie May 19, 2022
86d22a4
Build feature parameter added
liam-mackie May 19, 2022
89d3bbd
Build feature parameter added
liam-mackie May 19, 2022
62858ee
Build feature parameter added
liam-mackie May 19, 2022
c5d6100
Build feature parameter added
liam-mackie May 19, 2022
76d016e
Build feature parameter added
liam-mackie May 19, 2022
761bcf8
Build feature parameter added
liam-mackie May 19, 2022
389b500
Build feature parameter added
liam-mackie May 19, 2022
1edbe00
Build feature parameter added
liam-mackie May 19, 2022
8c90343
TeamCity change in 'Octopus Deploy / Libraries / Sashimi Group / Sash…
mjhilton May 27, 2022
34a58ce
TeamCity change in project with id OctopusDeploy_LIbraries_Sashimi_Sa…
mjhilton May 27, 2022
7695294
Ensure AppService Deployment Targets' health check respects proxy set…
mjhilton Jun 15, 2022
89b3976
Failing tests for Auth and Management endpoints
mjhilton Jul 19, 2022
a5dbd05
Fixes authentication for alternate Azure Clouds
mjhilton Jul 19, 2022
a5b2845
Fix capitalisation of test name
mjhilton Jul 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ source/OctopusTools.v2.ncrunchsolution
/publish/
TestResult.xml
TestResults/
.idea/
.idea/
*.runsettings
20 changes: 18 additions & 2 deletions .teamcity/octopus/main/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package octopus.main

import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.commitStatusPublisher
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.pullRequests
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.PullRequests

fun BuildType.includeVcs(): BuildType {
this.vcs {
root(AbsoluteId("SharedGitHubVcsRoot"))
root(AbsoluteId("OctopusDeploy_LIbraries_Sashimi_SharedGitHubVcsRoot"))

excludeDefaultBranchChanges = true
showDependenciesChanges = true
Expand All @@ -19,11 +21,25 @@ fun BuildType.commitStatusPublisher(): BuildType {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
return this
}

fun BuildType.githubPullRequests(): BuildType {
this.features {
pullRequests {
provider = github {
authType = token {
token = "credentialsJSON:e3abf97f-cad5-4d88-9a7a-f588c55c53ed"
}
filterAuthorRole = PullRequests.GitHubRoleFilter.MEMBER
}
}
}
return this
}

2 changes: 1 addition & 1 deletion .teamcity/octopus/main/MainProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object MainProject : Project({
PublishToFeedzIo
)

buildTypesToRegister.forEach { buildType(it.includeVcs().commitStatusPublisher()) }
buildTypesToRegister.forEach { buildType(it.includeVcs().commitStatusPublisher().githubPullRequests()) }
buildTypesOrder = buildTypesToRegister.toList()

sequential {
Expand Down
2 changes: 1 addition & 1 deletion .teamcity/octopus/main/MonoTestingProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class MonoTestingProject : Project({
})
}

buildTypesToRegister.forEach { buildType(it.commitStatusPublisher()) }
buildTypesToRegister.forEach { buildType(it.commitStatusPublisher().githubPullRequests()) }
buildTypesOrder = buildTypes.toList()

params {
Expand Down
10 changes: 2 additions & 8 deletions .teamcity/octopus/main/NetFxTestingProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class NetFxTestingProject : Project({

val buildTypesToRegister = sequence {
val items = listOf(
("Windows 2008" to "2008"),
("Windows 2008 R2" to "2008R2"),
("Windows 2012" to "2012"),
("Windows 2012 R2" to "2012R2"),
("Windows 2016" to "2016"),
Expand All @@ -30,15 +28,11 @@ class NetFxTestingProject : Project({
equals("system.Octopus.OSVersion", item.second)
}
}
if(item.second.startsWith("2008")) {
yield(CalamariOnlyTestBuildType(block))
} else {
yield(DotNetTestBuildType(block))
}
yield(DotNetTestBuildType(block))
}
}

buildTypesToRegister.forEach { buildType(it.commitStatusPublisher()) }
buildTypesToRegister.forEach { buildType(it.commitStatusPublisher().githubPullRequests()) }
buildTypesOrder = buildTypes.toList()

params {
Expand Down
14 changes: 1 addition & 13 deletions .teamcity/octopus/main/NetcoreTestingProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class NetcoreTestingProject : Project({
("Amazon Linux" to "AmazonLinux"),
("Ubuntu" to "Ubuntu"),
("openSUSE Leap" to "openSUSE"),
("SUSE LES" to "SLES"),
("CentOS" to "CentOS"),
("Fedora" to "Fedora"),
("Debian" to "Debian"),
Expand Down Expand Up @@ -48,20 +47,9 @@ class NetcoreTestingProject : Project({
exists("system.Octopus.DotnetSdk3.1")
}
})
yield(DotNetTestBuildType {
id("Mac OSX".toId(projectName.toId()))
name = "Mac OSX"
params {
param("dotnet_runtime", "osx-x64")
}
requirements {
exists("DotNetCLI")
equals("teamcity.agent.jvm.os.name", "Mac OS X")
}
})
}

buildTypesToRegister.forEach { buildType(it.commitStatusPublisher()) }
buildTypesToRegister.forEach { buildType(it.commitStatusPublisher().githubPullRequests()) }
buildTypesOrder = buildTypes.toList()

params {
Expand Down
90 changes: 84 additions & 6 deletions .teamcity/octopus/main/buildtypes/PublishToFeedzIo.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package octopus.main.buildtypes

import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.nuGetPublish
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs

object PublishToFeedzIo : BuildType({
name = "Publish to Feedz.io"
name = "Chain: Build and Test and Publish to Feedz.io"

buildNumberPattern = "${Build.depParamRefs.buildNumber}"

Expand All @@ -15,32 +16,109 @@ object PublishToFeedzIo : BuildType({
toolPath = "%teamcity.tool.NuGet.CommandLine.DEFAULT%"
packages = "*.nupkg"
serverUrl = "%InternalNuget.OctopusDependeciesFeedUrl%"
apiKey = "%nuGetPublish.apiKey%"
apiKey = "credentialsJSON:a7d4426a-7256-4df7-a953-266292e6ad81"
args = "-Timeout 1200"
}
}

triggers {
vcs {
branchFilter = """
## We actually want to publish all builds
+:refs/tags/*
+:<default>
+:refs/heads/*
+:pull/*
+:refs/tags/*
""".trimIndent()
}
}

dependencies {
dependency(Build) {
snapshot {
onDependencyFailure = FailureAction.CANCEL
}

artifacts {
cleanDestination = true
artifactRules = "*.nupkg"
}
}

dependency(RelativeId("NetcoreTesting_AmazonLinux")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_Ubuntu")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_OpenSUSE")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_CentOS")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_Fedora")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_Debian")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_Rhel")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("NetcoreTesting_Windows")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}

dependency(RelativeId("WindowsNetFxTesting_2012")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("WindowsNetFxTesting_2012r2")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("WindowsNetFxTesting_2016")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
dependency(RelativeId("WindowsNetFxTesting_2019")){
snapshot {
onDependencyFailure = FailureAction.CANCEL
onDependencyCancel = FailureAction.CANCEL
}
}
}

requirements {
equals("system.Octopus.Purpose", "Build")
startsWith("system.agent.name", "nautilus-")
}
})
2 changes: 1 addition & 1 deletion .teamcity/octopus/main/buildtypes/TestBuildType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class TestBuildType(block: BuildType.() -> Unit) : BuildType({
buildNumberPattern = "${Build.depParamRefs.buildNumber}"

vcs {
AbsoluteId("SharedGitHubVcsRoot")
AbsoluteId("OctopusDeploy_LIbraries_Sashimi_SharedGitHubVcsRoot")

checkoutMode = CheckoutMode.MANUAL
cleanCheckout = true
Expand Down
10 changes: 9 additions & 1 deletion .teamcity/patches/buildTypes/Build.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,18 @@ changeBuildType(RelativeId("Build")) {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
feature1.apply {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:7416c240-5c67-48ed-97a3-f5fe49d0e744"
}
}
}
}
}
10 changes: 9 additions & 1 deletion .teamcity/patches/buildTypes/NetcoreTesting_AmazonLinux.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ changeBuildType(RelativeId("NetcoreTesting_AmazonLinux")) {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
feature1.apply {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:7416c240-5c67-48ed-97a3-f5fe49d0e744"
}
}
}
}
}
10 changes: 9 additions & 1 deletion .teamcity/patches/buildTypes/NetcoreTesting_CentOS.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ changeBuildType(RelativeId("NetcoreTesting_CentOS")) {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
feature1.apply {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:7416c240-5c67-48ed-97a3-f5fe49d0e744"
}
}
}
}
}
10 changes: 9 additions & 1 deletion .teamcity/patches/buildTypes/NetcoreTesting_Debian.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ changeBuildType(RelativeId("NetcoreTesting_Debian")) {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
feature1.apply {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:7416c240-5c67-48ed-97a3-f5fe49d0e744"
}
}
}
}
}
10 changes: 9 additions & 1 deletion .teamcity/patches/buildTypes/NetcoreTesting_Fedora.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ changeBuildType(RelativeId("NetcoreTesting_Fedora")) {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
feature1.apply {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:7416c240-5c67-48ed-97a3-f5fe49d0e744"
}
}
}
}
}
12 changes: 0 additions & 12 deletions .teamcity/patches/buildTypes/NetcoreTesting_MacOsx.kts

This file was deleted.

10 changes: 9 additions & 1 deletion .teamcity/patches/buildTypes/NetcoreTesting_OpenSUSE.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ changeBuildType(RelativeId("NetcoreTesting_OpenSUSE")) {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "%commitStatusPublisher.apiKey%"
token = "credentialsJSON:d2d6ff31-56f1-4893-a448-f7a517da6c88"
}
}
}
}
feature1.apply {
publisher = github {
githubUrl = "https://api.github.com"
authType = personalToken {
token = "credentialsJSON:7416c240-5c67-48ed-97a3-f5fe49d0e744"
}
}
}
}
}
Loading