YAML模式
2022世界杯阿根廷预选赛赛程resources:—name:type: DistributionRule configuration: sourceDistribution: <分发集成名称> serviceName: #必选,仅当与分发1一起使用时。x siteName: cityName: countryCodes: - - . x siteName: cityName: countryCodes: - - . x
环境变量
只要在步骤中使用DistributionRule,就会自动提供一组环境变量供您在步骤中使用。
环境变量 |
描述 |
---|---|
res_ < resource_name > _name | 资源名称 |
res_ < resource_name > _servicename | Artifactory Edge Node服务名称 |
res_ < resource_name > _sitename | Artifactory Edge Node站点名称 |
res_ < resource_name > _cityname | Artifactory边缘节点城市名称 |
res_ < resource_name > _countrycodes | Artifactory边缘节点国家代码 |
例子
- 这个例子需要一个Artifactory集成而且分布的集成.
- 本例的管线DSL可在这个存储库在JFrogGitHub帐户。
2022世界杯阿根廷预选赛赛程资源:#第一次构建到捆绑的构建信息-名称: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 - name: sign type: SignReleaseBundle configuration: inputResources: - name: release_bundle outputResources: - name: signed_bundle - name: distribution type: DistributeReleaseBundle configuration:dryRun: false input2022世界杯阿根廷预选赛赛程Resources:—name: signed_bundle—name: distribution_rules