Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

[FEATURE] inheritence information in operational doc#510

Merged
dennisseah merged 6 commits intomasterfrom
issue1315
Apr 6, 2020
Merged

[FEATURE] inheritence information in operational doc#510
dennisseah merged 6 commits intomasterfrom
issue1315

Conversation

@dennisseah
Copy link
Collaborator

closes microsoft/bedrock#1315

added inherit properties to command decorator json file and use
populateInheritValueFromConfig and validateForRequiredValues functions to inherit values from config.xml and check that all mandatory options have values respectively. hence removing code of performing the above tasks in pipeline.ts file

also have the validateForRequiredValues in validator.ts to throw error from error builder.

ran validation.sh - passed

(opts.repoName =
getRepositoryName(repoUrl) || getRepositoryName(gitOriginUrl)),
(opts.repoUrl = opts.repoUrl || getRepositoryUrl(gitOriginUrl));
opts.yamlFileBranch = opts.yamlFileBranch || "master";
Copy link
Collaborator

Choose a reason for hiding this comment

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

is || "master" needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for defensive programming purposes.

@dennisseah
Copy link
Collaborator Author

ran validations.sh

Get the build status for build...
pipeline: fabrikam-hld-to-fabrikam-manifests-411:
pipeline_status this iteration --> "completed"
Successful build for pipeline: fabrikam-hld-to-fabrikam-manifests-411!
info:    Generating config.yaml from yaml file input.
info:    config.yaml was generated and located at /Users/veseah/.spk/config.yaml.
info:    Successfully initialized the spk tool!
Start Time           Service      Deployment   Commit  Src to ACR Image Tag                                             Result ACR to HLD Env    Hld Commit Result HLD to Manifest Result
4/6/2020, 3:30:28 PM fabrikam2019 05b6a9381176 5e41837 669        fabrikam2019-fabrikam.acme.frontend:master-20200406.1 ✓      669        MASTER 3e3ab46    ✓      670             ✓     
1 deployment(s) were returned by spk deployment get
Verified that srcPipeline:669 acrPipelineId:669 hldPipelineId:670 pullrequest:"344" are all linked together correctly.
Successfully reached the end of spk deployment get tests.

@dennisseah dennisseah merged commit 31b1ee9 into master Apr 6, 2020
@dennisseah dennisseah deleted the issue1315 branch April 6, 2020 22:44
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.

Simplify inheritance of option values for project install-lifecycle-pipeline command

3 participants