Productive branch
Definition
The productive branch in ODJ contains the source code of a component that is in production (or on the way to it). This value is set when you provision a tool of the category code repository
. It's necessary that you also provision a tool from the category pipeline
, to get the pipeline features from ODJ.
The productive branch is only available for advanced products
It is urgent to set the correct branch. A lot of metrics in ODJ rely on the correct value here, otherwise you will get a wrong overview.
It must be a branch and cannot be a tag.
Dependencies of this branches
The productive branch is used in many cases and metrics:
- Setting the main branch in SonarQube
- Code dependency and container scans for Snyk
- Gathering metrics about your productive stage
- Create relations of metrics from different tools shown in ODJ like the overall quality of your productive deployed component
How can I identify my productive branch?
Pushes to this branch typically starts a pipeline run that deploys your build to production. In most cases the branch names "main" or "master" is your productive branch.