diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2019-08-31 10:45:24 +0800 |
---|---|---|
committer | Hongjun Ni <hongjun.ni@intel.com> | 2019-08-31 10:53:07 +0800 |
commit | 9e6e85639de96d8261ad07b606608c178b1bb9cd (patch) | |
tree | b8e26edcf05122f9fbe86b60eccd097a71e24cd7 /jjb/udpi | |
parent | d230694687dc237ee68cd498791f66ba421316bd (diff) |
Add UDPI verify and merge jobs
Change-Id: I8dcb4e9e7c0656ec3ff2af931e5348746c6d5a5e
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'jjb/udpi')
-rw-r--r-- | jjb/udpi/udpi.yaml | 175 |
1 files changed, 173 insertions, 2 deletions
diff --git a/jjb/udpi/udpi.yaml b/jjb/udpi/udpi.yaml index c53f48267..2b0251835 100644 --- a/jjb/udpi/udpi.yaml +++ b/jjb/udpi/udpi.yaml @@ -1,10 +1,181 @@ --- +######################################################################### +# +# Copyright (c) 2019 Intel and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +######################################################################### + - project: - name: udpi-project-view - project-name: udpi + name: udpi + jobs: + - 'udpi-verify-{stream}-{os}' + - 'udpi-merge-{stream}-{os}' + + project: 'udpi' + os: + - ubuntu1604: + repo-os-part: 'ubuntu.xenial.main' + - centos7: + repo-os-part: 'centos7' + stream: + - master: + branch: 'master' + repo-stream-part: 'master' + +- project: + name: udpi-view views: - project-view + project-name: udpi + +- job-template: + name: 'udpi-verify-{stream}-{os}' + + project-type: freestyle + node: '{os}-us' + concurrent: true + archive-artifacts: > + **/build-root/build-package/*.rpm + **/build-root/build-package/*.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}' + - gerrit-trigger-patch-submitted: + name: '{project}' + branch: '{branch}' + + builders: + - config-file-provider: + files: + - file-id: '.packagecloud' + target: '/root' + - config-file-provider: + files: + - file-id: 'packagecloud_api' + target: '/root' + + publishers: + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + - naginator: + rerun-unstable-builds: false + max-failed-builds: 1 + fixed-delay: 90 +- job-template: + name: 'udpi-merge-{stream}-{os}' + + project-type: freestyle + node: '{os}-us' + archive-artifacts: > + **/build-root/build-package/*.rpm + **/build-root/build-package/*.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}' + - stream-parameter: + stream: '{stream}' + - 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' + publishers: + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + - naginator: + rerun-unstable-builds: false + max-failed-builds: 1 + fixed-delay: 90 - project: name: udpi-info project-name: udpi |