shake-build: add shake_target variable
This change enable user to specify custom shake target. Change-Id: I1feb24cd2c66e58da130079e85de844dfd5c6792
This commit is contained in:
parent
fcf84346ef
commit
5854500179
@ -7,6 +7,10 @@ Run the shake build system command.
|
|||||||
|
|
||||||
The name of the report.
|
The name of the report.
|
||||||
|
|
||||||
|
.. zuul:rolevar:: shake_target
|
||||||
|
|
||||||
|
The name of the target to build.
|
||||||
|
|
||||||
.. zuul:rolevar:: zuul_work_dir
|
.. zuul:rolevar:: zuul_work_dir
|
||||||
:default: {{ zuul.project.src_dir }}
|
:default: {{ zuul.project.src_dir }}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
shake_report_name: "shake.html"
|
shake_report_name: "shake.html"
|
||||||
|
shake_target: ""
|
||||||
|
|
||||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: Run shake
|
- name: Run shake
|
||||||
command: "shake --report={{ report_location }}"
|
command: "shake --report={{ report_location }} {{ shake_target }}"
|
||||||
vars:
|
vars:
|
||||||
report_location: "{{ ansible_user_dir }}/zuul-output/logs/{{ shake_report_name }}"
|
report_location: "{{ ansible_user_dir }}/zuul-output/logs/{{ shake_report_name }}"
|
||||||
args:
|
args:
|
||||||
|
@ -124,5 +124,10 @@
|
|||||||
Run the shake build system command.
|
Run the shake build system command.
|
||||||
|
|
||||||
This job produces a shake.html report.
|
This job produces a shake.html report.
|
||||||
|
|
||||||
|
.. zuul:jobvar:: shake_target
|
||||||
|
|
||||||
|
The name of the target to build.
|
||||||
|
|
||||||
pre-run: playbooks/shake/pre.yaml
|
pre-run: playbooks/shake/pre.yaml
|
||||||
run: playbooks/shake/run.yaml
|
run: playbooks/shake/run.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user