简体   繁体   English

Azure DevOps - 将构建发布的工件部署到源

[英]Azure DevOps - Deploy Build Published Artifacts to Feed

Am newbie to Azure DevOps.我是 Azure DevOps 的新手。 Am using node build.js command to build my project.我正在使用 node build.js 命令来构建我的项目。 Using PublishBuildArtifacts Task I am able to publish artifacts and able to view the artifacts in build pipeline published artifacts.使用 PublishBuildArtifacts 任务,我能够发布工件并能够在构建管道发布的工件中查看工件。

I would like to deploy the copy of the published artifacts to the feed(feedname - deliverables).我想将已发布工件的副本部署到提要(提要名称 - 可交付成果)。

Please suggest the task to be performed.请建议要执行的任务。

- task: PublishBuildArtifacts@1
  inputs: 
    PathtoPublish: $(Build.ArtifactStagingDirectory)
    ArtifactName: 'MapUtilities'
- script: Published Artifact Successfully!
  displayName: 'Publish Artifact'

Based on your description, you need to publish the build artifacts to feed.根据您的描述,您需要发布构建工件以供馈送。

I suggest that you could use the task: Universal packages task我建议你可以使用这个任务: 通用包任务

Here is an example:下面是一个例子:

- task: UniversalPackages@0
  displayName: 'Universal publish'
  inputs:
    command: publish
    vstsFeedPublish: 'feedname'
    vstsFeedPackagePublish: test
    versionOption: custom
    versionPublish: 1.1.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM