azure-yaml-pipelines

dist folder on basic vue.js

微笑、不失礼 提交于 2021-02-10 16:21:49
问题 I created a basic vue.js with Visual studio 2019. I put it on a git in my private azure server. I have a windows build agent. yml for building, no error. trigger: - master pool: 'Default' - script: | npm install npm run build displayName: 'npm install and build' I tried somes "copy/archive files" commands. One of them - task: CopyFiles@2 displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)/VuejsApp1' inputs: TargetFolder: '$(Build.ArtifactStagingDirectory)/VuejsApp1' Every method

why is azure build pipeline not generating a dist folder for an angular build

泪湿孤枕 提交于 2021-01-25 06:39:19
问题 It seem like the folder that are getting generated during the build are getting deleted before I could ran any other task dist folder. trigger: - master pool: default steps: - task: NodeTool@0 inputs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | npm install -g @angular/cli npm install ng build --prod displayName: 'npm install and build' #i added this task and it seems like the node_modules and the dist #folder that was generated during the build are not getting copied to the

Azure DevOps multistage pipeline YAML: how to checkout multiple repos?

痴心易碎 提交于 2020-07-23 08:08:07
问题 My Azure DevOps pipeline uses yaml templates from two different repos, which is configured as following. There is an application repository which has deployable application and one yaml file - the pipeline's "root" template Templates Repository. Root template calls other templates and stages from the Templates repository. Then templates from this repository call other templates and scripts (from the same repository) Templates repository is referenced as a resource in the root template. I didn

Azure DevOps multistage pipeline YAML: how to checkout multiple repos?

自作多情 提交于 2020-07-23 08:04:57
问题 My Azure DevOps pipeline uses yaml templates from two different repos, which is configured as following. There is an application repository which has deployable application and one yaml file - the pipeline's "root" template Templates Repository. Root template calls other templates and stages from the Templates repository. Then templates from this repository call other templates and scripts (from the same repository) Templates repository is referenced as a resource in the root template. I didn

Azure pipelines Universal Package Task fails with error “The package name provided is invalid”

こ雲淡風輕ζ 提交于 2020-06-01 05:07:41
问题 Snippet from Yaml file of my pipeline where I archive the build directory, publish it to artifacts and then try to make the artifact available as a universal package in Azure Artifacts. - task: ArchiveFiles@2 inputs: rootFolderOrFile: '$(Build.SourcesDirectory)/Software/MCU/build/pkgs' archiveType: 'zip' archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip - task: PublishBuildArtifacts@1 inputs: pathtoPublish: '$(Build.ArtifactStagingDirectory)' artifactName: MCU_Build - task:

Azure pipelines Universal Package Task fails with error “The package name provided is invalid”

≡放荡痞女 提交于 2020-06-01 05:07:41
问题 Snippet from Yaml file of my pipeline where I archive the build directory, publish it to artifacts and then try to make the artifact available as a universal package in Azure Artifacts. - task: ArchiveFiles@2 inputs: rootFolderOrFile: '$(Build.SourcesDirectory)/Software/MCU/build/pkgs' archiveType: 'zip' archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip - task: PublishBuildArtifacts@1 inputs: pathtoPublish: '$(Build.ArtifactStagingDirectory)' artifactName: MCU_Build - task:

Azure pipelines Universal Package Task fails with error “The package name provided is invalid”

走远了吗. 提交于 2020-06-01 05:07:34
问题 Snippet from Yaml file of my pipeline where I archive the build directory, publish it to artifacts and then try to make the artifact available as a universal package in Azure Artifacts. - task: ArchiveFiles@2 inputs: rootFolderOrFile: '$(Build.SourcesDirectory)/Software/MCU/build/pkgs' archiveType: 'zip' archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip - task: PublishBuildArtifacts@1 inputs: pathtoPublish: '$(Build.ArtifactStagingDirectory)' artifactName: MCU_Build - task:

Pass a variable to template in an Azure YAML pipeline

本秂侑毒 提交于 2020-05-17 07:15:14
问题 Consider the following working job from an azure yaml pipeline - job: create_slot dependsOn: setup displayName: 'Create slot' pool: vmImage: 'windows-latest' variables: slotName: $[ dependencies.setup.outputs['slot.name'] ] steps: - bash: | echo "Slot to be created: $(slotName)" displayName: 'Show slot name' - template: templates/create-slot.yml parameters: slot: $(slotName) From the documentation I would expect that I can replace the marco $(slotName) directly with the runtime expression $[