Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Build branchless projects with build-tests role"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Nov 22, 2021
2 parents 9362dc6 + 3877173 commit e893b25
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
7 changes: 7 additions & 0 deletions roles/build-test-packages/defaults/main.yml
Expand Up @@ -89,3 +89,10 @@ artg_github_projects:
- ansible-collections/community.general
- ansible-collections/ansible.posix
- ansible-collections/ansible.netcommon

artg_branchless_projects:
- openstack/octavia-tempest-plugin
- openstack/tempest
- openstack/validations-common
- openstack/validations-libs
- x/tripleo-ipa
16 changes: 12 additions & 4 deletions roles/build-test-packages/tasks/dlrn-build.yml
Expand Up @@ -7,10 +7,18 @@
debug:
var: artg_release

- name: Set DLRN distro (legacy distgit branch naming)
set_fact:
artg_distro: "rpm-{{ artg_release }}"
when: artg_release in ['master', 'mitaka']
- when: artg_release in ['master', 'mitaka']
block:
- name: Set DLRN distro (legacy distgit branch naming)
set_fact:
artg_distro: "rpm-{{ artg_release }}"

- name: Set DLRN distro for branchless projects
set_fact:
artg_distro: "{{ release }}-rdo"
when:
- release is defined and release not in ['master', 'mitaka']
- artg_change.project in artg_branchless_projects

- name: Set DLRN distro (new stable branch naming scheme)
set_fact:
Expand Down
11 changes: 9 additions & 2 deletions roles/build-test-packages/tasks/main.yml
Expand Up @@ -197,7 +197,10 @@
- zuul is defined
- "'change_url' in item"
- item.project.name not in artg_change_list|default([]) | map(attribute='project') |list
- (item.branch == zuul.override_checkout | default(zuul.branch)) or (osp_release is defined and osp_release in item.branch)
- >-
(item.branch == zuul.override_checkout | default(zuul.branch)) or
(osp_release is defined and osp_release in item.branch) or
item.project.name in artg_branchless_projects
- name: Detect github PRs from commit message
include: detect_github_pr.yml
Expand All @@ -222,7 +225,11 @@
when:
- '"-distgit" not in item.project'
- item.project not in artg_skipped_projects
- release in item.branch or (zuul.project.name | default("") == rdoinfo_repo_name) or (osp_release is defined and osp_release in item.branch)
- >-
release in item.branch or
(zuul.project.name | default("") == rdoinfo_repo_name) or
(osp_release is defined and osp_release in item.branch) or
item.project in artg_branchless_projects
- '"github.com" not in item.host'

- name: Build package using DLRN
Expand Down

0 comments on commit e893b25

Please sign in to comment.