日期:太阳,19 Mar 2023 00:41:18 +0000 (UTC)消息- id: <1084253349.33418.1679186478014@confluence1e.prod-use1.jfrog.local>主题:导出自Confluence mime -版本:1.0内容-类型:多部分/相关;border ="----=_Part_33417_1157294590.1679186478013" ------=_Part_33417_1157294590.1679186478013 Content-Type: text/html;charset=UTF-8 Content-Transfer-Encoding: quote -printable Content-Location: file:///C:/exported.html DistributionRule

DistributionRule

= 20
= 20
= 20
= 20

概述

一个DistributionRul = eresource =是可以应用到的目标规则的集合分发发布包using= JFrog分布。


= 20
= 20
= 20
= 20
页面内容
= 20

= 20= 20

= 20
= 20
= 20
= 20
= 20
= 20
= 20

YAML模式

= 20
resource= s: - name: =09=09=09 type: =09=09=09DistributionRule配置:sourceDistribution: =09<分发集成名称> serviceName: =09=09=09=09 =09=09=09=09=09=09 =09# required,当与分发1一起使用时,只有l= y。x siteName: =09=09=09 cityName: =09=09=09 countryCodes: -  -  . x siteName: =09=09=09
= 20
= 20
= 20
= 20
= 20
= 20
= 20

标签

的名字

一个alphan =模标识资源的字符串(下划线为p= ercommitted)。

类型

必须Distribut = ionRule对于此资源类型。

配置

为资源指定所有配置select= ions。

标签

描述

必需的/可选
sourceDistribution 的名称分布集成 要求
siteName 使用通配符模式指定的Artifactory Edge Node站点nam= e。 要求
某个 使用通配符模式的Artifactory Edge Node cit= y名称。 要求
countryCodes Artifactory Edge Node cou= ntry代码。 要求
带有通配符模式的Artifactory Edge Node ser=副名称。 仅当与Distr= ibution v.1一起使用时需要
= 20
= 20
= 20
= 20
= 20
= 20

环境变量

只要在步骤中使用DistributionRule,就会自动提供一组en= virenvironment变量,您可以在you= r步骤中使用它们。

环境变量

描述

res_ < resource_name > _name 资源名称
res_ < resource_name > _servicename Artifactory Edge Node服务名=;
res_ < resource_name > _sitename = Artifactory边缘节点站点nam= e
res_ < resource_name > _cityname = Artifactory Edge Node cit= y name
res_ < resource_name > _countryc =常微分方程 Artifactory Edge Node cou= ntry代码
= 20
= 20
= 20
= 20
= 20
= 20

例子

= 20
resource= s: #第一次构建到捆绑包的构建信息-名称:gosvc_promoted_build_info类型:BuildInfo配置:sourceArtifactory: myArtifactory buildName: svc_build buildNumber: 1 #第二次构建到捆绑包的构建信息-名称:appl_promoted_build_info类型:BuildInfo配置:sourceArtifactory: demoArt buildName: backend_build buildNumber: 1 #发布捆绑包-名称:release_bundle类型:ReleaseBundle配置:sourceDistribution: myDist名称:demo_rb版本:v1.0.0 #相同发布包的签署版本- name: signed_bundle类型:ReleaseBundle配置:sourceDistribution: myDist名称:demo_rb版本:v1.0.0 #分发规则- name: distribution_rules类型:DistributionRule配置:sourceDistribution: myDist serviceName: "*" siteName: "*" cityName: "*" countryCodes: - "CN" - "GB" pipelines: - name: demo_release_mgmt steps: - name: bundle类型:CreateReleaseBundle配置:releaseBundleName: demo_rb releaseBundleVersion:v1.0。${run_number} dryRun: false sign: false description: "some random test description" input2022世界杯阿根廷预选赛赛程Resources: - name: gosvc_promoted_build_info trigger: true - name: appl_promoted_build_info trigger: true outputResources: - name: release_bundle releaseNotes: syntax: markdown content: | ## Heading * Bullet * Points =20 - name: sign type: SignReleaseBundle configuration: inputResources: - name: release_bundle outputResources: - name: signed_bundle - name:分发类型:DistributeReleaseBundle配置:dryRun: false inputResources:—na2022世界杯阿根廷预选赛赛程me: signed_bundle—name: distribution_rules
= 20
= 20
= 20
= 20
= 20
= 20
= 20


= 20
= 20
= 20
= 20
= 20
= 20


= 20
= 20
= 20
= 20
= 20
= 20


= 20
= 20
= 20
——= _Part_33417_1157294590.1679186478013