-
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
Added checks for input Tags. #12994
Added checks for input Tags. #12994
Conversation
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 an L0 test case for empty tag input.
Tasks/DockerV2/dockerbuild.ts
Outdated
@@ -42,7 +42,8 @@ export function run(connection: ContainerConnection, outputUpdate: (data: string | |||
let labelArguments = pipelineUtils.getDefaultLabels(addPipelineData); | |||
|
|||
// get tags input | |||
let tags = tl.getInput("tags").split(/[\n,]+/); | |||
let tagInput = tl.getInput("tags"); |
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.
tagsInput
Will add test cases in another PR. |
Tasks/DockerV2/dockerpush.ts
Outdated
@@ -20,7 +20,9 @@ function pushMultipleImages(connection: ContainerConnection, imageNames: string[ | |||
// create chained promise of push commands | |||
if (imageNames && imageNames.length > 0) { | |||
imageNames.forEach(imageName => { | |||
tl.debug(`KAI ${tags.length}`); |
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 is not needed, right?
Tasks/DockerV2/dockerpush.ts
Outdated
if (tags && tags.length > 0) { | ||
tl.debug(`KAIii ${tags}`); |
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.
And this as well?
0608758
to
857ac7f
Compare
No description provided.