azure-pipelines

How to send post build message in azure DevOps YAML pipeline?

痞子三分冷 提交于 2020-05-28 06:41:50
问题 I'm trying to send a post-build Slack message after the job is done/failed in a Azure DevOps YAML pipeline. But it seems I can't find a proper condition setting. Basically, I have three stages: test, build, and notification. I tried the following at last, but dependencies.UnitTest.result returns null , so not giving me Succeeded or Failed . I also tried a bunch of different conditions but they didn't work. For example, a plain succeeded() and failed() without dependencies, or succeeded('Test'

VSTS build fails with MSB4184 The path is not of a legal form

≡放荡痞女 提交于 2020-05-24 07:14:30
问题 I'm attempting to use the build system in VSTS to build and deploy a c# .net web app. I've created a new single-project solution (as there doesn't seem to be any way to specify which project to build/deploy in a multi project solution!?!) and set up my build definition to point to this new solution. I've set it up to use the VS2017 build agent. The NuGet restore completes and it begins to build but fails with the error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild

VSTS build fails with MSB4184 The path is not of a legal form

我是研究僧i 提交于 2020-05-24 07:14:11
问题 I'm attempting to use the build system in VSTS to build and deploy a c# .net web app. I've created a new single-project solution (as there doesn't seem to be any way to specify which project to build/deploy in a multi project solution!?!) and set up my build definition to point to this new solution. I've set it up to use the VS2017 build agent. The NuGet restore completes and it begins to build but fails with the error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild

Azure DevOps Project pipeline not able to access NuGet package from Artifact Feed in different Project

旧街凉风 提交于 2020-05-23 07:19:05
问题 Updated 20-Feb-2020 Summary Azure DevOps pipeline build not able to find NuGet package from our private feed under Artifacts. Our Azure DevOps environment In Azure, we have our company "space": dev.azure.com/OurCompany Under that, we have multiple Projects, so for example, imagine these three: Green: this holds applications of a certain type Blue: this holds applications of a different type Red: this holds our "common" helper code RED RED holds all our common helper code are DLLs consumed by

KeyVault --> Azure Pipeline --> XML variable substitution adds extra single quote to the end which breaks the connection string

落爺英雄遲暮 提交于 2020-05-17 07:46:13
问题 I asked previously how to do variable substitution with Azure KeyVault here, and was able to get it mostly working save one last issue. For some unknown reason, the substitution occurs perfectly but it adds one extra single quote at the end. Since these are connection strings in the web.config, that extra single quote breaks it. I have no idea what is adding that extra single quote. I did quadruple check KeyVault to ensure its not there as a typo. I have tried doing XML variable substitution

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 $[

'React/RCTUtils.h' file not found

我怕爱的太早我们不能终老 提交于 2020-05-17 06:48:07
问题 I am using xcode to build android app. in azure devops pipeline; on build i am getting this error: ▸ Compiling PdfManager.m ❌ /Users/runner/runners/2.166.3/work/1/s/node_modules/react-native-pdf/ios/RCTPdf/PdfManager.m:16:9: 'React/RCTUtils.h' file not found #import "React/RCTUtils.h" ^~~~~~~~~~~ ▸ Compiling RCTPdfPageViewManager.m ▸ Compiling RCTPdfPageView.m ▸ Compiling RCTPdfView.m ** BUILD FAILED ** The following build commands failed: CompileC /Users/runner/Library/Developer/Xcode

In the azure build pipeline, how to cleanup the docker images (created as part of the pipeline) from self hosted agent once it is pushed?

血红的双手。 提交于 2020-05-17 06:22:30
问题 I am using self hosted agent to run my build pipeline. The agent machine has got the base docker image downloaded. The pipeline builds and pushes a new docker image (based on top of the base image) using the 1st task as shown in the following screenshot. Once the image is built and pushed to the container registry, I wish to clean up the images (created as part of this pipeline) from the self hosted agent to avoid disk space issues in the future (the base image should remain). Is there a

How to copy a file from Azure Storage fileshare to Release pipeline agent

谁说胖子不能爱 提交于 2020-05-17 05:56:13
问题 I want to download a file that is on my Azure File storage in FileShare into my release pipeline agent. Inside the release pipeline I am using a PowerShell step and run the command: Start-AzStorageFileCopy -SrcShareName "report.xml" -SrcFilePath "." -DestFilePath "$(System.DefaultWorkingDirectory)" -DestShareName "report.xml" -Context $(context) its asking me now for a parameter -name 2020-05-09T01:43:34.1007773Z ##[error]Cannot process command because of one or more missing mandatory

Azure DevOps Pipeline - Power shell script , Copy Files using Variables

天涯浪子 提交于 2020-05-16 22:13:30
问题 I am working on Azure DevOps Build Pipeline and one of the task is to copy my dll and pdb files into a staging folder for example Code MyProject Bin Debug MyProject.dll MyProject.pdb Staging Client Libraries I want to use PowerShell script task and I am using inline script. When I give below it is not working Copy-Item $(Build.Repository.LocalPath)\Code\MyProject\Bin\$(DebugBuildConfiguration) -Destination $(ClientLibrariesFolder) Below are my variables Variable Name Variable Value