New version is bigger than last released version or no versions released yet
Package has non-empty keywords, in pyproject.toml[project] if present, otherwise in setup.py (eggrepo returns a 500 on the package page without them); checked before a release as well
Long description is set: setup.py must have a non-empty long_description, and long_description_content_type="text/x-rst" is added to it when README.rst exists; pyproject.toml[project] must have readme (the content type comes from the file extension), it is added automatically from README.rst or README.md (eggrepo can not render the package page without a long description)
Packages with a [project] table in pyproject.toml get their metadata from the build backend and are released with python -m build --sdist, so setup.py is optional for them. Values in setup.py for fields that [project] declares are ignored by setuptools.
Is done only if there are files changed since the latest release.
Updates local Dockerfiles(DEPENDENT_DOCKERFILE_URL) with the new release number.
Version is calculated using current date - YY.MM.DD ( when HOTFIX variable is given - YY.MM.DD-RELEASE) or using a script located at the EXTRACT_VERSION_SH variable value, which is by default src/docker/calculate_next_release.sh
Waits for dockerhub to finish the build succesfully before creating the Rancher Catalog release and triggering Dockerfile updates(DEPENDENT_DOCKERFILE_URL) and triggering Docker Hub repo builds (TRIGGER_RELEASE).
GIT_USERNAME - User that will do the changes in github, default "EEA Jenkins"
GIT_EMAIL - Email that will do the changes in github, default value set in code
DOCKERHUB_REPO - Dockerhub repository name ( for example eeacms/kgs for KGS )
DOCKERHUB_REPO_SUFIX - If the image is also released with a suffix ( for example will update both IMAGE:VERSION and IMAGE:VERSION-SUFIX)
RANCHER_CATALOG_PATHS - If given will upgrade only the catalog paths after the release. If not given, will be calculated from the catalog locating all current releases containing DOCKERHUB_REPO
RANCHER_CATALOG_SAME_VERSION - If given, will not create new catalog releases, but upgrade the last one found in the catalog with the new release of DOCKERHUB_REPO
DEPENDENT_DOCKERFILE_URL - Space separated list of Dockerfiles witch will contain the new release of the DOCKERHUB_REPO - 2 types:
Local Dockerfile - same branch, same repo, will share a release with the main Dockerfile so will be updated before the release on github - for example - devel/Dockerfile
Remote Dockerfile - other branch or other repo - format is - ORG/REPO/blob/BRANCH/PATH_TO_Dockerfile - will be updated after the release on Dockerhub and catalog
EXTRACT_VERSION_SH - location of script to calculate the next release, if file is not found will use the YY.MM.DD release.
GIT_TOKEN - Mandatory, the token used for GitHub API
DOCKERHUB_USER - Mandatory, the token used for Dockerhub release trigger and check status
DOCKERHUB_PASS - Mandatory, the token used for Dockerhub release trigger and check status
TRIGGER_MAIN_URL - Trigger url for DOCKERHUB_REPO to resubmit in case of failure to start
TRIGGER_RELEASE - Space separated list of DEPENDENT_DOCKERFILE_REPOS;TRIGGER_OF_THE_REPO - will be triggered after the DEPENDENT_DOCKERFILE_URL upgrades.