社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

Azure管道下载相关的GitHub版本

birko • 5 年前 • 1385 次点击  

我已经为我在Azure DevOps上的项目创建了ASP.NET核心管道。

需要有关配置从属github源的管道yaml的帮助。 构建项目的文件结构应如下所示:

Birko.Data // Github repo 
Birko.Data.Helper // Github repo 
Birko.Data.ElasticSearch // Github repo 
Affiliate  // Azure dev ops repo
  - project sources
  -.sln file

如果我理解正确,所有的源文件都会下载到 $(System.ArtifactsDirectory)

管道定义:

    trigger:
    - master

    pool:
      vmImage: 'windows-latest'

    variables:
      solution: '**/*.sln'
      buildPlatform: 'Any CPU'
      buildConfiguration: 'Release'

    steps:
    - task: DownloadGitHubRelease@0
      displayName: 'Chekout: Birko.Data'
      inputs:
        connection: 'birko-test'
        userRepository: 'birko/Birko.Data'
        defaultVersionType: 'latest'
        downloadPath: '$(System.ArtifactsDirectory)'

    - task: DownloadGitHubRelease@0
      displayName: 'Chekout: Birko.Data.Helper'
      inputs:
        connection: 'birko-test'
        userRepository: 'birko/Birko.Data.Helper'
        defaultVersionType: 'latest'
        downloadPath: '$(System.ArtifactsDirectory)'

    - task: DownloadGitHubRelease@0
      displayName: 'Chekout Birko.Data.ElasticSearch'
      inputs:
        connection: 'birko-test'
        userRepository: 'birko/Birko.Data.ElasticSearch'
        defaultVersionType: 'latest'
        downloadPath: '$(System.ArtifactsDirectory)'

    - task: NuGetToolInstaller@1

    - task: NuGetCommand@2
      inputs:
        restoreSolution: '$(solution)'

    - task: VSBuild@1
      inputs:
        solution: '$(solution)'
        msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
        platform: '$(buildPlatform)'
        configuration: '$(buildConfiguration)'

    - task: VSTest@2
      inputs:
        platform: '$(buildPlatform)'
        configuration: '$(buildConfiguration)'
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/55106
 
1385 次点击  
文章 [ 1 ]  |  最新文章 5 年前