zuul-jobs/roles/maven/tasks/main.yml
Radosław Piliszek 62341c39f4 [CI] Refactor the maven role
To make it more flexible.

Also cross-test with library-template (build) since it is now
possible to do so.

Change-Id: I137013dc6bba01ef9a20f3f86cb4e4ced014421e
2023-11-17 19:16:52 +01:00

10 lines
293 B
YAML

- name: Run Maven
command:
argv: "{{ ['mvn'] + maven_phases }}"
chdir: "{{ zuul_work_dir }}/{{ maven_pom_dir }}"
vars:
maven_home: "/opt/apache-maven-{{ maven_version }}"
environment:
MAVEN_HOME: "{{ maven_home }}"
PATH: "{{ maven_home }}/bin:{{ ansible_env.PATH }}"