diff --git a/docker-compose.build.yml b/docker-compose.build.yml index 75408a939..425bc324a 100644 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -22,12 +22,3 @@ services: TARGETOS: linux TARGETVARIANT: ${BUILD_VARIANT} image: docker.packages.octopushq.com/octopusdeploy/kubernetes-agent-tentacle:${BUILD_NUMBER?err}-linux-${BUILD_ARCH:?err} - - octopusdeploy-tentacle-windows-2019: - build: - context: . - dockerfile: ./docker/windows/Dockerfile - args: - BUILD_DATE: ${BUILD_DATE:?err} - BUILD_NUMBER: ${BUILD_NUMBER:?err} - image: docker.packages.octopushq.com/octopusdeploy/tentacle:${BUILD_NUMBER?err}-windows-2019 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index aceda3589..000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,69 +0,0 @@ -version: "3" - -services: - db: - # There appears to be an issue with this docker image and the latest version will not start - # image: docker.packages.octopushq.com/octopusdeploy/mssql-server-windows-express:${MSSQL_SERVER_VERSION} - image: octopusdeploy/mssql-server-windows-express:latest - environment: - sa_password: "${SA_PASSWORD}" - ACCEPT_EULA: "Y" - healthcheck: - test: [ "CMD", "sqlcmd", "-U", "sa", "-P", "${SA_PASSWORD}", "-Q", "select 1" ] - interval: 10s - retries: 10 - restart: always - - octopus-server: - image: docker.packages.octopushq.com/octopusdeploy/octopusdeploy:${OCTOPUS_VERSION} - environment: - ADMIN_USERNAME: "${OCTOPUS_ADMIN_USERNAME}" - ADMIN_PASSWORD: "${OCTOPUS_ADMIN_PASSWORD}" - DB_CONNECTION_STRING: "Server=db,1433;Initial Catalog=Octopus;Persist Security Info=False;User ID=sa;Password=${SA_PASSWORD};MultipleActiveResultSets=False;Connection Timeout=30;" - SKIP_IMPORT_VERSION_CHECK: "${OCTOPUS_SKIP_IMPORT_VERSION_CHECK}" - IMPORT_PASSWORD: "${OCTOPUS_IMPORT_PASSWORD}" - ACCEPT_EULA: "Y" - ports: - - "8080" - - "10943" - depends_on: - - db - stdin_open: true #Process sits and waits for ReadLine - volumes: - - "./docker/Volumes/octopus-server/Import:C:/Import" - - "./docker/Volumes/octopus-server/Repository:C:/Repository" - - "./docker/Volumes/octopus-server/MasterKey:C:/MasterKey" - restart: always - - listening-tentacle: - image: docker.packages.octopushq.com/octopusdeploy/tentacle:${TENTACLE_VERSION} - depends_on: - - octopus-server - environment: - ServerUsername: "${OCTOPUS_ADMIN_USERNAME}" - ServerPassword: "${OCTOPUS_ADMIN_PASSWORD}" - TargetEnvironment: "Development" - TargetRole: "app-server" - ServerUrl: "http://octopus-server:8080" - stdin_open: true #Process sits and waits for ReadLine - volumes: - - "./docker/Volumes/listening-tentacle/Applications:C:/Applications" - - "./docker/Volumes/listening-tentacle/TentacleHome:C:/TentacleHome" - restart: always - - polling-tentacle: - image: docker.packages.octopushq.com/octopusdeploy/tentacle:${TENTACLE_VERSION} - depends_on: - - octopus-server - environment: - ServerUsername: "${OCTOPUS_ADMIN_USERNAME}" - ServerPassword: "${OCTOPUS_ADMIN_PASSWORD}" - TargetEnvironment: "Development" - TargetRole: "web-server" - ServerUrl: "http://octopus-server:8080" - ServerPort: "10943" - stdin_open: true #Process sits and waits for ReadLine - volumes: - - "./docker/Volumes/polling-tentacle/Applications:C:/Applications" - - "./docker/Volumes/polling-tentacle/TentacleHome:C:/TentacleHome" - restart: always diff --git a/docker/Tests/OctopusRegistration.Tests.ps1 b/docker/Tests/OctopusRegistration.Tests.ps1 deleted file mode 100644 index 6836e864d..000000000 --- a/docker/Tests/OctopusRegistration.Tests.ps1 +++ /dev/null @@ -1,86 +0,0 @@ -# Pester 5 doesn't yet support parameterised tests -[string]$script:IPAddress = $env:IPAddress -[string]$script:OctopusUsername = $env:OctopusUsername -[string]$script:OctopusPassword = $env:OctopusPassword -[string]$script:TentacleVersion = $env:TentacleVersion -[string]$script:ProjectName = $env:ProjectName - -function script:New-OctopusRepository() { - $octopusURI = "http://$($script:IPAddress):8080" - Write-Host "Using Octopus server at $octopusURI" - - $endpoint = new-object Octopus.Client.OctopusServerEndpoint $octopusURI - $repository = new-object Octopus.Client.OctopusRepository $endpoint - - $loginObj = New-Object Octopus.Client.Model.LoginCommand - $loginObj.Username = $script:OctopusUsername - $loginObj.Password = $script:OctopusPassword - $repository.Users.SignIn($loginObj) - - [Octopus.Client.OctopusRepository]$repository -} - -Describe 'Octopus Registration' { - if ([System.Environment]::OSVersion.Version -eq '10.0.14393.0') { - Write-Warning "This test does not run successfully on Windows 2016" - return - } - - BeforeAll { - $repository = script:New-OctopusRepository - - Write-Host "Enumerating machines..." - $machines = $repository.Machines.FindAll() - - Write-Host "Updating Calamari..." - $machineIds = $machines.id - $task = ($repository).Tasks.ExecuteCalamariUpdate($null, $machineIds); - $repository.Tasks.WaitForCompletion($task, 4, 3); - - Write-Host "Executing health checks..." - $task = $repository.Tasks.ExecuteHealthCheck(); - $repository.Tasks.WaitForCompletion($task, 4, 3); - } - - Context 'Polling Tentacle' { - - BeforeAll { - $tentacles = , ($machines | Where-Object { $_.Endpoint.CommunicationStyle -eq [Octopus.Client.Model.CommunicationStyle]::TentacleActive }) - } - - It 'should have been registered' { - $tentacles.Length | Should -Be 1 - } - - it 'should be healthy' { - $isHealthy = $tentacles[0].HealthStatus -eq "Healthy" -or $tentacles[0].HealthStatus -eq "HasWarnings" - $isHealthy | Should -Be $true - } - - it 'should have the correct version installed' { - $tentacles[0].Endpoint.TentacleVersionDetails.Version | Should -Be $TentacleVersion - } - - } - - Context 'Listening Tentacle' { - - BeforeAll { - $tentacles = , ($machines | Where-Object { $_.Endpoint.CommunicationStyle -eq [Octopus.Client.Model.CommunicationStyle]::TentaclePassive }) - } - - It 'should have been registered' { - $tentacles.Length | Should -Be 1 - } - - it 'should be healthy' { - $isHealthy = $tentacles[0].HealthStatus -eq "Healthy" -or $tentacles[0].HealthStatus -eq "HasWarnings" - $isHealthy | Should -Be $true - } - - it 'should have the correct version installed' { - $tentacles[0].Endpoint.TentacleVersionDetails.Version | Should -Be $TentacleVersion - } - - } -} diff --git a/docker/Tests/OpenPorts.Tests.ps1 b/docker/Tests/OpenPorts.Tests.ps1 deleted file mode 100644 index 1e9b6a334..000000000 --- a/docker/Tests/OpenPorts.Tests.ps1 +++ /dev/null @@ -1,40 +0,0 @@ -# Pester 5 doesn't yet support parameterised tests -[string]$script:IPAddress = $env:IPAddress -[string]$script:OctopusUsername = $env:OctopusUsername -[string]$script:OctopusPassword = $env:OctopusPassword -[string]$script:TentacleVersion = $env:TentacleVersion -[string]$script:ProjectName = $env:ProjectName - -. .\common.ps1 - -Describe 'Port 10933' { - - BeforeAll { - $networkName = $script:ProjectName + "_default"; - $octopusServerContainer = $script:ProjectName + "-octopus-server-1"; - $octopusListeningTentacleContainer = $script:ProjectName + "-listening-tentacle-1"; - $octopusPollingTentacleContainer = $script:ProjectName + "-polling-tentacle-1"; - $octopusDBContainer = $script:ProjectName + "-db-1"; - } - - Context 'Listening Tentacle' { - - it 'should be listening on 10933' { - $listeningTentacleIPAddress = $(Get-IPAddress $networkName $octopusListeningTentacleContainer) - - Write-Host "Testing connectivity to listening tentacle at $listeningTentacleIPAddress" - $result = Test-NetConnection -Port 10933 -ComputerName $listeningTentacleIPAddress -InformationLevel "Quiet" - $result | Should -Be $true - } - } - - Context 'Polling Tentacle' { - - it 'should not be listening on 10933' { - $pollingTentacleIPAddress = $(Get-IPAddress $networkName $octopusPollingTentacleContainer) - - $result = Test-NetConnection -Port 10933 -ComputerName $pollingTentacleIPAddress -InformationLevel "Quiet" - $result | Should -Be $false - } - } -} \ No newline at end of file diff --git a/docker/Tests/VolumeMapping.Tests.ps1 b/docker/Tests/VolumeMapping.Tests.ps1 deleted file mode 100644 index 05e368550..000000000 --- a/docker/Tests/VolumeMapping.Tests.ps1 +++ /dev/null @@ -1,135 +0,0 @@ -# Pester 5 doesn't yet support parameterised tests -[string]$script:IPAddress = $env:IPAddress -[string]$script:OctopusUsername = $env:OctopusUsername -[string]$script:OctopusPassword = $env:OctopusPassword -[string]$script:TentacleVersion = $env:TentacleVersion -[string]$script:ProjectName = $env:ProjectName - -function script:Write-DeploymentLogs($logs) { - % { $logs.LogElements } | % { Write-Host $_.MessageText } - % { $logs.Children } | % { Write-DeploymentLogs $_ } -} - -function script:New-OctopusRepository() { - $octopusURI = "http://$($script:IPAddress):8080" - Write-Host "Using Octopus server at $octopusURI" - - $endpoint = new-object Octopus.Client.OctopusServerEndpoint $octopusURI - $repository = new-object Octopus.Client.OctopusRepository $endpoint - - $loginObj = New-Object Octopus.Client.Model.LoginCommand - $loginObj.Username = $script:OctopusUsername - $loginObj.Password = $script:OctopusPassword - $repository.Users.SignIn($loginObj) - - [Octopus.Client.OctopusRepository]$repository -} - -Describe 'Volume Mounts' { - - BeforeAll { - $repository = script:New-OctopusRepository - } - - Context 'C:\TentacleHome' { - - it 'polling-tentacle should contain logs' { - Test-Path "./Volumes/polling-tentacle/TentacleHome/Logs/OctopusTentacle.txt" | Should -Be $true - } - - it 'listening-tentacle should contain logs' { - Test-Path "./Volumes/listening-tentacle/TentacleHome/Logs/OctopusTentacle.txt" | Should -Be $true - } - } - - Context 'C:\Applications' { - - function script:Clean { - $project = $repository.Projects.FindByName("MyFirstProject") - if ($null -ne $project) { - $repository.Projects.Delete($project) - } - - # We clean everything in here except .gitignore as the directory's existence needs to be preserved - # in order that the Docker bind mounts (required before our tests even start) can be wired up. - Remove-Item .\Volumes\polling-tentacle\Applications\* -Recurse -Force -Exclude ".gitignore" - Remove-Item .\Volumes\listening-tentacle\Applications\* -Recurse -Force -Exclude ".gitignore" - } - - BeforeEach { - script:Clean - } - - AfterEach { - script:Clean - } - - it 'should contain deployed packages' { - if ([System.Environment]::OSVersion.Version -eq '10.0.14393.0') { - Write-Warning "This test does not run successfully on windows 2016" - return - } - # Reindex built in library. This ensures that Octopus is aware of the - # nupkg file sitting in C:\Repository - $task = New-Object Octopus.Client.Model.TaskResource - $task.Name = "SynchronizeBuiltInPackageRepositoryIndex" - $task.Description = "Re-index built-in package repository" - $task.State = [Octopus.Client.Model.TaskState]::Queued - - $Task1 = $repository.Tasks.Create($task) - - try { - $repository.Tasks.WaitForCompletion($Task1) - } - finally { - # Write the logs from the reindex task to debug any issues - $details = $repository.Tasks.GetDetails($Task1) - $details.ActivityLogs | % { script:Write-DeploymentLogs $_ } - } - - # Create Project - $pg = $repository.ProjectGroups.FindAll()[0] - $lc = $repository.Lifecycles.FindAll()[0] - $env = $repository.Environments.FindAll()[0] - $project = $repository.Projects.CreateOrModify("MyFirstProject", $pg, $lc) - $pkg = New-Object Octopus.Client.Model.PackageResource - $pkg.PackageId = "Serilog.Sinks.TextWriter" - $pkg.FeedId = "feeds-builtin" - $project.DeploymentProcess.AddOrUpdateStep("Deploy").TargetingRoles("app-server", "web-server").AddOrUpdatePackageAction("DeploySeriLog", $pkg) - $p = $project.Save() - - # Create Release - $release = new-object Octopus.Client.Model.ReleaseResource - $release.Version = "1.0.1" - $release.ProjectId = $p.Instance.Id - $selectedPackage = New-Object Octopus.Client.Model.SelectedPackage - $selectedPackage.ActionName = "DeploySeriLog" - $selectedPackage.StepName = "DeploySeriLog" - $selectedPackage.Version = "2.1.0" - $release.SelectedPackages.Add($selectedPackage) - $release = $repository.Releases.Create($release, $true) - - # Create Deployment - $deployment = New-Object Octopus.Client.Model.DeploymentResource - $deployment.ReleaseId = $release.Id - $deployment.ProjectId = $release.ProjectId - $deployment.EnvironmentId = $env.Id - $deployment = $repository.Deployments.Create($deployment) - - # Wait For Deployment - $task = $repository.Tasks.Get($deployment.TaskId) - - try { - $repository.Tasks.WaitForCompletion($task, 4, 3) - } - finally { - # Write the logs from the deployment to debug any issues - $details = $repository.Tasks.GetDetails($task) - $details.ActivityLogs | % { Write-DeploymentLogs $_ } - } - - Test-Path "./Volumes/polling-tentacle/Applications/$($env.Name)/$($pkg.PackageId)" | Should -Be $true - Test-Path "./Volumes/listening-tentacle/Applications/$($env.Name)/$($pkg.PackageId)" | Should -Be $true - } - } -} diff --git a/docker/Volumes/listening-tentacle/Applications/.gitignore b/docker/Volumes/listening-tentacle/Applications/.gitignore deleted file mode 100644 index 74ef6bcda..000000000 --- a/docker/Volumes/listening-tentacle/Applications/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# This directory needs to exist so that our Docker containers can bind to it when we `docker-compose up -d` the universe. -* -!.gitignore \ No newline at end of file diff --git a/docker/Volumes/listening-tentacle/TentacleHome/.gitignore b/docker/Volumes/listening-tentacle/TentacleHome/.gitignore deleted file mode 100644 index 74ef6bcda..000000000 --- a/docker/Volumes/listening-tentacle/TentacleHome/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# This directory needs to exist so that our Docker containers can bind to it when we `docker-compose up -d` the universe. -* -!.gitignore \ No newline at end of file diff --git a/docker/Volumes/octopus-server/Import/Environments/Development.json b/docker/Volumes/octopus-server/Import/Environments/Development.json deleted file mode 100644 index 93f361503..000000000 --- a/docker/Volumes/octopus-server/Import/Environments/Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$type": "Octopus.Core.Model.Environments.DeploymentEnvironment, Octopus.Core", - "Id": "Environments-1", - "Name": "Development", - "Description": "", - "SortOrder": 0, - "UseGuidedFailure": false -} \ No newline at end of file diff --git a/docker/Volumes/octopus-server/Import/metadata.json b/docker/Volumes/octopus-server/Import/metadata.json deleted file mode 100644 index 8d3411f7c..000000000 --- a/docker/Volumes/octopus-server/Import/metadata.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$type": "Octopus.Migrator.Core.ExportProcess.ServerMetadata, Octopus.Migrator.Core", - "Id": "SKYNET", - "Name": "SKYNET", - "Created": "2017-03-10T19:34:16.8844884+10:00", - "DatabaseVersion": "0.0.0", - "Hello": "QodGbnfU53iwUAt0ayr+og==|AAAAAAAAAAAAAAAAAAAAAA==" -} \ No newline at end of file diff --git a/docker/Volumes/octopus-server/MasterKey/.gitignore b/docker/Volumes/octopus-server/MasterKey/.gitignore deleted file mode 100644 index 74ef6bcda..000000000 --- a/docker/Volumes/octopus-server/MasterKey/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# This directory needs to exist so that our Docker containers can bind to it when we `docker-compose up -d` the universe. -* -!.gitignore \ No newline at end of file diff --git a/docker/Volumes/octopus-server/Repository/.gitignore b/docker/Volumes/octopus-server/Repository/.gitignore deleted file mode 100644 index 095a4fab5..000000000 --- a/docker/Volumes/octopus-server/Repository/.gitignore +++ /dev/null @@ -1 +0,0 @@ -# This directory needs to exist so that our Docker containers can bind to it when we `docker-compose up -d` the universe. diff --git a/docker/Volumes/octopus-server/Repository/Serilog.Sinks.TextWriter/Serilog.Sinks.TextWriter.2.1.0.nupkg b/docker/Volumes/octopus-server/Repository/Serilog.Sinks.TextWriter/Serilog.Sinks.TextWriter.2.1.0.nupkg deleted file mode 100644 index 166b763f5..000000000 Binary files a/docker/Volumes/octopus-server/Repository/Serilog.Sinks.TextWriter/Serilog.Sinks.TextWriter.2.1.0.nupkg and /dev/null differ diff --git a/docker/Volumes/octopus-server/Repository/Spaces-1/feeds-builtin/Serilog.Sinks.TextWriter/Serilog.Sinks.TextWriter.2.1.0.nupkg b/docker/Volumes/octopus-server/Repository/Spaces-1/feeds-builtin/Serilog.Sinks.TextWriter/Serilog.Sinks.TextWriter.2.1.0.nupkg deleted file mode 100644 index 166b763f5..000000000 Binary files a/docker/Volumes/octopus-server/Repository/Spaces-1/feeds-builtin/Serilog.Sinks.TextWriter/Serilog.Sinks.TextWriter.2.1.0.nupkg and /dev/null differ diff --git a/docker/Volumes/polling-tentacle/Applications/.gitignore b/docker/Volumes/polling-tentacle/Applications/.gitignore deleted file mode 100644 index 74ef6bcda..000000000 --- a/docker/Volumes/polling-tentacle/Applications/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# This directory needs to exist so that our Docker containers can bind to it when we `docker-compose up -d` the universe. -* -!.gitignore \ No newline at end of file diff --git a/docker/Volumes/polling-tentacle/TentacleHome/.gitignore b/docker/Volumes/polling-tentacle/TentacleHome/.gitignore deleted file mode 100644 index 74ef6bcda..000000000 --- a/docker/Volumes/polling-tentacle/TentacleHome/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# This directory needs to exist so that our Docker containers can bind to it when we `docker-compose up -d` the universe. -* -!.gitignore \ No newline at end of file diff --git a/docker/common.ps1 b/docker/common.ps1 deleted file mode 100644 index af80561b9..000000000 --- a/docker/common.ps1 +++ /dev/null @@ -1,40 +0,0 @@ -function Get-IPAddress() { - param ([ValidateNotNullOrEmpty()][string]$network, [ValidateNotNullOrEmpty()][string]$container) - $docker = (docker inspect $container | convertfrom-json)[0] - return $docker.NetworkSettings.Networks.$network.IpAddress -} - -function Wait-ForServiceToPassHealthCheck() { - param ([ValidateNotNullOrEmpty()][string]$serviceName) - - $attempts = 0; - $sleepsecs = 10; - while ($attempts -lt 50) { - $attempts++ - $state = ($(docker inspect $serviceName) | ConvertFrom-Json).State - if ($LASTEXITCODE -ne 0) { - exit $LASTEXITCODE - } - - $health = $state.Health.Status; - Write-Host "Waiting for $serviceName to be healthy (current: $health)..." - if ($health -eq "healthy") { - break; - } - - if ($state.Status -eq "exited") { - Write-Error "$serviceName appears to have already failed and exited." - docker logs $serviceName > .\Temp\ConsoleLogs\$($serviceName).log - exit 1 - } - - Sleep -Seconds $sleepsecs - } - - if ((($(docker inspect $serviceName) | ConvertFrom-Json).State.Health.Status) -ne "healthy") { - Write-DebugInfo @($serviceName) - Write-Error "Octopus container $serviceName failed to go healthy after $($attempts * $sleepsecs) seconds"; - docker logs $serviceName > .\Temp\ConsoleLogs\$($serviceName).log - exit 1; - } -} diff --git a/docker/readme.md b/docker/readme.md index 59da8ef54..5c1657cb4 100644 --- a/docker/readme.md +++ b/docker/readme.md @@ -41,7 +41,7 @@ docker run --publish 10931:10933 ` ``` -It is recommended that you run this using something like docker compose, so that it sets up and handles networking for you. Please see the [`docker-compose.yml` file in the Octopus Tentacle](https://github.com/OctopusDeploy/OctopusTentacle/blob/main/docker-compose.yml) repo for an example. Otherwise, use `docker network` so that the containers can talk to each other. +It is recommended that you run this using something like docker compose, so that it sets up and handles networking for you. Otherwise, use `docker network` so that the containers can talk to each other. ### Environment variables diff --git a/docker/run-tests.ps1 b/docker/run-tests.ps1 deleted file mode 100644 index 758e4e43b..000000000 --- a/docker/run-tests.ps1 +++ /dev/null @@ -1,53 +0,0 @@ -param ( - [ValidateNotNullOrEmpty()] - [string]$ProjectName, - [ValidateNotNullOrEmpty()] - [string]$OctopusVersion, - [ValidateNotNullOrEmpty()] - [string]$TentacleVersion -) - -# -SkipPublisherCheck is required because earlier versions of Pester cause conflicts if they're already installed. -Install-Module -Name "Pester" -MinimumVersion "5.0.2" -MaximumVersion "5.1.1" -Force -SkipPublisherCheck -Import-Module -Name "Pester" -MinimumVersion "5.0.2" -MaximumVersion "5.1.1" -Write-Host "Pester Version: " (Get-Module Pester).Version - -# We do this here even though it's a dependency of our tests because we can't install it more than once -# without erroring. -Install-Package Octopus.Client -source https://www.nuget.org/api/v2 -Force -SkipDependencies -Add-Type -Path (Join-Path (Get-Item ((Get-Package Octopus.Client).source)).Directory.FullName "lib/net462/Octopus.Client.dll") - -. .\common.ps1 - -$networkName = "${ProjectName}_default" -$octopusServerContainerName = "${ProjectName}-octopus-server-1" -Write-Host "Octopus Server container is $octopusServerContainerName" -$octopusServerIpAddress = Get-IPAddress $networkName $octopusServerContainerName -Write-Host "Octopus Server hosted at $octopusServerIpAddress" -$listeningTentacleContainerName = "${ProjectName}-listening-tentacle-1" -$pollingTentacleContainerName = "${ProjectName}-polling-tentacle-1" - -Wait-ForServiceToPassHealthCheck $octopusServerContainerName -Wait-ForServiceToPassHealthCheck $listeningTentacleContainerName -Wait-ForServiceToPassHealthCheck $pollingTentacleContainerName - -# Ensure that the artifacts directory exists so that we can drop test results into it -New-Item -ItemType Directory -Force -Path ../artifacts | Out-Null - -Write-Output "Running Pester Tests" -$configuration = [PesterConfiguration]::Default -$configuration.TestResult.Enabled = $true -$configuration.TestResult.OutputPath = '../artifacts/TestResults.xml' -$configuration.TestResult.OutputFormat = 'NUnitXml' -$configuration.Run.PassThru = $true -$configuration.Run.Path = "./Tests/*.Tests.ps1" -$configuration.Should.ErrorAction = 'Continue' - -$env:IPAddress = $octopusServerIpAddress; -$env:OctopusUsername = "admin"; -$env:OctopusPassword = "Passw0rd123"; -$env:OctopusVersion = $OctopusVersion; -$env:TentacleVersion = $TentacleVersion; -$env:ProjectName = $ProjectName - -Invoke-Pester -Configuration $configuration