-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secrets context #22
secrets context #22
Conversation
@@ -481,16 +481,10 @@ public void InitializeJob(Pipelines.AgentJobRequestMessage message, Cancellation | |||
// Environment variables shared across all actions | |||
EnvironmentVariables = new Dictionary<string, string>(VarUtil.EnvironmentVariableKeyComparer); | |||
|
|||
// Expression values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this just moved down a little
@@ -186,6 +187,19 @@ public bool TryGetValue(string name, out string val) | |||
_trace.Verbose($"Get '{name}' (not found)"); | |||
return false; | |||
} | |||
|
|||
public DictionaryContextData ToSecretsContext() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variables is useful infra, we might as well make use of this class to add useful functions :)
if (contextData?.Count > 0) | ||
{ | ||
foreach (var pair in contextData) | ||
{ | ||
result.ExpressionValues[pair.Key] = pair.Value; | ||
} | ||
} | ||
|
||
// Compat for new agent against old server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been meaning to add this so we don't hit the future-agent-old-server compat problem again :)
LGTM |
Develop to master
No description provided.