blob: cca772056907f9e2ebd07f37d49bccfe276b9185 [file] [log] [blame]
Lott, Christopher (cl778h)42453bd2020-03-25 16:33:06 -04001---
2# Copyright (c) 2020 AT&T Intellectual Property.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Lott, Christopher (cl778h)42453bd2020-03-25 16:33:06 -040016- builder:
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040017 # provisions files required by package_cloud ruby gem
Lott, Christopher (cl778h)42453bd2020-03-25 16:33:06 -040018 name: oran-packagecloud-file-provider
19 builders:
20 - config-file-provider:
21 files:
22 - file-id: ".packagecloud"
23 target: "$HOME/.packagecloud"
24 - config-file-provider:
25 files:
26 - file-id: "packagecloud_api"
27 target: "$HOME/packagecloud_api"
28
29- builder:
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040030 # Runs shell script to push packages to PackageCloud.
31 # {build-dir} is directory with deb/rpm files to push
Lott, Christopher (cl778h)42453bd2020-03-25 16:33:06 -040032 # {packagecloud-account} is PackageCloud account ID; example: oran
33 # {packagecloud-repo} is PackageCloud repository; example: master, staging
34 # {debian-distribution-versions} is list of DEB package distro/version strings
35 # separated by space; example: ubuntu/bionic debian/stretch
36 # {rpm-distribution-versions} is list of RPM package distro/version strings
37 # separated by space; example: el/4 el/5
38 name: oran-packagecloud-push
39 builders:
40 - inject:
41 properties-content: |
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040042 BUILD_DIR={build-dir}
Lott, Christopher (cl778h)42453bd2020-03-25 16:33:06 -040043 PACKAGECLOUD_ACCOUNT={packagecloud-account}
44 PACKAGECLOUD_REPO={packagecloud-repo}
45 DEBIAN_DISTRIBUTION_VERSIONS={debian-distribution-versions}
46 RPM_DISTRIBUTION_VERSIONS={rpm-distribution-versions}
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040047 - shell: !include-raw-escape: ../shell/packagecloud-push.sh