-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Adding Docker V2 task - Simplify the task inputs for YAML #9707
Conversation
addLabel(command, hostName, "build.repository.name", "BUILD_REPOSITORY_NAME"); | ||
} | ||
|
||
export function addBuildLabels(command: ToolRunner, hostName: string): void { |
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.
Add suffix of Args to all such function. We should add pipeline labels for build .
export function addCommonLabels(command: ToolRunner, hostName: string): void { | ||
addLabel(command, hostName, "system.teamfoundationcollectionuri", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"); | ||
addLabel(command, hostName, "system.teamproject", "SYSTEM_TEAMPROJECT"); | ||
addLabel(command, hostName, "build.repository.name", "BUILD_REPOSITORY_NAME"); |
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.
build.repository.name should probably be pipeline.repository.name
if (hostName) { | ||
addCommonLabels(command, hostName); | ||
let hostType = tl.getVariable("SYSTEM_HOSTTYPE"); | ||
if (hostType.toLowerCase() === "build") { |
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.
is the hostType pipeline as well for pipelines? If not, can you please file a bug on build team for this
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.
hostType is build only. You will be writing the mail as discussed.
24c9063
to
0e92fe5
Compare
…ner registry type and other complex inputs which can be supported using arguments
- Fixed some issues with buildAndPush and login - Added debug logs - bumping up versions of other tasks dependent on docker-common (causing PR build failures)
… up KubernetesV1 version
- Bump up versions for tasks depending on docker-common (Use milestone versioning)
44cb515
to
7301a9e
Compare
When will this be available for use in Pipelines? Attempts at using it result in the following error: "An error occurred while loading the YAML build pipeline. wrong number of segments" |
It should be available in next 3-4 weeks on Azure Devops. |
Simplify the task inputs for YAML by removing Container registry type and other complex inputs which can be supported using arguments.
Added support for multiple logins/logouts.
Bumping up versions of other tasks dependent on docker-common. Using milestone based versioning. (DockerComposeV0, DockerV0, DockerV1, KubernetesV0, KubernetesV1)