azure-devops

Docker task in Azure devops won't accept "$(pwd)' as variable

流过昼夜 提交于 2021-01-27 12:21:19
问题 I tried to run a docker command through the docker task in Azure devops with the build in docker task. As variable for the volume of the docker command I gave this as value But it keeps failing with the error /usr/bin/docker: Error response from daemon: create $(pwd)/out: "$(pwd)/out" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. I tried to give the same docker run command with

Docker task in Azure devops won't accept "$(pwd)' as variable

∥☆過路亽.° 提交于 2021-01-27 12:08:02
问题 I tried to run a docker command through the docker task in Azure devops with the build in docker task. As variable for the volume of the docker command I gave this as value But it keeps failing with the error /usr/bin/docker: Error response from daemon: create $(pwd)/out: "$(pwd)/out" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. I tried to give the same docker run command with

Could any one help me how to stop and start azure webjobs through vsts?

送分小仙女□ 提交于 2021-01-27 07:25:49
问题 I have found one plugin azure app service webjob start in VSTS but I can't start/stop the webjob.Please help me guys. I am getting the below error while running the task in VSTS. Error: 2017-09-25T12:26:37.3203696Z Preparing task execution handler. 2017-09-25T12:26:43.2660796Z Executing the powershell script: d:\a\_tasks\Start_cbebb02b-11c6-4e24-b5a8-0b51366d51b7\0.2.5\Start.ps1 2017-09-25T12:26:43.6830868Z ## [error]System.Management.Automation.ParentContainsErrorRecordException: At D:\a\

Could any one help me how to stop and start azure webjobs through vsts?

99封情书 提交于 2021-01-27 07:24:37
问题 I have found one plugin azure app service webjob start in VSTS but I can't start/stop the webjob.Please help me guys. I am getting the below error while running the task in VSTS. Error: 2017-09-25T12:26:37.3203696Z Preparing task execution handler. 2017-09-25T12:26:43.2660796Z Executing the powershell script: d:\a\_tasks\Start_cbebb02b-11c6-4e24-b5a8-0b51366d51b7\0.2.5\Start.ps1 2017-09-25T12:26:43.6830868Z ## [error]System.Management.Automation.ParentContainsErrorRecordException: At D:\a\

Could any one help me how to stop and start azure webjobs through vsts?

喜夏-厌秋 提交于 2021-01-27 07:23:37
问题 I have found one plugin azure app service webjob start in VSTS but I can't start/stop the webjob.Please help me guys. I am getting the below error while running the task in VSTS. Error: 2017-09-25T12:26:37.3203696Z Preparing task execution handler. 2017-09-25T12:26:43.2660796Z Executing the powershell script: d:\a\_tasks\Start_cbebb02b-11c6-4e24-b5a8-0b51366d51b7\0.2.5\Start.ps1 2017-09-25T12:26:43.6830868Z ## [error]System.Management.Automation.ParentContainsErrorRecordException: At D:\a\

Azure DevOps get commits linked to a work item via the REST API

ⅰ亾dé卋堺 提交于 2021-01-27 06:36:49
问题 Is there a way to get Git Commits that are linked to a work item given only the work item ID? I'm using PowerShell and this URI to get work items, but I don't see any of the linked commits on the returned object. I also don't see any documentation on how to get these links. $Results = Invoke-RestMethod -Uri "http://azuredevops/azuredevops/Collection/Project/_apis/wit/workitems?api-version=5.1&ids=1" -Method "GET" -UseDefaultCredentials | Select-Object -ExpandProperty Value $Results.fields 回答1

Error: No matching files were found with search pattern: D:\a\1\s\**\*.apk

大城市里の小女人 提交于 2021-01-27 06:15:10
问题 I have react-native application in windows 10 which works great in my development machine, it can release signed apk and everything is ok. I am using VSTS (TFS Online) as my source control, When I Build my project, everything built successfully, but I get strange error this is where you can see build successfully done, and I face error this is the error details any clue? Update These are my tasks in Build definition Update 2 Add Gradlew task in Build definition 回答1: I'm answering my own

Cannot create new Pipeline using Az DevOps Pipelines API 6.0-preview.1

前提是你 提交于 2021-01-27 05:46:08
问题 I'm trying to create new Pipelines using this API endpoint: POST https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1 This is the request I'm using: curl -X POST \ 'https://dev.azure.com/<myorg>/<myproj>/_apis/pipelines?api-version=6.0-preview.1' \ -H 'Authorization: Basic <b64string>' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -d '{ "configuration":{ "repository": { "id": "<repo-guid>", "name": "<repo-name>", "type":

Cannot create new Pipeline using Az DevOps Pipelines API 6.0-preview.1

你。 提交于 2021-01-27 05:44:13
问题 I'm trying to create new Pipelines using this API endpoint: POST https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1 This is the request I'm using: curl -X POST \ 'https://dev.azure.com/<myorg>/<myproj>/_apis/pipelines?api-version=6.0-preview.1' \ -H 'Authorization: Basic <b64string>' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -d '{ "configuration":{ "repository": { "id": "<repo-guid>", "name": "<repo-name>", "type":

why is azure build pipeline not generating a dist folder for an angular build

泪湿孤枕 提交于 2021-01-25 06:39:19
问题 It seem like the folder that are getting generated during the build are getting deleted before I could ran any other task dist folder. trigger: - master pool: default steps: - task: NodeTool@0 inputs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | npm install -g @angular/cli npm install ng build --prod displayName: 'npm install and build' #i added this task and it seems like the node_modules and the dist #folder that was generated during the build are not getting copied to the