This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
How to enable Git authentication through credentials passed as environment GRGIT_USER and GRGIT_PASS #250
Labels
Milestone
Using the latest release-opinion plugin
A Jenkins pipeline build sets the GRGIT_USER and GRGIT_PASS variables and invokes the release task.
./gradlew -Prelease.scope=patch -Prelease.stage=milestone -Dorg.ajoberstar.grgit.auth.force=hardcoded --debug --stacktrace release
However the authentication code takes the decision to try using system properties and fails.
Only by adding
-Dorg.ajoberstar.grgit.auth.username=$GRGIT_USER -Dorg.ajoberstar.grgit.auth.password=$GRGIT_PASS
to the gradle invocation Git authentication is working.According to http://ajoberstar.org/grgit/docs/groovydoc/org/ajoberstar/grgit/auth/AuthConfig.html environment variables should count toward hardcoded authentication?
The text was updated successfully, but these errors were encountered: