forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trailmax-feature/DeployOnOctopusRelase' into develop
- Loading branch information
Showing
10 changed files
with
1,555 additions
and
232 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/Cake.Common.Tests/Fixtures/Tools/OctopusDeployReleaseDeployerFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using Cake.Common.Tools.OctopusDeploy; | ||
using Cake.Testing.Fixtures; | ||
|
||
namespace Cake.Common.Tests.Fixtures.Tools | ||
{ | ||
public sealed class OctopusDeployReleaseDeployerFixture : ToolFixture<OctopusDeployReleaseDeploymentSettings> | ||
{ | ||
internal string Server { get; set; } | ||
|
||
internal string ApiKey { get; set; } | ||
|
||
internal string Project { get; set; } | ||
|
||
internal string DeployTo { get; set; } | ||
|
||
internal string ReleaseNumber { get; set; } | ||
|
||
public OctopusDeployReleaseDeployerFixture() : base("Octo.exe") | ||
{ | ||
Server = "http://octopus"; | ||
ApiKey = "API-12345"; | ||
Project = "MyProject"; | ||
DeployTo = "Testing"; | ||
ReleaseNumber = "0.15.1"; | ||
} | ||
|
||
protected override void RunTool() | ||
{ | ||
var tool = new OctopusDeployReleaseDeployer(FileSystem, Environment, ProcessRunner, Tools); | ||
tool.DeployRelease(Server, ApiKey, Project, DeployTo, ReleaseNumber, Settings); | ||
} | ||
} | ||
} |
Oops, something went wrong.