azure-devops

VSTS - Automatically link new work in this build is not working

大兔子大兔子 提交于 2021-02-11 12:49:31
问题 In Project A, I setup a build to automatically link the build to associated workitems...worked flawless the first time. In another project - I have a build-definition which does not set the link. What's curious - a clone of said definition, with some tasks removed (basically just "Upload Artifacts" removed, cause it is just a build-verification test for pull-requests) does set the link. I even re-created the build-definition from scratch, still no links added sigh Anybody have any insights on

Azure Pipelines YAML: Unexpected value 'variables' and Unexpected 'stages'

六眼飞鱼酱① 提交于 2021-02-11 12:38:05
问题 I have gotten pretty close with my template and my deploy yaml that uses it. However I am getting to errors Unexpected value 'variables' Unexpected value 'stages' I am sure I have the syntax wrong, but I can't for the life of me understand why. Here is the start of my template #File: template.yml parameters: - name: repositoryName type: string default: '' variables: tag: '$(Build.BuildId)' buildVmImage: 'ubuntu-latest' deployPool: 'deploy-pool' stages: - stage: Build jobs: - job: Build pool:

Azure pipelines encountered error(s) while parsing pipeline YAML (Unique Job Name)

对着背影说爱祢 提交于 2021-02-11 12:33:07
问题 In my azure devops project, I have created a pipeline using template. This is the main yaml files for my build pipeline name: Test-$(Date:yyyyMMdd)$(Rev:.r) resources: repositories: - repository: api type: git name: porject/api ref: master - repository: front type: git name: project/front ref: master - repository: strapi type: git name: project/strapi ref: master trigger: branches: include: - master pool: vmImage: 'ubuntu-latest' workspace: clean: all variables: - name: workingDir value:

Creating a dashboard for the last branch deployed through pipelines

白昼怎懂夜的黑 提交于 2021-02-11 12:29:37
问题 I want to create at-a-glance visibility of what was most recently deployed. I tried the deployment status widget but we don't use release pipelines so it doesn't work for us https://docs.microsoft.com/en-us/azure/devops/report/dashboards/widget-catalog?view=azure-devops#deployment-status-widget. I tried reviewing the rest of the catalog but nothing seems to fit. Does anyone have a solution for this problem? 回答1: It seems you are talking about YAML pipeline. The Release Pipeline Overview

In TFS (or ADO) is there an API call to link a Team to an Area Path?

别等时光非礼了梦想. 提交于 2021-02-11 12:25:53
问题 We're automating our TFS Team/Board creation and found that there is an API to create a Team and an API to create an Area Path, but not one to link the two. Basically we're looking for something that acts as the ‘Create an area path with the name of the team.’ check box in the attached picture.Screenshot Here's the code for our Team post: $azdoURI = https://prd-ourCompanyName/tfs/ourOrg/_apis/projects/ourProject/teams?api-version=5.0" $requestBody = @{ name = "$boardName" } $jsonRequestBody =

In TFS (or ADO) is there an API call to link a Team to an Area Path?

左心房为你撑大大i 提交于 2021-02-11 12:25:42
问题 We're automating our TFS Team/Board creation and found that there is an API to create a Team and an API to create an Area Path, but not one to link the two. Basically we're looking for something that acts as the ‘Create an area path with the name of the team.’ check box in the attached picture.Screenshot Here's the code for our Team post: $azdoURI = https://prd-ourCompanyName/tfs/ourOrg/_apis/projects/ourProject/teams?api-version=5.0" $requestBody = @{ name = "$boardName" } $jsonRequestBody =

Environment variable not injected into multi stage docker build on Azure Devops pipeline

江枫思渺然 提交于 2021-02-11 12:23:03
问题 I have a docker file that I can build locally without issues, on Azure Devops the variable is not set properly. E.g. locally I can run a multi-stage docker build where artifacts are fetched from an Azure artifact repository with authorization. The authorization token can be set locally without issues. On the build pipeline I haven't been able to inject it properly. The docker file: FROM gradle:5.4.1-jdk8 AS build ARG AZURE_ARTIFACTS_ENV_ACCESS_TOKEN ENV AZURE_ARTIFACTS_ENV_ACCESS_TOKEN $AZURE

How can we configure CI for the iOS app with App Extensions

那年仲夏 提交于 2021-02-11 12:17:58
问题 I have tried multiple things in Azure DevOps (VSTS) to create CI for the iOS app but turns out that Azure DevOps doesn't support the apps that have App extensions. Is it really the case? I'm using the OneSignal Notification Service Extension in our project which is dependent on the main target. So, when Xcode task tries to sign the app an error occurs related to the build identifiers as the Xcode main target has a different build identifier than OneSignalNotificationServiceExtension's build

How can we configure CI for the iOS app with App Extensions

淺唱寂寞╮ 提交于 2021-02-11 12:17:31
问题 I have tried multiple things in Azure DevOps (VSTS) to create CI for the iOS app but turns out that Azure DevOps doesn't support the apps that have App extensions. Is it really the case? I'm using the OneSignal Notification Service Extension in our project which is dependent on the main target. So, when Xcode task tries to sign the app an error occurs related to the build identifiers as the Xcode main target has a different build identifier than OneSignalNotificationServiceExtension's build

Run Container Jobs as specific User

為{幸葍}努か 提交于 2021-02-11 12:14:14
问题 We're trying to get our first containerized build running in Azure Devops Server. The build runs fine in the container, but, unfortunately, it needs to access resources on another server. As such, I need this to be running as a domain user (GMSA account will work) so that it can authenticate the network share to access those resources. I can't seem to find any documentation on running a containerized build as a specific user. Can anyone point me to how to setup the yml for passing credentials