Hi
I am using the plugin using VScode to deploy to azure, but get these exceptions on my bitbucket-pipelines console. I can't see any error in the structure of the URL(sample URL posted here). Is there a fix for this?
Bitbucket yml:
pipelines: default: - step: script: # Modify the commands below to build and test your repository. - chmod +x ./deploy-to-azure.bash - ./deploy-to-azure.bash
deploy-to-azure.bash:
# Trigger a manual (fetch) Kudu deployemnt: curl -X POST "https://\$$SITE_NAME:$FTP_PASSWORD@$SITE_NAME.scm.azurewebsites.net/deploy" \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "X-SITE-DEPLOYMENT-ID: $SITE_NAME" \ --header "Transfer-encoding: chunked" \ --data "{\"format\":\"basic\", \"url\":\"https://$BITBUCKET_USERNAME:$BITBUCKET_PASSWORD@bitbucket.org/$BITBUCKET_USERNAME/$REPOSITORY_NAME.git\"}" echo Finished uploading files to site $SITE_NAME.
Exceptions:
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Repository url 'https://hlk:$BITBUCKET_PASSWORD@bitbucket.org/hlk/hlk-cda-webapi.git' is invalid.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br><br> <b> Exception Details: </b>System.InvalidOperationException: Repository url 'https://hlk:$BITBUCKET_PASSWORD@bitbucket.org/hlk/hlk-cda-webapi.git' is invalid.<br><br> <b>Source Error:</b> <br><br>
[InvalidOperationException: Repository url &#39;https://hlk:$BITBUCKET_PASSWORD@bitbucket.org/hlk/hlk-cda-webapi.git&#39; is invalid.] Kudu.Services.ServiceHookHandlers.ServiceHookHandlerBase.GetDeployerFromUrl(String url) +296175 Kudu.Services.ServiceHookHandlers.GenericHandler.TryParseDeploymentInfo(HttpRequestBase request, JObject payload, String targetBranch, DeploymentInfo&amp; deploymentInfo) +321 Kudu.Services.FetchHandler.GetRepositoryInfo(HttpRequestBase request, JObject payload, String targetBranch, DeploymentInfo&amp; info) +87 Kudu.Services.&lt;ProcessRequestAsync&gt;d__11.MoveNext() +743 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58 System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +71 System.Web.HttpTaskAsyncHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +11 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9765121 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155 </pre></code>
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.