English 中文(简体)
管道是否有多种再造的变量?
原标题:Does Azure Pipelines have variables for multiple repo checkouts?

在我的输油管模板中,我正在从2个不同的备份中核对编码:

resources:
  repositories:
  - repository: DeploymentRepo
    type: git
    name: MyProject/AWS.Deployment
...
  steps:
    - checkout: self
    - checkout: DeploymentRepo

设立2个局。 其中一人被指定为“自己”的再补给船,另一人被指定为“部署后备船”。 我使用了$(Build.Repository.Name),将“自己”的重新抬头名称引向前进。 是否有办法参考其他的背书目录? 我也可使用<代码>$(Build.Repository. LocalPath),但仅指“自发”的背书。 我想用一个变量来谈谈“部署后备”。 AZ管道是否支持这种概念? 我读到,这几次是,但我看不出任何明显的。

问题回答

没有这样的变量。 评注中建议,使用<代码>$(Build.SourcesDirectory)/DendingRepo或$(Pipeline.Workspace)/s/DendingRepo是主要用于这一用途的变量。

我采取这种做法,用别物代替变数,以避免使用背书名称。 你们可以把其他东西做成像你一样的通用。 我有一个例子,它使用一条道路,没有一条路。

repositories:    
  - repository: DeploymentRepoAqua
    type: git
    name: BuildPro/AWS.Deployment
  - repository: BuildRepo
    type: git
    name: BuildPro/AWS.Builder
...
  steps:
    - checkout: DeploymentRepoAqua
      path: DeploymentRepoAqua
    - checkout: BuildRepo
...
  sam build -t $(Build.SourcesDirectory)/$(Build.Repository.Name)/...
...
  filePath:  $(Pipeline.Workspace)/DeploymentRepoAqua/ 




相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签