Skip to content

Commit

Permalink
feat(azure-pipelines): add isOutput and isReadOnly to SetVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Klemm committed Jan 24, 2024
1 parent 78bb364 commit 48dc878
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/Nuke.Common/CI/AzurePipelines/AzurePipelines.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,16 @@ public void LogIssue(
.AddPairWhenValueNotNull("code", code));
}

public void SetVariable(string name, string value, bool? isSecret = null)
public void SetVariable(string name, string value, bool? isSecret = null, bool? isOutput = null, bool? isReadOnly = null)
{
WriteCommand(
"task.setvariable",
value,
dictionaryConfigurator: x => x
.AddPair("variable", name)
.AddPairWhenValueNotNull("issecret", isSecret));
.AddPairWhenValueNotNull("issecret", isSecret)
.AddPairWhenValueNotNull("isoutput", isOutput)
.AddPairWhenValueNotNull("isreadonly", isReadOnly));
}

private string GetText(AzurePipelinesIssueType type)
Expand Down

0 comments on commit 48dc878

Please sign in to comment.