X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-gradle-jobs.yaml;h=a7ba72be237b6c42b66671a6d5cc17532176ac14;hb=refs%2Fchanges%2F35%2F72935%2F3;hp=ba15f11915578998d50f7f70ccc6ed89a34c29c1;hpb=83db02b5609d9347b216ae1e9419ec0bfcb86397;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-gradle-jobs.yaml b/jjb/lf-gradle-jobs.yaml index ba15f119..a7ba72be 100644 --- a/jjb/lf-gradle-jobs.yaml +++ b/jjb/lf-gradle-jobs.yaml @@ -16,6 +16,10 @@ git-url: "$GIT_URL/$PROJECT" github-url: https://github.com java-version: openjdk17 + publish-credential: "" + publish-directory: "" + publish-file-extension: jar + publish-url: "" stream: master submodule-recursive: true submodule-timeout: 10 @@ -55,7 +59,11 @@ - lf-infra-wrappers: build-timeout: "{build-timeout}" jenkins-ssh-credential: "{jenkins-ssh-credential}" - + - credentials-binding: + - username-password-separated: + credential-id: "{publish-credential}" + username: NEXUS_USERNAME + password: NEXUS_PASSWORD publishers: - lf-infra-publish @@ -175,8 +183,13 @@ executable: true tasks: | shadowJar - publish - + - inject: + properties-content: | + NEXUS_URL={publish-url} + DIRECTORY={publish-directory} + FILE_EXTENSION={publish-file-extension} + - shell: !include-raw-escape: + - ../shell/nexus-upload.sh scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: "{jenkins-ssh-credential}"