Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Extract service path for pipeline definition location instead of service name for service install-build-pipeline #39

Merged
merged 5 commits into from
May 6, 2020

Conversation

edaena
Copy link
Contributor

@edaena edaena commented May 4, 2020

@edaena edaena requested review from bnookala, evanlouie and mtarng May 4, 2020 22:33
@mtarng mtarng changed the title Use service path instead of service name Extract service path for pipeline definition location instead of service name for service install-build-pipeline May 5, 2020
@mtarng
Copy link
Contributor

mtarng commented May 5, 2020

Looks good, this should be verified against the smoke tests we have that uses both the flag for a packages directory and has a file path for the service.

We should follow up this ticket with the suggestion to deprecate and remove the flag for the packages directory for creating new services.

@andrebriggs
Copy link
Member

@edaena @mtarng Did our integration tests catch this?

@edaena edaena changed the title Extract service path for pipeline definition location instead of service name for service install-build-pipeline [do not merge]Extract service path for pipeline definition location instead of service name for service install-build-pipeline May 5, 2020
@andrebriggs andrebriggs marked this pull request as draft May 5, 2020 21:24
@edaena
Copy link
Contributor Author

edaena commented May 6, 2020

Follow-up task to deprecate the packages flag: microsoft/bedrock#1416

@edaena edaena changed the title [do not merge]Extract service path for pipeline definition location instead of service name for service install-build-pipeline Extract service path for pipeline definition location instead of service name for service install-build-pipeline May 6, 2020
@edaena edaena marked this pull request as ready for review May 6, 2020 20:45
@edaena edaena merged commit 3989c3a into master May 6, 2020
if (servicePath === "") {
throw buildError(errorStatusCode.VALIDATION_ERR, {
errorKey: "project-pipeline-err-service-missing",
values: [serviceName],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have unit test for this?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@edaena edaena May 7, 2020

Choose a reason for hiding this comment

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

No, I'll make the update in a different pr.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bedrock service install-build-pipeline is not validating the correct pipeline definition value
7 participants