In a build.gradle file I have:
apply plugin: "org.unbroken-dome.helm"
helm {
repositories {
myrepo {
url 'https://internal/artifactory/repos'
credentials {
username = systemUsername
password = systemPassword
}
}
}
publishing {
repositories {
artifactory {
url = uri('https://internal/artifactory/repos')
credentials {
username = systemUsername
password = systemPassword
}
}
}
}
...
}
where systemUsername
and systemPassword
are specified in ~/.gradle/gradle.properties
But when I run my build with:
./gradlew --info --no-daemon clean build
Executing: [/home/builder/samples/.gradle/helm/client/3.7.1/linux-amd64/helm, repo, add, --username, build_acct, --password, ******, myrepo, https://internal/artifactory/repos]
Starting process 'command '/home/builder/samples/.gradle/helm/client/3.7.1/linux-amd64/helm''. Working directory: /home/builder/samples Command: /home/builder/samples/.gradle/helm/client/3.7.1/linux-amd64/helm repo add --username build_acct --password clear-text-password myrepo https://internal/artifactory/repos
the password is printed to the log in clear text but only for the second line/Starting process. If I remove the --info
flag its no longer printed but then I lose all the other information.
Is it intentional that --info
will also print password values?
And is there something I can do to always make sure password values are hidden from the build log?