云客户?
免费开始>
在MyJFrog中升级>
云的新功能>





版本相比

关键

  • 添加了这一行。
  • 这条线被删除了。
  • 格式已更改。

概述

摘录

一个DistributionRule资源是可应用于的目标规则集发布一个发布包使用JFrog发行版。


面板
标题 页面内容

目录表
maxLevel 2
minLevel 2


YAML模式

代码块
语言 yml
2022世界杯阿根廷预选赛赛程resources:—name:  type: DistributionRule配置:sourceDistribution:  serviceName:  #必需的,仅当与distribution1一起使用时。x siteName:  cityName:  countryCodes: -  - 

标签

名字

一个字母数字标识资源的字符串(允许下划线)。

类型

必须DistributionRule对于此资源类型。

配置

指定资源的所有配置选择。

标签

描述

必需的/可选
sourceDistribution 的名字。分布的集成 要求
siteName 使用通配符模式指定的Artifactory Edge节点站点名称。 要求
某个 使用通配符模式的Artifactory Edge Node城市名称。 要求
countryCodes 人工边缘节点的国家代码。 要求
带有通配符模式的Artifactory Edge Node服务名称。 仅在使用时需要分布v。1

环境变量

每当在步骤中使用DistributionRule时,就会自动提供一组环境变量,您可以在步骤中使用这些变量。

环境变量

描述

res_ < resource_name > _name 资源名称
res_ < resource_name > _servicename Artifactory Edge Node服务名称
res_ < resource_name > _sitename Artifactory Edge节点站点名称
res_ < resource_name > _cityname Artifactory Edge Node城市名称
res_ < resource_name > _countrycodes 人工边缘节点的国家代码

例子

代码块
语言 yml
2022世界杯阿根廷预选赛赛程资源:#构建信息的第一个构建bundle -名称:gosvc_promoted_build_info类型:BuildInfo配置:sourceArtifactory: myArtifactory buildName: svc_build buildNumber: 1 #构建信息的第二个构建bundle -名称:appl_promoted_build_info类型:BuildInfo配置:sourceArtifactory: demoArt buildName: backend_build buildNumber: 1 #发布bundle -名称:release_bundle类型:ReleaseBundle配置:sourceDistribution: myDist名称:demo_rb版本:v1.0.0 #相同发布包的签名版本-名称:signed_bundle类型:ReleaseBundle配置:sourceDistribution: myDist名称:demo_rb版本:v1.0.0 #发布规则-名称:distribution_rules类型:DistributionRule配置:sourceDistribution: myDist serviceName:“*”siteName:“*”cityName:“*”countryCodes: -“CN”-“GB”管道:-名称:demo_release_mgmt步骤:-名称:bundle类型:CreateReleaseBundle配置:releaseBundleName: demo_rb releaseBundleVersion:v1.0。${run_number} dryRun: false sign: false description: "一些随机测试描述" inputResources: - name: g2022世界杯阿根廷预选赛赛程osvc_promoted_build_info trigger: true - name: appl_promoted_build_info trigger: true outputResources: - name: release_bundle releaseNotes: syntax: markdown content: | ## Heading * Bullet * Points - name: sign type: SignReleaseBundle configuration: inputResources: - name: release_bundle outputResources: - name: release_bundle outputResources: - name: signed_bundle - name: distribute type: distributerreleeasebundle配置:dryRun: false input2022世界杯阿根廷预选赛赛程Resources:—name: signed_bundle—name: distribution_rules




版权所有©2023 JFrog Ltd.