Deploy Azure WebJob using VSTS

I'm having trouble deploying Azure WebJob using Visual Studio Team Services (VSTS).

WebJob seems to be deployed successfully, but it crashes an Azure site hosted in the same application service! I don't have this problem if I deploy using VS2013.

This is my build task that generates the WebJob deployment package:

Build Objective - Create an Azure WebJob Deployment Package

And this is my deployment task:

Expand WebJob Task

Azure WebJob . Azure, , WebJob , . WebJob wwwroot\App_Data\jobs\triggered\RemoveExpiredDids, , , wwwroot\App_Data\bin, -, !

, . , 2 (app_data bin) (settings.job):

WebJob Deployment Package

, wwwroot\App_Data\bin App. , VS2013!!! MSBuild :

dirPath ([ ]\bin) - "SkipBinFolderOnDeploy".

, bin Azure WebJob VSTS, VS2013.

, : bin VSTS? - / MSBuild ?

+4
3

webjob azure:

  • Visual Studio Build webjob FileSystem (MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\\WebJob" /p:DeployDefaultTarget=WebPublish)
  • , bin ( : $(System.DefaultWorkingDirectory)/WebJobVnext/drop/WebJob); : bin)
  • Azure App (1. -. 2. : $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob)
+1

.

, , -, -skip: Directory = ( -skip: Directory = '\\ bin') azure ( ). , bin ().

, .

+2

- , @starain-MSFT , . . , :

Create Azure WebJob Deployment Package

MSBuild:

/p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:DeployDefaultTarget=WebPublish /p:Configuration=$(BuildConfiguration) /p:OutputPath=.\bin\ /p:publishUrl="$(build.artifactstagingdirectory)\\temp\\WebJob"

@starain-MSFT , /p:OutputPath=, :

The OutputPath property is not set for project

bin ( ).

:

Deploy Azure WebJob with VSTS

, $(DeploymentPackagePath) - zip , , . , zip , , .

0

Source: https://habr.com/ru/post/1683731/


All Articles