I have to build javascript app through build.yaml using Azuredevops and as per microsoft documentation https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-azure-devops I'm unable to run it as I'm struck with "An error occurred while loading the YAML build pipeline. wrong number of segments" exception
pool:
vmImage: 'ubuntu-latest'
trigger:
batch: false
branches:
include:
- '*'
paths:
exclude:
- 'Currency/*'
steps:
- bash: |
if [ -f Convertor.csproj ]
then
dotnet build Convertor.csproj --output ./bin
fi
npm install
npm run build --if-present
npm prune --production
- task: ArchiveFiles@2
displayName: "Archive files"
inputs:
rootFolderOrFile: "$(System.DefaultWorkingDirectory)"
includeRootFolder: false
archiveFile: "$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip"
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
artifactName: 'drop'
This is my build.yaml
name: 'drop'
beartifactName: 'drop'
- docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/… – Jaromanda Xinputs
intask: ArchiveFiles@2
are also correct – Jaromanda X