Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bitbucket-pipelines azure deployment Kudu Services InvalidOperationException

Chandan Datta March 9, 2017

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 'https://hlk:$BITBUCKET_PASSWORD@bitbucket.org/hlk/hlk-cda-webapi.git' is invalid.]
Kudu.Services.ServiceHookHandlers.ServiceHookHandlerBase.GetDeployerFromUrl(String url) +296175
Kudu.Services.ServiceHookHandlers.GenericHandler.TryParseDeploymentInfo(HttpRequestBase request, JObject payload, String targetBranch, DeploymentInfo& deploymentInfo) +321
Kudu.Services.FetchHandler.GetRepositoryInfo(HttpRequestBase request, JObject payload, String targetBranch, DeploymentInfo& info) +87
Kudu.Services.<ProcessRequestAsync>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& completedSynchronously) +155
</pre></code>

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Chandan Datta March 9, 2017
TAGS
AUG Leaders

Atlassian Community Events