Hi,
if you use nexusUser and nexusPassword in build.gradle like that, you can
(ab)use environment variables to inject the credentials from Jenkins to Gradle
as project properties (which you can access the same way as gradle properties).
https://docs.gradle.org/current/userguide
redentials-binding/
mats...@gmail.com schrieb am Freitag, 20. Januar 2023 um 21:37:38 UTC+1:
> Hi,
>
> Here is my build.gradle:
>
> repositories {
> mavenLocal()
> mavenCentral()
> // nexus credentials (nexusUser and nexusPassword) are stored in
> ~/.gradle/gradle.prope
Hi,
Here is my build.gradle:
repositories {
mavenLocal()
mavenCentral()
// nexus credentials (nexusUser and nexusPassword) are stored in
~/.gradle/gradle.properties
maven {
url "${nexusRepoUrl}/repository/maven-public/"
credentials {
username = nexusUser
password = nexusPassword
}
}
}