Fixed clone not asking http credentials

This commit is contained in:
Abdelilah El Aissaoui 2021-12-02 22:45:26 +01:00
parent 2b479d1d3f
commit 8a7e8c470e

View file

@ -85,22 +85,7 @@ class RemoteOperationsManager @Inject constructor(
if (it is SshTransport) {
it.sshSessionFactory = sessionManager.generateSshSessionFactory()
} else if (it is HttpTransport) {
it.credentialsProvider = object : CredentialsProvider() {
override fun isInteractive(): Boolean {
return true
}
override fun supports(vararg items: CredentialItem?): Boolean {
println(items)
return true
}
override fun get(uri: URIish?, vararg items: CredentialItem?): Boolean {
return true
}
}
it.credentialsProvider = HttpCredentialsProvider()
}
}
.call()