Skip to content
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

Merged
merged 4 commits into from
May 26, 2020
Merged

Conversation

koushdey
Copy link
Contributor

No description provided.

@koushdey koushdey requested a review from ammohant as a code owner May 26, 2020 07:04
Copy link
Contributor

@ajinkya599 ajinkya599 left a 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.

@@ -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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tagsInput

@koushdey
Copy link
Contributor Author

Will add test cases in another PR.

@@ -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}`);
Copy link
Contributor

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?

if (tags && tags.length > 0) {
tl.debug(`KAIii ${tags}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this as well?

@koushdey koushdey force-pushed the users/kodey/addingChecksForTagInput branch from 0608758 to 857ac7f Compare May 26, 2020 09:21
@koushdey koushdey merged commit 57bf6ff into master May 26, 2020
@koushdey koushdey deleted the users/kodey/addingChecksForTagInput branch May 26, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants