Switch the java library upload job to the proposed schema

Change-Id: I326b0cd1ba11bd373f5e5fa2b2311e1b44450e12
This commit is contained in:
Radosław Piliszek 2023-10-19 13:41:24 +02:00
parent 14250a403a
commit 9b805c67f5

View File

@ -16,13 +16,14 @@
username: "{{ nebulous_nexus_repository_credentials.username }}"
password: "{{ nebulous_nexus_repository_credentials.password }}"
# TODO: support more libraries from one repo
- name: Deploy the artifact to OSSRH
shell: |
mvn deploy -DskipTests
args:
chdir: "{{ project_path }}" # Pointing to the directory with pom.xml
chdir: "{{ library_path }}" # Pointing to the directory with pom.xml
vars:
project_path: "{{ zuul.project.src_dir }}/{{ java_library_path }}"
library_path: "{{ zuul.project.src_dir }}/{{ java_libraries[0].context }}"
environment:
MAVEN_HOME: "/opt/apache-maven-3.8.8"
PATH: "{{ ansible_env.PATH }}:/opt/apache-maven-3.8.8/bin"