0
votes

When releasing an new update for my web app service with azure devops the code is not showing in the wwwroot directory but its placed in a subfolder /s/

Problem: https://i.ibb.co/MVjXG73/pasted-Image.png

My settings: https://i.ibb.co/YhQd7bG/devops.png

In application settings i added: SCM_TARGET_PATH = D:\home\site\wwwroot

I created a yml file with the following build:

trigger:
  - master

pool:
  vmImage: "Ubuntu-16.04"

steps:
  - task: NodeTool@0
    inputs:
    versionSpec: "8.x"
    displayName: "Install Node.js"

- script: |
    npm install

   displayName: "npm install"

- task: ArchiveFiles@2
  inputs:
    rootFolderOrFile: "$(System.DefaultWorkingDirectory)"
    archiveType: "zip"
    archiveFile: "$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip"
    replaceExistingArchive: true

- task: PublishBuildArtifacts@1
  inputs:
    pathToPublish: "$(Build.ArtifactStagingDirectory)"
    artifactName: "drop"

I need the code to end up in the wwwroot directory to be published live.

Thanks in advance!

1
could you check virtual application and directories is pointing like thisJayendran
Yeah I got that, thanks for trying :)EdwinN1337
Is your issue solved ?Jayendran
Nop it is not :(EdwinN1337

1 Answers

0
votes

Try adding below line to ArchiveFiles@2 task

includeRootFolder: false