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.

Depends-On: I15f993a3f80283f772bbb8ad75311f5117ff7ac0
Change-Id: I20ad8d21d4a68f8daa30c730a08a134b0cc9c0d3
This commit is contained in:
Jesse Pretorius 2018-01-24 13:51:08 +00:00 committed by Markos Chandras (hwoarang)
parent ea4a5441fe
commit 421e9055c4
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:
file_type: any
paths:
@ -23,6 +23,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 %}