50c3fb9f59
The prepare-workspace-git role recently replaced the use-cached-repos role, but its behavior is slightly different. While use-cached-repos removed the 'origin' remote, prepare-workspace-git replaces it with a zuul fake origin. Release jobs used to add an 'origin' remote to enable notes fetching. Those jobs now fail because the 'origin' remote already exists. We fix this by resetting the URL for the 'origin' remote, instead of adding a new one. Change-Id: Ifa80ff02dd06a65fd60189c97438554fc4100932
24 lines
810 B
YAML
24 lines
810 B
YAML
- hosts: all
|
|
pre_tasks:
|
|
# This is tempoarary until v2 is gone and we can rework things
|
|
- name: Update origin remote to enable notes fetching
|
|
command: "git remote set-url origin https://{{ item.canonical_name }}"
|
|
args:
|
|
chdir: "{{ ansible_user_dir }}/src/{{ item.canonical_name }}"
|
|
with_items: "{{ zuul.projects.values() | list }}"
|
|
# ANSIBLE0006: git remote is not supported by ansible module
|
|
tags:
|
|
- skip_ansible_lint
|
|
roles:
|
|
- role: configure-git
|
|
git_config:
|
|
user.name: OpenStack Release Bot
|
|
user.email: infra-root@openstack.org
|
|
user.signingkey: infra-root@openstack.org
|
|
gitreview.username: release
|
|
- bindep
|
|
- copy-release-tools-scripts
|
|
- add-sshkey
|
|
- add-launchpad-credentials
|
|
- add-gpgkey
|