Skip to content

Commit

Permalink
Fix: Move nexus login out of common scope
Browse files Browse the repository at this point in the history
Change-Id: Iabe2f5362c63a39dc6965e746142d8041bb96caf
Signed-off-by: benzelleroehr <[email protected]>
  • Loading branch information
benzelleroehr committed Feb 17, 2025
1 parent 4d81650 commit 626d704
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 10 additions & 5 deletions jjb/lf-gradle-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@
- 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

Expand Down Expand Up @@ -170,6 +165,16 @@
id: gerrit-gradle-publish-jar
<<: *lf_gradle_common

wrappers:
- 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

builders:
- lf-infra-pre-build
- lf-update-java-alternatives:
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/fix-gradle-jobs-fd5bc66d5aed537b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Move credentials-binding for nexus login out of common scope. It is not
needed for all jobs and results in pipeline failure if no credentials are set.

0 comments on commit 626d704

Please sign in to comment.