title: Use new Deployment Job in Azure DevOps. Can't find artifacts
body: <p>I need to deploy an Asp.Net Core Application to Azure WebApp using Azure Devops.</p>
  
  <p>I have the following working Azure-Pipelines YAML file:</p>
  
  <pre><code>trigger:
  - master
  
  variables:
    buildConfiguration: 'Release'
    buildPlatform: 'any cpu'
    version: '0.2.0'
  
  stages:
  
  - stage: 'Stage1'
  
    jobs:
  
    # Previous Jobs like Build, Test, ...
  
    - job: 'Publish'
      pool:
        vmImage: 'Ubuntu-16.04'
      dependsOn: 'Test'
      steps:
  
      - task: DotNetCoreCLI@2
        displayName: 'Publish'
        inputs:
          command: publish
          publishWebProjects: false
          projects: '**/*.csproj'
          arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
          zipAfterPublish: true
  
      - task: PublishBuildArtifacts@1
        displayName: 'Artifact'
        inputs:
          PathtoPublish: '$(build.artifactstagingdirectory)'
  
      - task: AzureRmWebAppDeployment@4
          displayName: 'Deploy'
          inputs:
            package: '$(build.artifactstagingdirectory)/App.Api.zip'
            azureSubscription: 'MyName.Azure'
            appType: 'Web App On Windows'
            webAppName: 'myname-api'
  </code></pre>
  
  <p>This works fine but I would like to use the new <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs?view=azure-devops" rel="noreferrer">Deployment Job</a>.</p>
  
  <p>I removed the 'Deploy' task and added it as a new Deployment Job after the 'Publish' job:</p>
  
  <pre><code>  - deployment: DeployJob
      dependsOn: 'Publish'
      pool:
        vmImage: Ubuntu-16.04
      environment: production
      strategy:
        runOnce:
          deploy:
            steps:
            - task: AzureRmWebAppDeployment@4
              inputs:
                package: '$(build.artifactstagingdirectory)/App.Api.zip'
                azureSubscription: 'MyName.Azure'
                appType: 'Web App On Windows'
                webAppName: 'myname-api'
  </code></pre>
  
  <p>You can see that the 'AzureRmWebAppDeployment@4' is the same as before. </p>
  
  <p>But now I get the following error when I run the pipeline: </p>
  
  <pre><code>Download artifact to: /home/vsts/work/1/
  Could not find any pipeline artifacts in the build.  
  </code></pre>
  
  <p>What am I missing? How to fix this?  </p>