azure-devops

Azure Devops: Cannot Build an Image using NPM private registry even after setting NPM Authenticate

时光总嘲笑我的痴心妄想 提交于 2020-12-05 11:23:31
问题 I am always getting an error on npm install after setting NPM Authenticate. I would like to authenticate to my npm private registry during image build and install all the dependencies I need. Maybe I misunderstood how this authentication process works but this is what I am doing: Build pipeline I tried establishing a service connection from the project settings page as in Service connections for builds and releases After that, I also set up my NPM Authentication task following the steps in

Azure DevOps REST API - Create Work Item - “A value is required”

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-05 10:23:47
问题 I'm trying to create a work item using the Azure DevOps REST API. I've been able to do other things, like running a WIQL query, but when I try to create a work item I get this mysterious triple-error: A value is required but was not present in the request A value is required but was not present in the request A value is required but was not present in the request Here's the full response. { "count": 1, "value": { "Message": "A value is required but was not present in the request.\r\nA value

Azure DevOps REST API - Create Work Item - “A value is required”

余生长醉 提交于 2020-12-05 10:22:10
问题 I'm trying to create a work item using the Azure DevOps REST API. I've been able to do other things, like running a WIQL query, but when I try to create a work item I get this mysterious triple-error: A value is required but was not present in the request A value is required but was not present in the request A value is required but was not present in the request Here's the full response. { "count": 1, "value": { "Message": "A value is required but was not present in the request.\r\nA value

Azure DevOps Build Submodule

半世苍凉 提交于 2020-12-05 03:42:26
问题 I have a private bitbucket repo that is connected to the Azure DevOps Build Pipeline. The private repo has a submodule connected to a public Github repo. Both repositories are accessed via SSH. I have ticked the clone submodules box in DevOps. How do I provide an SSH key to Azure DevOps so it will clone the submodule? 回答1: The solution for this was not to change to https, or setup a self hosted agent. There is a step available called Load an SSH key. I created a new ssh key on github, added

Azure DevOps Build Submodule

﹥>﹥吖頭↗ 提交于 2020-12-05 03:40:08
问题 I have a private bitbucket repo that is connected to the Azure DevOps Build Pipeline. The private repo has a submodule connected to a public Github repo. Both repositories are accessed via SSH. I have ticked the clone submodules box in DevOps. How do I provide an SSH key to Azure DevOps so it will clone the submodule? 回答1: The solution for this was not to change to https, or setup a self hosted agent. There is a step available called Load an SSH key. I created a new ssh key on github, added

Update JSON file using PowerShell

心已入冬 提交于 2020-12-02 05:54:02
问题 I am currently trying to setup a continuous integration system using VSTS and have run into a bit of a snag. As part of the release process I need to update a specific object value in a JSON file depending on the environment. The only tools it seems I have at my disposal that might get this done in the VSTS environment is PowerShell. I've done quite a bit of research and have not been able to figure out how exactly this can be done. I found this question and answer here on Stack Overflow "How

Update JSON file using PowerShell

橙三吉。 提交于 2020-12-02 05:52:52
问题 I am currently trying to setup a continuous integration system using VSTS and have run into a bit of a snag. As part of the release process I need to update a specific object value in a JSON file depending on the environment. The only tools it seems I have at my disposal that might get this done in the VSTS environment is PowerShell. I've done quite a bit of research and have not been able to figure out how exactly this can be done. I found this question and answer here on Stack Overflow "How

Azure DevOps audit logs download rest api not downloading filtered data for given months

我是研究僧i 提交于 2020-12-01 18:03:54
问题 Hi I am not able able to download data for mentioned duration , It downloads all the logs. $outfile = "/logs.csv" $connectionToken="" $base64AuthInfo= [System.Convert]::ToBase64String([System.Text.Encoding]:: ASCII.GetBytes(":$($connectionToken)")) $AuditLogURL = "https://auditservice.dev.azure.com/{og_name}/_apis/audit/downloadlog? format=csv&startTime=2020-09-04T00.00.00&endTime=2020-10-05T00.00.00&api-version=6.1- preview.1" $AuditInfo = Invoke-RestMethod -Uri $AuditLogURL -Headers @

Azure DevOps audit logs download rest api not downloading filtered data for given months

耗尽温柔 提交于 2020-12-01 17:35:40
问题 Hi I am not able able to download data for mentioned duration , It downloads all the logs. $outfile = "/logs.csv" $connectionToken="" $base64AuthInfo= [System.Convert]::ToBase64String([System.Text.Encoding]:: ASCII.GetBytes(":$($connectionToken)")) $AuditLogURL = "https://auditservice.dev.azure.com/{og_name}/_apis/audit/downloadlog? format=csv&startTime=2020-09-04T00.00.00&endTime=2020-10-05T00.00.00&api-version=6.1- preview.1" $AuditInfo = Invoke-RestMethod -Uri $AuditLogURL -Headers @

Angular CLI app not running when deploying to Linux App Service

戏子无情 提交于 2020-12-01 07:45:34
问题 I'm trying to deploy an Angular CLI app to Azure App Service on Linux OS, using Azure Dev Ops - but no success. I get Image 1. No error in the server or application logs. This is what I done so far: Built the Angular CLI app using DevOps Build and placed the resulted "dist" folder to the "drop" folder. See below (Image 2) the tasks that compose my build. This is working fine and creating the expected files. Created a release in DevOps, deploying all the dist files in the wwwroot folder in the