azure-pipelines

How to clean build using self-hosted agent when queuing

末鹿安然 提交于 2020-07-30 07:17:25
问题 Using a git source repo in Azure DevOps - what is the proper way to clean all directories, sources, sources directory, etc. when queuing a new build? There is UX under Get Sources that supports this - but you can't assign your own custom variables for the values - it's a static dropdown for both Clean and Clean options fields. 回答1: Stumbled across this docs posting, but it states Build.Clean is deprecated - but the docs aren't clear that Build.Repository.Clean is now the successor. This is

Azure Pipeline use template expression with queued variables

孤者浪人 提交于 2020-07-23 06:30:07
问题 I defined a YAML build-pipeline in azure: variables: test: '${{ variables.Environment }}' pool: vmImage: 'ubuntu-latest' steps: - script: | echo $(test) displayName: 'Show test' I queue that pipeline with the Environment variable defined as 'abc': I expect it to echo abc but instead abc is replaced with nothing - variables.Environment seems to be undefined. Later on I want to load a different Variable Group depending on the Environment variable, which is why I do not echo $(Environment)

Azure Pipeline use template expression with queued variables

百般思念 提交于 2020-07-23 06:29:05
问题 I defined a YAML build-pipeline in azure: variables: test: '${{ variables.Environment }}' pool: vmImage: 'ubuntu-latest' steps: - script: | echo $(test) displayName: 'Show test' I queue that pipeline with the Environment variable defined as 'abc': I expect it to echo abc but instead abc is replaced with nothing - variables.Environment seems to be undefined. Later on I want to load a different Variable Group depending on the Environment variable, which is why I do not echo $(Environment)

Azure Pipeline use template expression with queued variables

眉间皱痕 提交于 2020-07-23 06:28:06
问题 I defined a YAML build-pipeline in azure: variables: test: '${{ variables.Environment }}' pool: vmImage: 'ubuntu-latest' steps: - script: | echo $(test) displayName: 'Show test' I queue that pipeline with the Environment variable defined as 'abc': I expect it to echo abc but instead abc is replaced with nothing - variables.Environment seems to be undefined. Later on I want to load a different Variable Group depending on the Environment variable, which is why I do not echo $(Environment)

Azure Artifacts - Download a specific version of Universal artifact

北城余情 提交于 2020-07-23 06:20:37
问题 We are using azure devops for our CI/CD process. Many a times, in order to do some custom builds, we need to download the specific universal bundle from artifact repo. Is there a API to do the same ? Again the question is about downloading a specific version of universal artifact using API or python sdk. Similar to below question Azure Artifacts - Download a specific version of maven artifact 回答1: Unfortunately, there is no API exists to download Universal Package. I've noticed there is

Azure Artifacts - Download a specific version of Universal artifact

时间秒杀一切 提交于 2020-07-23 06:19:35
问题 We are using azure devops for our CI/CD process. Many a times, in order to do some custom builds, we need to download the specific universal bundle from artifact repo. Is there a API to do the same ? Again the question is about downloading a specific version of universal artifact using API or python sdk. Similar to below question Azure Artifacts - Download a specific version of maven artifact 回答1: Unfortunately, there is no API exists to download Universal Package. I've noticed there is

Is it possible to read the PR tag on a pipeline task?

北战南征 提交于 2020-07-23 05:35:08
问题 My question is basically the title. I couldn't find such information reading this page and searching the web. My scenario is the following: whenever I create a PR to master I add a tag with some information, like the lib version seen here: Then, during the build process, I generate the release notes and would like to access that PR tag inside a task like I do with $(Build.BuildId) here: How can I accomplish that? Something like $(PullRequest.Tag) Thanks! 回答1: How can I accomplish that?

Is it possible to read the PR tag on a pipeline task?

依然范特西╮ 提交于 2020-07-23 05:34:20
问题 My question is basically the title. I couldn't find such information reading this page and searching the web. My scenario is the following: whenever I create a PR to master I add a tag with some information, like the lib version seen here: Then, during the build process, I generate the release notes and would like to access that PR tag inside a task like I do with $(Build.BuildId) here: How can I accomplish that? Something like $(PullRequest.Tag) Thanks! 回答1: How can I accomplish that?

Is it possible to read the PR tag on a pipeline task?

萝らか妹 提交于 2020-07-23 05:33:12
问题 My question is basically the title. I couldn't find such information reading this page and searching the web. My scenario is the following: whenever I create a PR to master I add a tag with some information, like the lib version seen here: Then, during the build process, I generate the release notes and would like to access that PR tag inside a task like I do with $(Build.BuildId) here: How can I accomplish that? Something like $(PullRequest.Tag) Thanks! 回答1: How can I accomplish that?

Is it possible to read the PR tag on a pipeline task?

生来就可爱ヽ(ⅴ<●) 提交于 2020-07-23 05:33:08
问题 My question is basically the title. I couldn't find such information reading this page and searching the web. My scenario is the following: whenever I create a PR to master I add a tag with some information, like the lib version seen here: Then, during the build process, I generate the release notes and would like to access that PR tag inside a task like I do with $(Build.BuildId) here: How can I accomplish that? Something like $(PullRequest.Tag) Thanks! 回答1: How can I accomplish that?