azure-devops

Combine results of several pipeline jobs into azure web app package

狂风中的少年 提交于 2021-01-28 08:53:10
问题 We're in the process of moving our product to an azure web app. We have an extensive existing pipeline containing multiple parallel jobs. One of these jobs compiles a asp.net web application. Some others compile a vue.js website. Currently, the results of the web application and the vue projects are combined in a separate stage, using a powershell script. Now I can convert the publish step of the web application to generate a deployment package for azure. But what is the best way of also

Entity Framework Core migrations through CI and CD in Azure DevOps

眉间皱痕 提交于 2021-01-28 08:39:53
问题 I have created an Entity Framework Core project and it is working fine and I am able to generate migrations through Visual Studio. But I want to generate SQL scripts through Azure Devops CI and deployment through CD. I am unable to do it. By adding this command dotnet ef migrations script --project $(Build.SourcesDirectory)\SampleEFCoreApplication\SampleEFCoreApplication.csproj -o $(build.artifactstagingdirectory)\migrations\scripts.sql This generates the entire SQL script. But next time, if

Combine results of several pipeline jobs into azure web app package

怎甘沉沦 提交于 2021-01-28 08:31:06
问题 We're in the process of moving our product to an azure web app. We have an extensive existing pipeline containing multiple parallel jobs. One of these jobs compiles a asp.net web application. Some others compile a vue.js website. Currently, the results of the web application and the vue projects are combined in a separate stage, using a powershell script. Now I can convert the publish step of the web application to generate a deployment package for azure. But what is the best way of also

Remove commit message from azure devops pipeline run web page?

心不动则不痛 提交于 2021-01-28 08:03:43
问题 I know how to change the runName (also known as Build.BuildNumber) but as shown here the commit message also shows up (this is the pipeline page in devops) even though it's not part of the name that I set. This behavior is also present when I don't change the name, it just looks like yyyyMMdd.rev <commit message> . I don't want the message there because the BuildNumber that I set describes the pipeline run better, and the commit message could be confusing. Is it possible to remove the commit

How to fix: In Azure Devops connection string is null despite setting Variable in the build Pipeline

≡放荡痞女 提交于 2021-01-28 07:38:20
问题 I have problem with build pipeline in Azure Devops, with variables from build pipeline not replacing empty configuration in appsettings.json. Below there is more details. My current test project is build using asp.net core technology and is connected to SQL server. I also use Entity Framework Core and autofac. To connect to SQL server I use appsettings.json configuration: { "ConnectionStrings": { "AzureDbConnectionString": "" } } but my credentials are stored in secrets.json {

In Fedora 33, git operations with ssh id_rsa file fail on GitLab.com

点点圈 提交于 2021-01-28 07:12:19
问题 Since I've installed Fedora 33, any git operation with GitLab.com (and with a different symptom, azure) fail. On GitLab.com I get: git@gitlab.com: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Azure simply asks for password without showing any errors. 回答1: As suggested in here, the fix for gitlab is to save these lines in ~/.ssh/config file: Host gitlab.com

Azure DevOps - Use YAML templates in a Git Submodule

我的梦境 提交于 2021-01-28 07:03:35
问题 So i have 11 repositories of 1 project, they are all micro-services. I have one repository called DevOps where everything that has to be shared across YAML builds, is shared using a Git Submodule. For some reason i cant seem to reference yaml templates that are in a git module. Options: When i try to run a build by trigger or manually i get the error: File /DevOps/A/Templates/A-test-template.yml not found in repository http://A.azuredevops.local/DefaultCollection/A/_git/A branch refs/heads

Azure Devops trigger pipeline with pushing tags from Bitbucket

久未见 提交于 2021-01-28 06:52:36
问题 I am using BitBucket for my project and would like to know whether or not pushing tags can trigger pipeline from BitBucket. All the tutorials I saw are using Github. If anyone successfully did that with BitBucket, can you please give some advice? Thanks a lot Here is my configuration of pipeline (following the discussion in https://developercommunity.visualstudio.com/content/problem/656727/build-pipeline-trigger-from-git-tag-is-not-working.html) trying to trigger with tag push trigger: tags:

How to set up the Team Foundation Server repository in vs code?

僤鯓⒐⒋嵵緔 提交于 2021-01-28 06:32:40
问题 I'm using visual studio code version 1.26.1 for angular projects. Right now I'm using source control GIT. But I would like to change this to Team Foundation Server. So that I have installed the Visual Studio Team Services. Once after that, I have done the following things: Open File -> Preferences -> Settings Add the following lines to your user settings { "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\

Specifying Pipeline resource version using variable

最后都变了- 提交于 2021-01-28 06:13:16
问题 When using Pipeline resource an error occurs when I am trying to use the value of the Version field as a variable value. resources: pipelines: - pipeline: BuildApp source: BuildApp # version: $(appversion) <- this doesn't work version: 20191204.17 <- this works Static version looks not so useful. Is it possible to specify such version for each run dynamically? For example, using variables. 回答1: I tested and reproduced the problem you met and use parameters, template variable, template