azure-pipelines

Triggering an Azure Devops pipeline from another pipeline

那年仲夏 提交于 2020-05-09 08:02:06
问题 I'm having problems triggering a pipeline from another Pipeline in Azure DevOps. I have a CI pipeline and I want to trigger a Deploy Pipeline whenever CI passes on a master branch. This seems to be technically possible, but the documentation is unclear. I see the following: # this is being defined in app-ci pipeline resources: pipelines: - pipeline: securitylib source: security-lib-ci trigger: branches: - releases/* - master But it's unclear as to a) whether this goes in the triggering

Setting Git Tag from Azure Devops Build Pipeline on Complete

青春壹個敷衍的年華 提交于 2020-04-30 06:37:07
问题 I'm trying to set a tag with the current version number determined by GitVersion on the GIT commit at the end of a successful build. Feels like I can't be the first one to be doing this, but I'm struggling to find something that works. Azure Devops Pipeline has a feature in Get Soources to "Tag sources" On Success. I've set this and set to a variable that is set by one of the Agent Tasks I have (GitVersion) I can see in the debug logs that this variable is getting set by the GitVersion

Change appender param value in .config files on release ( azure pipelines)

筅森魡賤 提交于 2020-04-17 20:43:07
问题 I am using log4net for logging on almost all projects in my .net solution. Currently, I have configured an appender (AzureTableAppender), configuration that is made in each project's respective app.config/ web.config. This appender has a param named "TableName", with an associated value that represents the table to which the data is sent. Everything works fine, but I would like to change that value for 2 of my releases as I want the logs somewhere else. The config looks like this: <log4net>

Change appender param value in .config files on release ( azure pipelines)

一个人想着一个人 提交于 2020-04-17 20:42:11
问题 I am using log4net for logging on almost all projects in my .net solution. Currently, I have configured an appender (AzureTableAppender), configuration that is made in each project's respective app.config/ web.config. This appender has a param named "TableName", with an associated value that represents the table to which the data is sent. Everything works fine, but I would like to change that value for 2 of my releases as I want the logs somewhere else. The config looks like this: <log4net>

Change appender param value in .config files on release ( azure pipelines)

别来无恙 提交于 2020-04-17 20:40:29
问题 I am using log4net for logging on almost all projects in my .net solution. Currently, I have configured an appender (AzureTableAppender), configuration that is made in each project's respective app.config/ web.config. This appender has a param named "TableName", with an associated value that represents the table to which the data is sent. Everything works fine, but I would like to change that value for 2 of my releases as I want the logs somewhere else. The config looks like this: <log4net>

Selenium Webdriver tests always fail on Azure DevOps but work perfectly on dev machine

筅森魡賤 提交于 2020-04-17 17:59:52
问题 Using a .net core 3.1 XUnit test project and the C# bindings for the Selenium WebDriver API, my tests succeed when I run them locally on my development machine but always fail when run in an Azure DevOps release pipeline. Here is the Yaml definition for the test task steps: - task: VSTest@2 displayName: 'VsTest - testAssemblies' inputs: testAssemblyVer2: '**\--REDACTED--.dll' uiTests: true runInParallel: false rerunFailedTests: true I have followed the microsoft guidelines and activated

Selenium Webdriver tests always fail on Azure DevOps but work perfectly on dev machine

这一生的挚爱 提交于 2020-04-17 17:54:23
问题 Using a .net core 3.1 XUnit test project and the C# bindings for the Selenium WebDriver API, my tests succeed when I run them locally on my development machine but always fail when run in an Azure DevOps release pipeline. Here is the Yaml definition for the test task steps: - task: VSTest@2 displayName: 'VsTest - testAssemblies' inputs: testAssemblyVer2: '**\--REDACTED--.dll' uiTests: true runInParallel: false rerunFailedTests: true I have followed the microsoft guidelines and activated

Deployment to Azure Linux App services from Azure DevOps has no effect

邮差的信 提交于 2020-04-16 05:55:30
问题 I have an Angular 8 + asp.net core 3.1 application generated by Visual Studio 2019. I tried to deploy the application as is without modification on the Azure Linux App Service by using a VS 2019 Publish and the application gets deployed with no issue and I can access the application from web browsers on the <app-name>.azurewebsites.net url When deploying the application from an Azure release pipeline with the Azure App Service deploy Task, the deployment occurs with no errors but when

Inject env variable into build stage of image

南笙酒味 提交于 2020-04-16 05:54:05
问题 Working on a CI/CD pipeline for a Django based API. I need to inject an environmental variable during the build stage to successfully build the image. python manage.py collectstatic is run in the Dockerfile when the image is being built collectstatic needs the SECRET_KEY in the settings.py to run SECRET_KEY is empty during this stage because it is read in with os.environ['SECRET_KEY] Because it is empty, the build fails Thus, I need to set the environment to have this variable I am having

VSTS\Azure-DevOps: Enabling Continuous Integration on pipeline with source from Bitbucket fails with error

假装没事ソ 提交于 2020-04-12 17:08:17
问题 Regards, Your help will be appreciated. I have created a pipeline in VSTS\Azure-DevOps. It gets its sources from a repository in Bitbucket. Queueing a build works fine. It builds and the tests succeed. Now I want a build to run on every commit to the repository on Bitbucket. However, when I edit the pipeline and in the Triggers tab enable 'Continuous Integration' and click 'Save' I get the following error: Unable to configure a service on the selected Bitbucket repository. Bitbucket returned