Allow upper-constraints redirect based on SHA
This patch aims to make possible to provide SHA commit for https://releases.openstack.org/constraints/upper/ URL in addition to branch or tag. This is heavily used by OSA to be sure that every time role is runned under some release it will install the same package versions. And to be consistent and use releases.openstack.org for contraints not only in tox but in role itself this patch is needed. Change-Id: I1ce0af2ab2163ea1f154516229889b3cf8813ab6
This commit is contained in:
committed by
Dmitriy Rabotyagov (noonedeadpunk)
parent
a771140484
commit
529190ddfa
@@ -3,4 +3,5 @@ redirect 301 /constraints/upper/master https://opendev.org/openstack/requirement
|
||||
{%- for redirection in redirections %}
|
||||
redirect {{ redirection.code }} /constraints/upper/{{ redirection.src }} https://opendev.org/openstack/requirements/raw/{{ redirection.ref_type }}/{{ redirection.dst }}/upper-constraints.txt
|
||||
{%- endfor %}
|
||||
redirectmatch 302 ^/constraints/upper/([0-9a-f]{40})$ https://opendev.org/openstack/requirements/raw/commit/$1/upper-constraints.txt
|
||||
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
{%- for redirection in redirections %}
|
||||
/constraints/upper/{{ redirection.src }} {{ redirection.code }} https://opendev.org/openstack/requirements/raw/{{ redirection.ref_type }}/{{ redirection.dst }}/upper-constraints.txt
|
||||
{%- endfor %}
|
||||
/constraints/upper/5d2dc701ab2fe7e87d78e4d96eb444766eef6725 302 https://opendev.org/openstack/requirements/raw/commit/5d2dc701ab2fe7e87d78e4d96eb444766eef6725/upper-constraints.txt
|
||||
|
||||
Reference in New Issue
Block a user