Skip to content

Commit a4c0275

Browse files
bec-callow-octOctobob
authored andcommitted
Adds support for selecting specific target tags on runbook run creation
+semver: minor GitOrigin-RevId: 49076bbede4d2bbf4011f077e4ddbc21552c5cf1
1 parent 9d48030 commit a4c0275

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

source/Octopus.Client.Tests/PublicSurfaceAreaFixture.ThePublicSurfaceAreaShouldNotRegress..NETCore.approved.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,6 +2874,7 @@ Octopus.Client.Model
28742874
String DeploymentProcessId { get; set; }
28752875
String EnvironmentId { get; set; }
28762876
Octopus.Client.Model.ReferenceCollection ExcludedMachineIds { get; set; }
2877+
Octopus.Client.Model.ReferenceCollection ExcludedTargetTagIds { get; set; }
28772878
Boolean FailTargetDiscovery { get; set; }
28782879
Boolean FailureEncountered { get; set; }
28792880
Boolean ForcePackageDownload { get; set; }
@@ -5271,6 +5272,7 @@ Octopus.Client.Model
52715272
Octopus.Client.Model.ReferenceCollection DeployedToMachineIds { get; set; }
52725273
String EnvironmentId { get; set; }
52735274
Octopus.Client.Model.ReferenceCollection ExcludedMachineIds { get; set; }
5275+
Octopus.Client.Model.ReferenceCollection ExcludedTargetTagIds { get; set; }
52745276
Boolean FailTargetDiscovery { get; set; }
52755277
Boolean FailureEncountered { get; set; }
52765278
Boolean ForcePackageDownload { get; set; }

source/Octopus.Server.Client/Model/DeploymentResource.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,18 @@ public DeploymentResource()
6363
/// <summary>
6464
/// A collection of target tag identifiers that should be included in the deployment.
6565
/// Only deployment targets that have at least one of these tags will be deployed to.
66+
/// Tag IDs are in the format "TagSets-{id}/Tags-{id}".
6667
/// </summary>
6768
[WriteableOnCreate]
6869
public ReferenceCollection SpecificTargetTagIds { get; set; }
70+
71+
/// <summary>
72+
/// A collection of target tag identifiers that should be excluded from the deployment.
73+
/// Only deployment targets that have none of these tags will be deployed to.
74+
/// Tag IDs are in the format "TagSets-{id}/Tags-{id}".
75+
/// </summary>
76+
[WriteableOnCreate]
77+
public ReferenceCollection ExcludedTargetTagIds { get; set; }
6978

7079
public string ManifestVariableSetId { get; set; }
7180
public string TaskId { get; set; }

source/Octopus.Server.Client/Model/RunbookRunResource.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,18 @@ public RunbookRunResource()
6060
/// <summary>
6161
/// A collection of target tag identifiers that should be included in the deployment.
6262
/// Only deployment targets that have at least one of these tags will be deployed to.
63+
/// Tag IDs are in the format "TagSets-{id}/Tags-{id}".
6364
/// </summary>
6465
[WriteableOnCreate]
6566
public ReferenceCollection SpecificTargetTagIds { get; set; }
67+
68+
/// <summary>
69+
/// A collection of target tag identifiers that should be excluded from the deployment.
70+
/// Only deployment targets that have none of these tags will be deployed to.
71+
/// Tag IDs are in the format "TagSets-{id}/Tags-{id}".
72+
/// </summary>
73+
[WriteableOnCreate]
74+
public ReferenceCollection ExcludedTargetTagIds { get; set; }
6675

6776
public string ManifestVariableSetId { get; set; }
6877
public string TaskId { get; set; }

0 commit comments

Comments
 (0)