Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update downstream repo references with gitlab migration #2719

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions roles/build_openstack_packages/tasks/run_dlrn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,16 @@
block:
- name: Clone the downstream project
ansible.builtin.git:
repo: '{{ _change.host }}/gerrit/{{ _change.project }}'
repo: '{{ _change.host }}/{{ _change.project }}'
dest: '{{ cifmw_bop_build_repo_dir }}/DLRN/data/{{ project_name_mapped.stdout }}-tested'
refspec: "{{ _change.refspec }}"
version: 'FETCH_HEAD'
refspec: "+refs/merge-requests/*:refs/remotes/origin/mr/*"
version: 'origin/mr/{{ _change.change }}/head'

- name: Remove default checkout branch # noqa: command-instead-of-module
ansible.builtin.command:
cmd: "git branch -D {{ cifmw_bop_osp_release }}-trunk-patches"
args:
chdir: "{{ cifmw_bop_build_repo_dir }}/DLRN/data/{{ project_name_mapped.stdout }}-tested"

- name: Update the branch name for local DLRN clone # noqa: command-instead-of-module
ansible.builtin.command:
Expand All @@ -163,7 +169,7 @@

- name: Update the project reference in packages.yml # noqa: command-instead-of-module
vars:
_old_content: 'osp-patches: ssh://{{ _change.host | split("//") | last }}:22/{{ _change.project }}'
_old_content: 'osp-patches: git@{{ _change.host | split("//") | last }}:{{ _change.project }}.git'
_new_content: 'osp-patches: file://{{ cifmw_bop_build_repo_dir }}/DLRN/data/{{ project_name_mapped.stdout }}-tested'
ansible.builtin.command:
cmd: >-
Expand Down
3 changes: 2 additions & 1 deletion roles/kustomize_deploy/tasks/install_operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@
when: not cifmw_kustomize_deploy_generate_crs_only
kubernetes.core.k8s_info:
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
kind: Openstack
api_version: "operator.openstack.org/v1beta1"
kind: OpenStack
namespace: openstack-operators
name: openstack
wait: true
Expand Down
Loading