Add user regexp for version tag validation 22/65222/6
authorBengt Thuree <bthuree@linuxfoundation.org>
Fri, 28 Aug 2020 07:05:06 +0000 (17:05 +1000)
committerBengt Thuree <bthuree@linuxfoundation.org>
Wed, 2 Sep 2020 01:52:04 +0000 (11:52 +1000)
commiteef14703efe2bc191b53108b2d60626cfeea98e2
tree8012eb97488294e21c702e6140be380314a26f67
parent270c0964e2f4da39c2a61378273d8e135b83b237
Add user regexp for version tag validation

This patch adds the possibility to change the Version Schema.
This is done by the --version_regexp <regexp> parameter.
If this parameter is not used, then the default #.#.#
("^\d+.\d+.\d+$") regexp will be used.

The <regexp> could be an regexp expression or a filename pointing
to a file containing an regexp.

Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Change-Id: I0099977f74c0da6bb87795111a48771fb3be4cd6
lftools/cli/nexus.py
lftools/nexus/release_docker_hub.py
releasenotes/notes/releasedockerhub_add_version_syntax-b1c18023ec130d81.yaml [new file with mode: 0644]
tests/fixtures/nexus/releasedockerhub_bad_regexp [new file with mode: 0644]
tests/fixtures/nexus/releasedockerhub_good_regexp [new file with mode: 0644]
tests/test_release_docker_hub.py