Add zuul gate variable
This PS adds zuul gate variable args.chdir to the jobs where it has been missed. This variable helps to control relative path to the source code folder in cases when playbooks have been inherited. Change-Id: Iea56ea4d00b9449c129afb34f4f91952fcc015c4
This commit is contained in:
parent
04a8cb59b5
commit
8c69a118df
@ -63,7 +63,7 @@
|
|||||||
when: not publish
|
when: not publish
|
||||||
block:
|
block:
|
||||||
- make:
|
- make:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
|
||||||
target: "build"
|
target: "build"
|
||||||
params:
|
params:
|
||||||
DISTRO_SUFFIX: "{{ distro_suffix }}"
|
DISTRO_SUFFIX: "{{ distro_suffix }}"
|
||||||
@ -90,7 +90,7 @@
|
|||||||
password: "{{ quay_credentials.password }}"
|
password: "{{ quay_credentials.password }}"
|
||||||
registry_url: "https://quay.io/api/v1/"
|
registry_url: "https://quay.io/api/v1/"
|
||||||
- make:
|
- make:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
|
||||||
target: "build"
|
target: "build"
|
||||||
params:
|
params:
|
||||||
COMMIT: "{{ zuul.newrev | default('') }}"
|
COMMIT: "{{ zuul.newrev | default('') }}"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
- name: Execute the make target for unit testing
|
- name: Execute the make target for unit testing
|
||||||
block:
|
block:
|
||||||
- make:
|
- make:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
|
||||||
target: unit_tests
|
target: unit_tests
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.failed
|
failed_when: result.failed
|
||||||
@ -26,7 +26,7 @@
|
|||||||
- name: Execute the make target for features testing
|
- name: Execute the make target for features testing
|
||||||
block:
|
block:
|
||||||
- make:
|
- make:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
|
||||||
target: feature_tests
|
target: feature_tests
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.failed
|
failed_when: result.failed
|
||||||
|
@ -15,6 +15,6 @@
|
|||||||
- name: Execute a Whitespace Linter check
|
- name: Execute a Whitespace Linter check
|
||||||
command: git grep -E -l " +$"
|
command: git grep -E -l " +$"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}/{{ args.chdir }}"
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.stdout != ""
|
failed_when: result.stdout != ""
|
||||||
|
@ -148,7 +148,8 @@
|
|||||||
commit: false
|
commit: false
|
||||||
static:
|
static:
|
||||||
- latest
|
- latest
|
||||||
|
args:
|
||||||
|
chdir: ../porthole
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-porthole-linter
|
name: airship-porthole-linter
|
||||||
@ -157,6 +158,9 @@
|
|||||||
run: tools/gate/playbooks/zuul-linter.yaml
|
run: tools/gate/playbooks/zuul-linter.yaml
|
||||||
timeout: 300
|
timeout: 300
|
||||||
nodeset: airship-porthole-focal-single-node
|
nodeset: airship-porthole-focal-single-node
|
||||||
|
vars:
|
||||||
|
args:
|
||||||
|
chdir: ../porthole
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-porthole-deploy-functional-tests-ubuntu_focal
|
name: airship-porthole-deploy-functional-tests-ubuntu_focal
|
||||||
|
Loading…
Reference in New Issue
Block a user