azure-pipelines

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:

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

How to pass an Azure pipeline variable to an ARM template used by AzureResourceManagerTemplateDeployment@3 task?

旧城冷巷雨未停 提交于 2021-02-11 08:08:03
问题 I am trying to perform the following 2 steps in my Azure pipeline scheduled for every night: Put a self-signed cert into a keyvault Deploy Service Fabric cluster via ARM template and use the cert thumbprint and secret id as params. The first step of creating the certificate in the keyvault works well for me: # import the self-signed certificate ccg-self-signed-cert into the Keyvault - task: AzurePowerShell@5 inputs: azureSubscription: '${{ parameters.ArmConnection }}' ScriptType:

How to get the unit test results in variables in Azure DevOps Pipelines?

只愿长相守 提交于 2021-02-11 06:08:42
问题 I have a build pipeline in Azure DevOps and I'm using the .NET Core task for applying unit testing. I need to get the result of the unit tests in variables. For example, if there are 10 tests cases and two failed, I need to get something like: failedTestCases = 2 succeededTestCases = 8 This is because I need those values in the next tasks. Is there a way to do that? To be clear, I don't need to publish the results, they are already being published, I need to get those values in execution time

How to get the unit test results in variables in Azure DevOps Pipelines?

非 Y 不嫁゛ 提交于 2021-02-11 06:07:27
问题 I have a build pipeline in Azure DevOps and I'm using the .NET Core task for applying unit testing. I need to get the result of the unit tests in variables. For example, if there are 10 tests cases and two failed, I need to get something like: failedTestCases = 2 succeededTestCases = 8 This is because I need those values in the next tasks. Is there a way to do that? To be clear, I don't need to publish the results, they are already being published, I need to get those values in execution time

Pass a Variable group name using REST API Azure devops

ぃ、小莉子 提交于 2021-02-10 18:26:42
问题 Is there any way to pass a variable group name to a release pipeline using REST API without editing the release definition. I am able to do it using the following $defurl = "https://vsrm.dev.azure.com/org/proj/_apis/release/definitions/13?api-version=5.1" $def = Invoke-RestMethod -Uri $defurl -Method Get -Headers $header $def.variableGroups="VariableGroupName" $json = @($def) | ConvertTo-Json -Depth 99 $udef = Invoke-RestMethod -Uri $defurl -Method Put -Body $json -ContentType "application

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