I had encountered above message while creating build from Jenkins featuring maven.
In maven i had used maven-scm-plugin plugins to checkout/update codebase. I came to know that although i had set correct username and password in plugins configuration, Jenkins User credential overwrites scm authentication provided on plugins configuration or Jenkins is not able to read credential define on maven-scm-plugins. Because if i put pom.xml file from outside .jenkins job directory and hit maven goal mvn scm:checkout or scm:update, it will succeed to do assign goal
Here below is scm plugins implementation in my pom.xml file
<!-- Plugins for source code management -->
Any suggestion there to solve this problem?
Another solution i got is run scm piror to build by defining repo url and credential on jenkins interface but my aim is to get it done from maven(pom.xml).
subject: Could not authenticate to server: rejected Basic challenge