Deploying a WebAPI project with several webjobs in Azure Devops Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Running Visual Studio Build in VSTS with deployment package configuration results in multiple errorsTeam Services build windows service to the deploy folderTeam Services Build ArtifactsVisual Studio Team Services build is unable to find a libraryHow to customize “ASP.NET CORE (Full framework)” build definition template for a solution with multiple web apps and deploy each on AzureTFS 2017 Build Definition: Packaging Web API Project for deploymentAzure DevOps, YAML release pipelines?Start ARM template deploy conditionally in Azure DevopsAzure DevOps release error - remotedebuggingversion, bad requestwhy do I need to deploy views and controllers separately to azure web app

Is openssl rand command cryptographically secure?

Does silver oxide react with hydrogen sulfide?

what is the log of the PDF for a Normal Distribution?

i2c bus hangs in master RPi access to MSP430G uC ~1 in 1000 accesses

Mounting TV on a weird wall that has some material between the drywall and stud

One-one communication

Why weren't discrete x86 CPUs ever used in game hardware?

Co-worker has annoying ringtone

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?

How to write capital alpha?

Is it dangerous to install hacking tools on my private linux machine?

Can two people see the same photon?

Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?

Tips to organize LaTeX presentations for a semester

Sally's older brother

What does 丫 mean? 丫是什么意思?

What are the main differences between the original Stargate SG-1 and the Final Cut edition?

GDP with Intermediate Production

Why not use the yoke to control yaw, as well as pitch and roll?

Asymptotics question

What does the writing on Poe's helmet say?

How much damage would a cupful of neutron star matter do to the Earth?

How were pictures turned from film to a big picture in a picture frame before digital scanning?



Deploying a WebAPI project with several webjobs in Azure Devops



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Running Visual Studio Build in VSTS with deployment package configuration results in multiple errorsTeam Services build windows service to the deploy folderTeam Services Build ArtifactsVisual Studio Team Services build is unable to find a libraryHow to customize “ASP.NET CORE (Full framework)” build definition template for a solution with multiple web apps and deploy each on AzureTFS 2017 Build Definition: Packaging Web API Project for deploymentAzure DevOps, YAML release pipelines?Start ARM template deploy conditionally in Azure DevopsAzure DevOps release error - remotedebuggingversion, bad requestwhy do I need to deploy views and controllers separately to azure web app



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am trying to use Azure Devops to do CI/CD. I have created the appropriate Git triggers to build when I push and I create a new release whenever I have produced a new build.



In the release tab I am trying to deploy a WebAPI project with several webjobs using the "Deploy Azure App Service" template. All the logs seem to indicate everything goes fine, but in the end I have nothing when I check the app service in Azure!



I have tried many different configurations and even a few more templates. They all seem fine according to the logs, but nothing is actually ever deployed!



If I try to build/deploy from VS2017 it works beautifully!



QUESTION



  • what do I need to do in order to successfully deploy my code via Azure Devops

.



My build YAML file is fairly close to the default, only added the CopyFiles@2 due to another SO post suggesting it:



trigger:
tags:
include:
- slot*
branches:
include:
- dev

pool:
vmImage: 'VS2017-Win2016'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

name: $(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)

steps:
- task: NuGetToolInstaller@0

- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'

- task: PublishBuildArtifacts@1
condition: succeeded() #and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'


Second step I create a release from the artifacts produced via the YAML file.



Azure deployment pipeline



Azure deployment pipeline










share|improve this question




























    0















    I am trying to use Azure Devops to do CI/CD. I have created the appropriate Git triggers to build when I push and I create a new release whenever I have produced a new build.



    In the release tab I am trying to deploy a WebAPI project with several webjobs using the "Deploy Azure App Service" template. All the logs seem to indicate everything goes fine, but in the end I have nothing when I check the app service in Azure!



    I have tried many different configurations and even a few more templates. They all seem fine according to the logs, but nothing is actually ever deployed!



    If I try to build/deploy from VS2017 it works beautifully!



    QUESTION



    • what do I need to do in order to successfully deploy my code via Azure Devops

    .



    My build YAML file is fairly close to the default, only added the CopyFiles@2 due to another SO post suggesting it:



    trigger:
    tags:
    include:
    - slot*
    branches:
    include:
    - dev

    pool:
    vmImage: 'VS2017-Win2016'

    variables:
    solution: '**/*.sln'
    buildPlatform: 'Any CPU'
    buildConfiguration: 'Release'

    name: $(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)

    steps:
    - task: NuGetToolInstaller@0

    - task: NuGetCommand@2
    inputs:
    restoreSolution: '$(solution)'

    - task: VSBuild@1
    inputs:
    solution: '$(solution)'
    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

    - task: CopyFiles@2
    inputs:
    targetFolder: '$(Build.ArtifactStagingDirectory)'

    - task: PublishBuildArtifacts@1
    condition: succeeded() #and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

    - task: VSTest@2
    inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'


    Second step I create a release from the artifacts produced via the YAML file.



    Azure deployment pipeline



    Azure deployment pipeline










    share|improve this question
























      0












      0








      0








      I am trying to use Azure Devops to do CI/CD. I have created the appropriate Git triggers to build when I push and I create a new release whenever I have produced a new build.



      In the release tab I am trying to deploy a WebAPI project with several webjobs using the "Deploy Azure App Service" template. All the logs seem to indicate everything goes fine, but in the end I have nothing when I check the app service in Azure!



      I have tried many different configurations and even a few more templates. They all seem fine according to the logs, but nothing is actually ever deployed!



      If I try to build/deploy from VS2017 it works beautifully!



      QUESTION



      • what do I need to do in order to successfully deploy my code via Azure Devops

      .



      My build YAML file is fairly close to the default, only added the CopyFiles@2 due to another SO post suggesting it:



      trigger:
      tags:
      include:
      - slot*
      branches:
      include:
      - dev

      pool:
      vmImage: 'VS2017-Win2016'

      variables:
      solution: '**/*.sln'
      buildPlatform: 'Any CPU'
      buildConfiguration: 'Release'

      name: $(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)

      steps:
      - task: NuGetToolInstaller@0

      - task: NuGetCommand@2
      inputs:
      restoreSolution: '$(solution)'

      - task: VSBuild@1
      inputs:
      solution: '$(solution)'
      msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
      platform: '$(buildPlatform)'
      configuration: '$(buildConfiguration)'

      - task: CopyFiles@2
      inputs:
      targetFolder: '$(Build.ArtifactStagingDirectory)'

      - task: PublishBuildArtifacts@1
      condition: succeeded() #and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

      - task: VSTest@2
      inputs:
      platform: '$(buildPlatform)'
      configuration: '$(buildConfiguration)'


      Second step I create a release from the artifacts produced via the YAML file.



      Azure deployment pipeline



      Azure deployment pipeline










      share|improve this question














      I am trying to use Azure Devops to do CI/CD. I have created the appropriate Git triggers to build when I push and I create a new release whenever I have produced a new build.



      In the release tab I am trying to deploy a WebAPI project with several webjobs using the "Deploy Azure App Service" template. All the logs seem to indicate everything goes fine, but in the end I have nothing when I check the app service in Azure!



      I have tried many different configurations and even a few more templates. They all seem fine according to the logs, but nothing is actually ever deployed!



      If I try to build/deploy from VS2017 it works beautifully!



      QUESTION



      • what do I need to do in order to successfully deploy my code via Azure Devops

      .



      My build YAML file is fairly close to the default, only added the CopyFiles@2 due to another SO post suggesting it:



      trigger:
      tags:
      include:
      - slot*
      branches:
      include:
      - dev

      pool:
      vmImage: 'VS2017-Win2016'

      variables:
      solution: '**/*.sln'
      buildPlatform: 'Any CPU'
      buildConfiguration: 'Release'

      name: $(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)

      steps:
      - task: NuGetToolInstaller@0

      - task: NuGetCommand@2
      inputs:
      restoreSolution: '$(solution)'

      - task: VSBuild@1
      inputs:
      solution: '$(solution)'
      msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
      platform: '$(buildPlatform)'
      configuration: '$(buildConfiguration)'

      - task: CopyFiles@2
      inputs:
      targetFolder: '$(Build.ArtifactStagingDirectory)'

      - task: PublishBuildArtifacts@1
      condition: succeeded() #and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

      - task: VSTest@2
      inputs:
      platform: '$(buildPlatform)'
      configuration: '$(buildConfiguration)'


      Second step I create a release from the artifacts produced via the YAML file.



      Azure deployment pipeline



      Azure deployment pipeline







      azure asp.net-web-api deployment azure-devops continuous-deployment






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 11:48









      JeppeJeppe

      187219




      187219






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Please add the following line in your package or folder option



          $(System.DefaultWorkingDirectory)*.*


          It will make sure to pick all the files while deploying.



          Also please refer to these ways to deploy webjob to azure:



          1. Modify Visual Studio Build task to deploy webjob with FileSystem (MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\WebJob" /p:DeployDefaultTarget=WebPublish)


          2. Add Delete Files task to release definition to delete bin folder (Source Folder:
            $(System.DefaultWorkingDirectory)/WebJobVnext/drop/WebJob); Contents:bin)



          3. Modify Azure App Service Deploy task (



            1. Uncheck Publish using Web Deploy option.

            2. Package or folder: $(System.DefaultWorkingDirectory)/[artifact name]
              /drop/WebJob)


          Hope it helps.






          share|improve this answer























          • Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

            – Jeppe
            Mar 26 at 2:58











          • to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

            – Mohit Verma - MSFT
            Mar 26 at 3:01











          • Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

            – Jeppe
            Mar 26 at 3:27











          • Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

            – Mohit Verma - MSFT
            Mar 26 at 3:29











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298951%2fdeploying-a-webapi-project-with-several-webjobs-in-azure-devops%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Please add the following line in your package or folder option



          $(System.DefaultWorkingDirectory)*.*


          It will make sure to pick all the files while deploying.



          Also please refer to these ways to deploy webjob to azure:



          1. Modify Visual Studio Build task to deploy webjob with FileSystem (MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\WebJob" /p:DeployDefaultTarget=WebPublish)


          2. Add Delete Files task to release definition to delete bin folder (Source Folder:
            $(System.DefaultWorkingDirectory)/WebJobVnext/drop/WebJob); Contents:bin)



          3. Modify Azure App Service Deploy task (



            1. Uncheck Publish using Web Deploy option.

            2. Package or folder: $(System.DefaultWorkingDirectory)/[artifact name]
              /drop/WebJob)


          Hope it helps.






          share|improve this answer























          • Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

            – Jeppe
            Mar 26 at 2:58











          • to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

            – Mohit Verma - MSFT
            Mar 26 at 3:01











          • Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

            – Jeppe
            Mar 26 at 3:27











          • Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

            – Mohit Verma - MSFT
            Mar 26 at 3:29















          0














          Please add the following line in your package or folder option



          $(System.DefaultWorkingDirectory)*.*


          It will make sure to pick all the files while deploying.



          Also please refer to these ways to deploy webjob to azure:



          1. Modify Visual Studio Build task to deploy webjob with FileSystem (MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\WebJob" /p:DeployDefaultTarget=WebPublish)


          2. Add Delete Files task to release definition to delete bin folder (Source Folder:
            $(System.DefaultWorkingDirectory)/WebJobVnext/drop/WebJob); Contents:bin)



          3. Modify Azure App Service Deploy task (



            1. Uncheck Publish using Web Deploy option.

            2. Package or folder: $(System.DefaultWorkingDirectory)/[artifact name]
              /drop/WebJob)


          Hope it helps.






          share|improve this answer























          • Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

            – Jeppe
            Mar 26 at 2:58











          • to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

            – Mohit Verma - MSFT
            Mar 26 at 3:01











          • Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

            – Jeppe
            Mar 26 at 3:27











          • Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

            – Mohit Verma - MSFT
            Mar 26 at 3:29













          0












          0








          0







          Please add the following line in your package or folder option



          $(System.DefaultWorkingDirectory)*.*


          It will make sure to pick all the files while deploying.



          Also please refer to these ways to deploy webjob to azure:



          1. Modify Visual Studio Build task to deploy webjob with FileSystem (MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\WebJob" /p:DeployDefaultTarget=WebPublish)


          2. Add Delete Files task to release definition to delete bin folder (Source Folder:
            $(System.DefaultWorkingDirectory)/WebJobVnext/drop/WebJob); Contents:bin)



          3. Modify Azure App Service Deploy task (



            1. Uncheck Publish using Web Deploy option.

            2. Package or folder: $(System.DefaultWorkingDirectory)/[artifact name]
              /drop/WebJob)


          Hope it helps.






          share|improve this answer













          Please add the following line in your package or folder option



          $(System.DefaultWorkingDirectory)*.*


          It will make sure to pick all the files while deploying.



          Also please refer to these ways to deploy webjob to azure:



          1. Modify Visual Studio Build task to deploy webjob with FileSystem (MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:publishUrl="$(build.artifactstagingdirectory)\WebJob" /p:DeployDefaultTarget=WebPublish)


          2. Add Delete Files task to release definition to delete bin folder (Source Folder:
            $(System.DefaultWorkingDirectory)/WebJobVnext/drop/WebJob); Contents:bin)



          3. Modify Azure App Service Deploy task (



            1. Uncheck Publish using Web Deploy option.

            2. Package or folder: $(System.DefaultWorkingDirectory)/[artifact name]
              /drop/WebJob)


          Hope it helps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 25 at 8:30









          Mohit Verma - MSFTMohit Verma - MSFT

          1,5631617




          1,5631617












          • Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

            – Jeppe
            Mar 26 at 2:58











          • to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

            – Mohit Verma - MSFT
            Mar 26 at 3:01











          • Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

            – Jeppe
            Mar 26 at 3:27











          • Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

            – Mohit Verma - MSFT
            Mar 26 at 3:29

















          • Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

            – Jeppe
            Mar 26 at 2:58











          • to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

            – Mohit Verma - MSFT
            Mar 26 at 3:01











          • Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

            – Jeppe
            Mar 26 at 3:27











          • Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

            – Mohit Verma - MSFT
            Mar 26 at 3:29
















          Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

          – Jeppe
          Mar 26 at 2:58





          Thank you so much, no idea how I would have gotten to what you are suggesting by myself! I am confused about your first suggestion of setting "package or folder" option and your 3.2 point. Should both paths be set? or just one of them?

          – Jeppe
          Mar 26 at 2:58













          to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

          – Mohit Verma - MSFT
          Mar 26 at 3:01





          to be specific folder , you can use $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob and fopr all the folder under default working director you can use $(System.DefaultWorkingDirectory)*.* . You can use it as per your need. Hope it helps.

          – Mohit Verma - MSFT
          Mar 26 at 3:01













          Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

          – Jeppe
          Mar 26 at 3:27





          Thanks for the quick reply! I unfortunately do not understand how I can do this. I have found one place to set the directory, how would I set $(System.DefaultWorkingDirectory)/[artifact name] /drop/WebJob for Package and Folder and also use $(System.DefaultWorkingDirectory)*.* for all folders under default working directory?

          – Jeppe
          Mar 26 at 3:27













          Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

          – Mohit Verma - MSFT
          Mar 26 at 3:29





          Use only one, whichever suits your need. Most appropriate would be till your $(System.DefaultWorkingDirectory)/[artifact name] /drop folder as it would contain all your artifacts.

          – Mohit Verma - MSFT
          Mar 26 at 3:29



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298951%2fdeploying-a-webapi-project-with-several-webjobs-in-azure-devops%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript