Projects can leverage this set of templates when they are a python project that needs to upload python packages to a PyPi repository.
These templates are located in the ci-management repo at "ci-management/jjb/onap-jjb/onap-pypi-template.yaml".
There are currently 4 templates available:
- {project-name}-python-staging-{stream}
- {project-name}-python-release-{stream}
- {project-name}-{subproject}-python-staging-{stream}
- {project-name}-{subproject}-python-release-{stream}
General Job Information
The "staging" jobs will trigger a Jenkins job that builds the python package and pushes the package to a staging repo located here https://nexus3.onap.org/repository/PyPi.staging/.
The staging jobs can be triggered by the following events:
- A gerrit merge event
- A comment on a gerrit patch of "pypi-remerge"
The "release" jobs will trigger a similar job that builds the python package and pushes it to the release repo located here https://nexus3.onap.org/repository/PyPi.release/.
The release jobs can be triggered by the following event:
- A comment on a gerrit patch of "pypi-release"
Both jobs require the following variables to be defined:
- project-name
- stream
- tox-dir (optional, default: '')
- tox-envs (optional, default: '')
Related articles