azure-devops

Commit a file to remote github repo through Azure DevOps

末鹿安然 提交于 2021-02-05 11:49:37
问题 A build definition in Azure DevOps generates a .ipa file(iOS app file). I want to push this .ipa file generated by Azure DevOps build, directly into a remote GitHub Repository. 回答1: A build definition in Azure DevOps generates a .ipa file(iOS app file). I want to push this .ipa file generated by Azure DevOps build, directly into a remote GitHub Repository. It's not recommended to add build output into Source Control. If you have special reason to do this, you can run git commands in Command

Commit a file to remote github repo through Azure DevOps

爷,独闯天下 提交于 2021-02-05 11:48:24
问题 A build definition in Azure DevOps generates a .ipa file(iOS app file). I want to push this .ipa file generated by Azure DevOps build, directly into a remote GitHub Repository. 回答1: A build definition in Azure DevOps generates a .ipa file(iOS app file). I want to push this .ipa file generated by Azure DevOps build, directly into a remote GitHub Repository. It's not recommended to add build output into Source Control. If you have special reason to do this, you can run git commands in Command

Powershell to trigger a build in Azure DevOps

半腔热情 提交于 2021-02-05 09:59:10
问题 We have just migrated our code from on-site TFS to Azure DevOps. With TFS, I use a powershell script to build and deploy the application. The deployment part still works fine, but I don't know how to trigger the build. The command line I used with the old TFS is: & "F:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TFSBuild" start [repository URL] [project] "[build definition]" I know that DevOps has a REST API https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds

How to stop azure dev ops yaml validation build from running for each branch?

て烟熏妆下的殇ゞ 提交于 2021-02-05 09:44:39
问题 We are using azure dev ops for CICD and validating PR's. Yesterday I decided to start making yaml files for validation builds. I created the pipeline. I set the branch policy for 'development' fine and the validation build ran okay. However, something I see is that each time ANY branch gets a change to the files of the directory I've set the validation build for a build triggers. So, let's say I've made a yaml pipeline(CI only) for project Main(src/Main) and i've set a branch policy on branch

Unable to open the Excel file attached to work item in Azure Devops

南楼画角 提交于 2021-02-05 09:30:12
问题 I am creating a tool for attaching the excel files to work items using Azure Devops REST API.I am able to add the excel file to work item but when I was trying to open that it just says "file foramt or file extension not valid". I appreciate any suggestions or any inputs. Edited: As per the sugesstion of Lance-Li , i converted the excel file to bytes and send that in request body like below byte[] filedata = File.ReadAllBytes(filepath); dynamic WorkItem = new List<dynamic>() { new { filedata,

Azure Devops logging commands in release pipeline

此生再无相见时 提交于 2021-02-05 08:34:21
问题 I am trying to customize the output of my pipeline release through setting some env variables into a task. I found the following link: https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=powershell which however does not seem to work. What I am doing is simply to create a pipeline with a single task (either bash or PS), and there declaring the commands specified in the link through the inline version of the task. Has anyone already

Artifact not being downloaded in release pipeline - Azure DevOps

对着背影说爱祢 提交于 2021-02-05 08:33:56
问题 I've been struggling with an issue in Azure DevOps where I can build successfully an artifact through a build pipeline (I use the publish artifact task). I can see that the artifact is built successfully, as I can download it and I can reference it later in the release pipeline. The issue is that when the hosted agent is started, no artifacts are downloaded to the machine, and my $(System.DefaultWorkingDirectory) is always empty. I am out of ideas on why in the initialization of the hosted

Artifact not being downloaded in release pipeline - Azure DevOps

故事扮演 提交于 2021-02-05 08:32:05
问题 I've been struggling with an issue in Azure DevOps where I can build successfully an artifact through a build pipeline (I use the publish artifact task). I can see that the artifact is built successfully, as I can download it and I can reference it later in the release pipeline. The issue is that when the hosted agent is started, no artifacts are downloaded to the machine, and my $(System.DefaultWorkingDirectory) is always empty. I am out of ideas on why in the initialization of the hosted

Is it possible to download files during the build pipeline on Azure DevOps?

守給你的承諾、 提交于 2021-02-05 08:27:12
问题 We're starting to use Azure DevOps to build and deploy my application. Currently, we do not upload the application images to our repo. I Would like to know if I could download all the images to the artifact that is going to be generated during the build pipeline. My yml pipeline : trigger: - develop pool: vmImage: 'windows-latest' variables: solution: '**/*.sln' buildPlatform: 'Any CPU' buildConfiguration: 'Release' steps: - task: NuGetToolInstaller@0 task: NuGetCommand@2 inputs:

ADF publish confusion in git mode

早过忘川 提交于 2021-02-05 08:07:16
问题 In git mode, when we want to test a pipeline, ADF forces us to publish first. Publish action does two things is my understanding Saves to the local ADF (DEV) as given here Creates arm templates in a branch (adf_publish/the branch we specify) But to get the 'Publish' button enabled, we need to be in collaboration branch. This means no two people can work at the same time on a DEV ADF. As both people will be asked to publish by ADF before they could test the pipeline they are building. If this