-
Notifications
You must be signed in to change notification settings - Fork 0
Manifest
diamond_dragon edited this page Apr 14, 2021
·
6 revisions
Typical manifest may look as follows:
artifacts:
exportOnCompletion: true
variables:
srcPath: /src
activities:
git:
image: godeltech/codereview.tools.gitprovider
environment:
GIT_REPOSITORY_URL: https://github.com/GodelTech/CodeReview.Orchestrator.git
GIT_BRANCH: main
volumes:
sources: ${var.srcPath}
roslyn:
image: godeltech/codereview.analyzers.roslyn
environment:
SOLUTION_FILE_PATH: /src/CodeReview.Orchestrator.sln
volumes:
sources: ${var.srcPath}
roslyn-converter:
image: godeltech/codereview.file-converter
command:
- roslyn
- --output
- /artifacts/rolsyn-result.zip
- --folder
- /artifacts
- --src
- ${var.srcPath}/
- --mask
- '*.roslyn.json'
The following guidelines may simplify creation and maintenance of CodeReview.Orchestrator manifests:
- Avoid explicit declaration of parameters if values match defaults. This approach makes manifests shorter and easier to understand.
- Consider usage of long parameter names. Many command line tools support long and short command line parameter names:
-dand--destination. Long parameter names provide better understanding of their purpose and eliminate a need to study documentation of tool to understand parameter. - Use variables to avoid duplication of the same parameters in multiple places.
- Use environent variables to pass security information rather than hardcode passwords and tokens in manifests.