Correct manifest index of openstack git folders

Currently the manifest contains all the possible repositories
which would be present if a non-selective git clone was done,
rather than the actual resulting list of git folders.

This patch corrects the manifest to only contain the list of
what is actually there after the build process completes.

Change-Id: I20ad8d21d4a68f8daa30c730a08a134b0cc9c0d3
(cherry picked from commit 421e9055c4)
This commit is contained in:
Jesse Pretorius 2018-01-24 13:51:08 +00:00 committed by Jesse Pretorius (odyssey4me)
parent 95d8f98b47
commit 236485b748
2 changed files with 12 additions and 3 deletions

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Index all manifest items
- name: Index all os-releases/venvs files
find:
paths:
- "{{ repo_build_release_path }}"
@ -22,6 +22,15 @@
tags:
- repo-create-release-manifest
- name: Index all openstackgit directories
find:
file_type: directory
paths:
- "{{ repo_build_git_dir }}"
register: manifest_git_items
tags:
- repo-create-release-manifest
- name: Create release manifest
template:
src: "manifest.in.j2"

View File

@ -8,6 +8,6 @@
{{ item_cleaned }}
{% endif %}
{% endfor %}
{% for clone_item in local_packages['results'][0]['item']['remote_package_parts'] %}
{{ repo_build_git_dir | basename }}/{{ clone_item['name'] }}
{% for item in manifest_git_items['files'] %}
{{ item['path'] | regex_replace(repo_build_base_path ~ "/", '') }}
{% endfor %}