X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fhicn%2Fhicn.yaml;h=399241b1f21d15309315fd02e582914cded78c7f;hb=6ee4be148e0f6722186a207473d4812c010002d6;hp=4ff90a7d0f7b0fcfb896e1dc85310cde491a155b;hpb=74c8ce7b8994429bb606adde677a7dc497fe2fd0;p=ci-management.git diff --git a/jjb/hicn/hicn.yaml b/jjb/hicn/hicn.yaml index 4ff90a7d0..399241b1f 100644 --- a/jjb/hicn/hicn.yaml +++ b/jjb/hicn/hicn.yaml @@ -23,6 +23,26 @@ - short - long +- project: + name: hicn-arm + jobs: + - 'hicn-arm-verify-{stream}-{os}' + - 'hicn-arm-merge-{stream}-{os}' + + project: 'hicn' + os: + - ubuntu1804: + repo-os-part: 'ubuntu-arm.bionic.main' + + stream: + - master: + branch: 'master' + repo-stream-part: 'master' + + type: + - short + - long + - project: name: hicn-misc jobs: @@ -34,12 +54,31 @@ repo-stream-part: 'master' os: ubuntu1604 +- project: + name: hicn-sysrepo + jobs: + - 'hicn-sysrepo-plugin-verify-{stream}' + - 'hicn-sysrepo-plugin-merge-{stream}' + project: 'hicn' + stream: + - master: + branch: 'master' + repo-stream-part: 'master' + os: ubuntu1804 + +- project: + name: hicn-view + views: + - project-view + project-name: hicn + - job-template: name: 'hicn-checkstyle-verify-{stream}' project-type: freestyle node: '{os}-us' concurrent: true + archive-artifacts: '**/tmp/hicn-failed-unittests/*/* **/core' build-discarder: daysToKeep: '{build-days-to-keep}' @@ -56,6 +95,10 @@ os: '{os}' - repo-name-parameter: repo-name: '{repo-stream-part}.ubuntu.xenial.main' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -113,9 +156,7 @@ !include-raw-escape: include-raw-hicn-checkstyle.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn33-new' - archive-artifacts: '/tmp/hicn-failed-unittests/*/* **/core' + - lf-infra-publish - naginator: rerun-unstable-builds: true max-failed-builds: 1 @@ -127,6 +168,71 @@ project-type: freestyle node: '{os}-us' concurrent: true + archive-artifacts: > + **/build/*.rpm, + **/build/*.deb + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + + build-discarder: + daysToKeep: '{build-days-to-keep}' + numToKeep: 100 + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - os-parameter: + os: '{os}' + - repo-name-parameter: + repo-name: '{repo-stream-part}.{repo-os-part}' + - stream-parameter: + stream: '{stream}' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - fdio-infra-wrappers: + build-timeout: 120 + + triggers: + - gerrit-trigger-checkstyle: + name: '{project}' + branch: '{branch}' + + builders: + - shell: + !include-raw-escape: + - include-raw-hicn-build.sh + + publishers: + - lf-infra-publish + +- job-template: + name: 'hicn-arm-verify-{stream}-{os}' + + project-type: freestyle + node: '{os}arm-us' + concurrent: true + archive-artifacts: > + **/build/*.deb + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false build-discarder: daysToKeep: '{build-days-to-keep}' @@ -145,6 +251,10 @@ repo-name: '{repo-stream-part}.{repo-os-part}' - stream-parameter: stream: '{stream}' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -167,14 +277,6 @@ - include-raw-hicn-build.sh publishers: - - archive: - artifacts: > - **/build/*.rpm, - **/build/*.deb - allow-empty: 'true' - fingerprint: false - only-if-success: true - default-excludes: false - fdio-infra-shiplogs: maven-version: 'mvn33-new' @@ -183,6 +285,106 @@ project-type: freestyle node: '{os}-us' + archive-artifacts: > + **/build/*.rpm, + **/build/*.deb + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + + build-discarder: + daysToKeep: '{build-days-to-keep}' + numToKeep: 100 + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - os-parameter: + os: '{os}' + - maven-project-parameter: + maven: 'mvn33-new' + - maven-exec: + maven-version: 'mvn33-new' + - stream-parameter: + stream: 'release' + - repo-name-parameter: + repo-name: '{repo-stream-part}.{repo-os-part}' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - gerrit-trigger-patch-merged: + name: '{project}' + branch: '{branch}' + + builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/root' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/root' + - maven-target: + maven-version: 'mvn33-new' + goals: '--version' + settings: 'hicn-settings' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + - shell: + !include-raw-escape: + - include-raw-hicn-checkstyle.sh + - shell: + !include-raw-escape: + - include-raw-hicn-build.sh + - provide-maven-settings: + settings-file: 'hicn-settings' + global-settings-file: 'global-settings' + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh + - shell: + !include-raw-escape: + - ../scripts/maven_push_functions.sh + - include-raw-hicn-maven-push.sh + + publishers: + - lf-infra-publish + - naginator: + rerun-unstable-builds: false + max-failed-builds: 1 + fixed-delay: 90 + +- job-template: + name: 'hicn-arm-merge-{stream}-{os}' + + project-type: freestyle + node: '{os}arm-us' + archive-artifacts: > + **/build/*.deb + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false build-discarder: daysToKeep: '{build-days-to-keep}' @@ -205,6 +407,10 @@ stream: 'release' - repo-name-parameter: repo-name: '{repo-stream-part}.{repo-os-part}' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -249,19 +455,204 @@ - shell: !include-raw-escape: - ../scripts/packagecloud_push.sh + - shell: + !include-raw-escape: + - ../scripts/maven_push_functions.sh + - include-raw-hicn-maven-push.sh publishers: - - archive: - artifacts: > - **/build/*.rpm, - **/build/*.deb - allow-empty: 'true' - fingerprint: false - only-if-success: true - default-excludes: false - fdio-infra-shiplogs: maven-version: 'mvn33-new' - naginator: rerun-unstable-builds: false max-failed-builds: 1 fixed-delay: 90 + +- project: + name: hicn-sonar + project: hicn + project-name: hicn + mvn-settings: hicn-settings + mvn-version: 'mvn33-new' + branch: master + build-node: ubuntu1604-basebuild-4c-4g + jobs: + - gerrit-maven-sonar + +- job-template: + name: 'hicn-sysrepo-plugin-verify-{stream}' + + project-type: freestyle + node: '{os}-us' + concurrent: true + archive-artifacts: > + **/build/*.rpm, + **/build/*.deb + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + + build-discarder: + daysToKeep: '{build-days-to-keep}' + numToKeep: 100 + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - os-parameter: + os: '{os}' + - repo-name-parameter: + repo-name: '{repo-stream-part}.ubuntu.bionic.main' + - stream-parameter: + stream: '{stream}' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - fdio-infra-wrappers: + build-timeout: 120 + + triggers: + - gerrit: + server-name: 'Primary' + trigger-on: + - comment-added-contains-event: + comment-contains-value: 'verify_sysrepo' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + + builders: + - shell: + !include-raw-escape: + - include-raw-hicn-sysrepo-build.sh + + publishers: + - lf-infra-publish + +- job-template: + name: 'hicn-sysrepo-plugin-merge-{stream}' + + project-type: freestyle + node: '{os}-us' + archive-artifacts: > + **/build/*.rpm, + **/build/*.deb + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + + build-discarder: + daysToKeep: '{build-days-to-keep}' + numToKeep: 100 + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - os-parameter: + os: '{os}' + - maven-project-parameter: + maven: 'mvn33-new' + - maven-exec: + maven-version: 'mvn33-new' + - stream-parameter: + stream: 'release' + - repo-name-parameter: + repo-name: '{repo-stream-part}.ubuntu.bionic.main' + - string: + name: ARCHIVE_ARTIFACTS + default: '{archive-artifacts}' + description: Artifacts to archive to the logs server. + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - gerrit: + server-name: 'Primary' + trigger-on: + - comment-added-contains-event: + comment-contains-value: 'merge_sysrepo' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + + builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/root' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/root' + - maven-target: + maven-version: 'mvn33-new' + goals: '--version' + settings: 'hicn-settings' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + - shell: + !include-raw-escape: + - include-raw-hicn-checkstyle.sh + - shell: + !include-raw-escape: + - include-raw-hicn-sysrepo-build.sh + - provide-maven-settings: + settings-file: 'hicn-settings' + global-settings-file: 'global-settings' + - shell: + !include-raw-escape: + - ../scripts/packagecloud_push.sh + - shell: + !include-raw-escape: + - ../scripts/maven_push_functions.sh + - include-raw-hicn-maven-push.sh + + publishers: + - lf-infra-publish + - naginator: + rerun-unstable-builds: false + max-failed-builds: 1 + fixed-delay: 90 + +- project: + name: hicn-info + project-name: hicn + jobs: + - gerrit-info-yaml-verify + build-node: centos7-builder-4c-4g + project: hicn + branch: master