diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-01-23 12:03:16 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-01-24 10:57:36 +0100 |
commit | 94719c33bd7f1f6841f3761a857df55241d72aa5 (patch) | |
tree | 29827838146cd68908e0e365ff14db7bb28fcbc9 /jjb/cicn | |
parent | 5c32a0ffcffa1cb0dfc017b8b2fe5a2e9759af29 (diff) |
Add configuration for pushing cicn artifacts to packagecloud.
Add support for pushing ubuntu 18.04 packages on nexus.fd.io.
Change-Id: I2460913c06b5800bdae9a00e8012efb9bca9c779
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'jjb/cicn')
-rw-r--r-- | jjb/cicn/cicn.yaml | 147 | ||||
-rw-r--r-- | jjb/cicn/include-raw-cicn-maven-push.sh | 18 |
2 files changed, 162 insertions, 3 deletions
diff --git a/jjb/cicn/cicn.yaml b/jjb/cicn/cicn.yaml index 92ca0969f..5c52fea76 100644 --- a/jjb/cicn/cicn.yaml +++ b/jjb/cicn/cicn.yaml @@ -306,6 +306,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'release' scm: - gerrit-trigger-scm: @@ -585,6 +587,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'release' scm: - gerrit-trigger-scm: @@ -608,6 +612,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -625,6 +637,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -859,6 +874,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -879,6 +896,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -896,6 +921,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -987,6 +1015,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1007,6 +1037,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1024,6 +1062,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -1116,6 +1157,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1136,6 +1179,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1153,6 +1204,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -1244,6 +1298,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1264,6 +1320,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1281,7 +1345,10 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh - + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh + publishers: - archive: artifacts: > @@ -1372,6 +1439,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1392,6 +1461,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1409,6 +1486,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -1500,6 +1580,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1520,6 +1602,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1537,6 +1627,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -1628,6 +1721,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1646,6 +1741,14 @@ - timed: '@daily' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1663,6 +1766,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -1754,6 +1860,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1774,6 +1882,14 @@ result: 'failure' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1791,6 +1907,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -1886,6 +2005,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -1904,6 +2025,14 @@ - timed: '@daily' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -1921,6 +2050,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: @@ -2135,6 +2267,8 @@ maven-version: 'mvn33-new' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: 'master' scm: - gerrit-trigger-scm: @@ -2153,6 +2287,14 @@ - timed: '@daily' builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/home/jenkins/.packagecloud' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/home/jenkins/packagecloud_api' - maven-target: maven-version: 'mvn33-new' goals: '--version' @@ -2170,6 +2312,9 @@ !include-raw-escape: - ../scripts/maven_push_functions.sh - include-raw-cicn-maven-push.sh + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh publishers: - archive: diff --git a/jjb/cicn/include-raw-cicn-maven-push.sh b/jjb/cicn/include-raw-cicn-maven-push.sh index 0d476b581..6ce3b2c06 100644 --- a/jjb/cicn/include-raw-cicn-maven-push.sh +++ b/jjb/cicn/include-raw-cicn-maven-push.sh @@ -10,7 +10,7 @@ GROUP_ID="io.fd.${PROJECT}" BASEURL="${NEXUSPROXY}/content/repositories/fd.io." BASEREPOID='fdio-' -if [ "${OS}" == "ubuntu1404" ]; then +if [ "${OS}" == "ubuntu1604" ]; then # Find the files JARS=$(find . -type f -iname '*.jar') DEBS=$(find . -type f -iname '*.deb') @@ -23,8 +23,15 @@ if [ "${OS}" == "ubuntu1404" ]; then do push_deb "$i" done -elif [ "${OS}" == "ubuntu1604" ]; then +elif [ "${OS}" == "ubuntu1804" ]; then + # Find the files + JARS=$(find . -type f -iname '*.jar') DEBS=$(find . -type f -iname '*.deb') + for i in $JARS + do + push_jar "$i" + done + for i in $DEBS do push_deb "$i" @@ -38,5 +45,12 @@ elif [ "${OS}" == "centos7" ]; then do push_rpm "$i" done +elif [ "${OS}" == "opensuse" ]; then + # Find the files + RPMS=$(find . -type f -iname '*.rpm') + for i in $RPMS + do + push_rpm "$i" + done fi # vim: ts=4 sw=4 sts=4 et ft=sh : |