Jenkins DAP integration

Hi All,

We are moving away all our credentials from jenkins to DAP, facing issues while jenkins connecting to bitbucket(getting credentials from DAP) using git plugin and in the pipeline script.

Git plugin throws below error:
Failed to connect to repository : Command “/usr/local/bin/git ls-remote -h – https://bitbucket.xxx.com/scm/bay/automation.git HEAD” returned status code 128:
stdout:
stderr: fatal: Authentication failed for ‘https://bitbucket.xxx.com/scm/bay/automation.git/

The pipeline throws below error:
code:
withCredentials([conjurSecretUsername(credentialsId:‘XXX-ID’, passwordVariable:‘conjur_secret’, usernameVariable: ‘yyyy’)])
java.lang.IllegalStateException: There is no body to invoke
at org.jenkinsci.plugins.workflow.cps.CpsStepContext.newBodyInvoker(CpsStepContext.java:282)
at org.jenkinsci.plugins.workflow.cps.CpsStepContext.newBodyInvoker(CpsStepContext.java:95)
at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Execution2.doStart(BindingStep.java:145)
at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)