Our bitbucket server is configured with 2fa authentication.
I created a personal access token so i can use source tree.
Everything works fine.
But i cannot use the build status rest api to notify the bitbucket server
Culr request:
curl -H "Authorization: Bearer MyPAT" -H "Content-Type: application/json" -X POST https://MyServerAddress/rest/build-status/1.0/commits/f05a7bb4688305e84001a27de6d2c18a4e53e854 -d @buildResult.json
( i also tried with the -u option)
Response:
<html><head><title>Two Factor Authentication (2FA)</title><script>
window.WRM=window.WRM||{};window.WRM._unparsedData=window.WRM._unparsedData||{};window.WRM._unparsedErrors=window.WRM._unparsedErrors||{};
WRM._unparsedData["com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path.context-path"]="\u0022\u0022";
WRM._unparsedData["com.atlassian.bitbucket.server.bitbucket-webpack-INTERNAL:date-format-preference.data"]="\u0022RELATIVE\u0022";
Thank you