azure-pipelines-release-pipeline

Allow VSTS to update test database

本秂侑毒 提交于 2019-12-04 02:31:54
问题 In order to run my acceptance tests I need to define a known good state on the database running on SQL Azure. I have the tests running fine locally and have set up the connection string to update my instance of SQL on Azure PaaS. The tests will run after the database is deployed using VSTS. In order for the deploying process to run my accceptance tests I need the process running Visual studio team system tests to have access to the database. VSTS apparently runs in the East US Azure zone.

How to Export and Import Test Cases from Visual Studio Team Services into MS Excel

…衆ロ難τιáo~ 提交于 2019-12-03 21:59:56
I have a requirement to import the Excel Based Test Cases into VSTS and Export Test Cases from VSTS into MS Excel. VSTS(Not TFS) You can use below way to export test cases from VSTS to MS excel: Define a query for the test case you want to export. Create new query for all test case -> specify Work Item Type = Test case . Connect in MS excel. MS excel -> Team ribbon -> New List -> Servers -> add -> input VSTS URL( https://account.visualstudio.com ) -> OK -> Close -> select a team project -> connect -> choose Query list -> select the query you just created -> OK. Now all the test cases are

VSTS build with multiple repos

旧城冷巷雨未停 提交于 2019-12-03 14:11:01
My team uses VSTS for CI/CD of a web project. In order to keep our code separated, we use two separate repositories for front-end and back-end. Two questions are raised by this: How do I set up a build that merges the build artifacts from the two repositories into a single release? How do I trigger this single build/release process from each repository separately? First step is to create a CI build for both repositories. Once you have them compiling and generating the necessary artifacts, you need to create a single CD release. At the top of the editor, there is an Artifacts tab. Once there,

Configure Azure DevOps email template

那年仲夏 提交于 2019-12-02 12:35:15
问题 I have configured Microsoft Azure DevOps to build our software and release it automatically. (With the Build and with the release Pipeline) After the succesful release I have set it up, to send an email to all project-members. My question is: Can I somehow configure this email? E.g. I need to remove the "Summary" part. Is this somehow possible with Azure Devops? Screenshot of current email: 回答1: No, currently you can't configure the email templates. there is a popular feature request about it

Run EF migration on VSTS release

北城余情 提交于 2019-12-02 12:07:18
问题 When I release my Asp.Net MVC app to azure web app using VSTS and a Hosted VS2017 agent, the EF Migration (to Azure SQL) doesn't execute on application start the same way it can be done publishing from Visual Studio with the option "Execute Code First Migrations (Runs on application start)". What would be the specific steps on VSTS to make EF migration run and update the database the same way as when publishing from VS ? 回答1: Is possible to have VSTS use the same Publish Profile as in VS

Populate data in to VSTS release summary tab

喜你入骨 提交于 2019-12-02 07:35:50
I am trying to create a release without mapping a existing build in TFS/VSTS and get data display in release summary once it is completed. in plain text steps are following Release -> Empty Release Definition -> Add build task - > Create Release -> Deploy -> View Data in Summary Section Summary data are view-able as expected without any issues with following two scenarios Build - > Create build definition -> Add task - > Save and Queue build – Build Success - > View Summary Data Release -> Empty Release Definition -> Link pre-defined Build definition -> Create Release -> provide successfully

Version 4 of Azure App Service Deploy - ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP

扶醉桌前 提交于 2019-12-02 05:22:00
问题 This is a follow-up question to this question. The answer in the original question helped me, but I am stuck somewhere else. As a reminder, I want to deploy my application using a publish profile. My web app in Azure has two subfolders inside wwwroot and one of them is called backend . I want to deploy my application to that folder. I am not sure why msdeploy wants to create anything, since the web app is already there - I just need to get the artifacts inside the backend folder. Here is the

Version 4 of Azure App Service Deploy - ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP

元气小坏坏 提交于 2019-12-02 05:16:35
This is a follow-up question to this question . The answer in the original question helped me, but I am stuck somewhere else. As a reminder, I want to deploy my application using a publish profile. My web app in Azure has two subfolders inside wwwroot and one of them is called backend . I want to deploy my application to that folder. I am not sure why msdeploy wants to create anything, since the web app is already there - I just need to get the artifacts inside the backend folder. Here is the relevant part of the log (with some names changed to xyz ): 2018-06-14T09:19:25.0295238Z Start

Configure Azure DevOps email template

穿精又带淫゛_ 提交于 2019-12-02 04:58:51
I have configured Microsoft Azure DevOps to build our software and release it automatically. (With the Build and with the release Pipeline) After the succesful release I have set it up, to send an email to all project-members. My question is: Can I somehow configure this email? E.g. I need to remove the "Summary" part. Is this somehow possible with Azure Devops? Screenshot of current email: No, currently you can't configure the email templates. there is a popular feature request about it, you can up vote there. As workaround, you can install the Send Email task, and add it to the release

How can I create a Pull Request when a release completes in VSTS?

别来无恙 提交于 2019-12-02 01:33:44
A project I'm working on has 2 long-standing feature branches as well as the master branch. To fully automate deployments, I'd like to create a pull request from master into those two feature branches anytime a deployment goes out from a VSTS Release. What kind of tooling in VSTS would allow me to do create pull requests as a release task? You can create the Pull Request through Pull Request REST API during the release. There is Invoke HTTP REST API task but may not good for your requirement. The simple way is that you can do it through PowerShell task : Select the phase (e.g. Run on agent)