Skip to content

Use isOutput=true when writing variables in Azure DevOps #859

@goldsam

Description

@goldsam

Using variables written in one job/stage in Azure Devops from a later job/stage currently requires re-exporting NBGV_* variables resulting in needlessly complex azure pipeline files. Would it be possible to add a cli flag to that variables written in a devops environment will include isoutput=true?

public IReadOnlyDictionary<string, string> SetCloudBuildVariable(string name, string value, TextWriter stdout, TextWriter stderr)
{
Utilities.FileOperationWithRetry(() =>
(stdout ?? Console.Out).WriteLine($"##vso[task.setvariable variable={name};]{value}"));
return GetDictionaryFor(name, value);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions