diff options
-rwxr-xr-x | docker/scripts/dbld_lfit_requirements.sh | 10 | ||||
-rw-r--r-- | docker/scripts/lib_apt.sh | 4 | ||||
-rw-r--r-- | docker/scripts/lib_common.sh | 2 | ||||
-rw-r--r-- | docker/scripts/lib_dnf.sh | 14 | ||||
-rw-r--r-- | docker/scripts/lib_vpp.sh | 2 | ||||
-rw-r--r-- | docker/scripts/lib_yum.sh | 5 | ||||
-rw-r--r-- | jjb/cicn/cicn.yaml | 41 | ||||
-rw-r--r-- | jjb/global-macros.yaml | 72 | ||||
-rw-r--r-- | jjb/hicn/hicn.yaml | 58 | ||||
-rw-r--r-- | jjb/scripts/post_build_deploy_archives.sh | 57 | ||||
-rw-r--r-- | jjb/scripts/setup_executor_env.sh | 4 | ||||
-rw-r--r-- | jjb/vpp/vpp.yaml | 259 |
12 files changed, 330 insertions, 198 deletions
diff --git a/docker/scripts/dbld_lfit_requirements.sh b/docker/scripts/dbld_lfit_requirements.sh index 7e58ac87c..918a6ff14 100755 --- a/docker/scripts/dbld_lfit_requirements.sh +++ b/docker/scripts/dbld_lfit_requirements.sh @@ -60,11 +60,5 @@ perl -i -p -e "s/$jenkins_uid\:/0\:/g" /etc/passwd cp $DOCKER_CIMAN_ROOT/global-jjb/jenkins-init-scripts/lf-env.sh /root chmod 644 /root/lf-env.sh -# Install lftools[openstack] -- from global-jjb/shell/python-tools-install.sh -pinned_version="" -if [ "$OS_NAME" = "debian-9" } ; then - # debian-9 does not have osc-lib==2.2.0 available breaking docker image - # build so pin the version of lftools which does not pin osc-lib==2.2.0 - pinned_version="==0.34.1" -fi -python3 -m pip install --no-deps lftools[openstack]$pinned_version +# Install lftools for log / artifact upload. +python3 -m pip install lftools diff --git a/docker/scripts/lib_apt.sh b/docker/scripts/lib_apt.sh index d2aa70db4..0c3711534 100644 --- a/docker/scripts/lib_apt.sh +++ b/docker/scripts/lib_apt.sh @@ -112,6 +112,8 @@ ENV PATH=$PATH:$DOCKER_CIMAN_ROOT/docker/scripts # facter # python3-pip # python3-venv +# for lftools: +# xmlstarlet # from global-jjb/packer/provision/baseline.sh: # unzip # xz-utils @@ -147,6 +149,7 @@ RUN apt-get update -q \\ enchant \\ emacs \\ facter \\ + gawk \\ gfortran \\ git \\ git-review \\ @@ -173,6 +176,7 @@ RUN apt-get update -q \\ tree \\ vim \\ wget \\ + xmlstarlet \\ xz-utils \\ && rm -r /var/lib/apt/lists/* diff --git a/docker/scripts/lib_common.sh b/docker/scripts/lib_common.sh index 424aa7858..17dcc144a 100644 --- a/docker/scripts/lib_common.sh +++ b/docker/scripts/lib_common.sh @@ -179,7 +179,7 @@ export EXECUTOR_CLASS_ARCH="$EXECUTOR_DEFAULT_CLASS-$OS_ARCH" export EXECUTOR_CLASSES="$EXECUTOR_DEFAULT_CLASS csit csit_dut csit_shim" export EXECUTOR_ARCHS="aarch64 x86_64" declare -A EXECUTOR_CLASS_ARCH_OS_NAMES -EXECUTOR_CLASS_ARCH_OS_NAMES["builder-aarch64"]="centos-7 centos-8 ubuntu-18.04 ubuntu-20.04" +EXECUTOR_CLASS_ARCH_OS_NAMES["builder-aarch64"]="centos-8 ubuntu-18.04 ubuntu-20.04" EXECUTOR_CLASS_ARCH_OS_NAMES["builder-x86_64"]="centos-7 centos-8 debian-9 debian-10 ubuntu-18.04 ubuntu-20.04" EXECUTOR_CLASS_ARCH_OS_NAMES["csit-aarch64"]="ubuntu-18.04" EXECUTOR_CLASS_ARCH_OS_NAMES["csit-x86_64"]="ubuntu-18.04" diff --git a/docker/scripts/lib_dnf.sh b/docker/scripts/lib_dnf.sh index 41915e154..639e7f073 100644 --- a/docker/scripts/lib_dnf.sh +++ b/docker/scripts/lib_dnf.sh @@ -77,6 +77,9 @@ COPY . . # Install baseline packages (minimum build & utils). # # ci-management global-jjb requirements: +# for lftools: +# libxml2-devel +# xmlstarlet # for lf-env.sh: # facter # from global-jjb/packer/provision/baseline.sh: @@ -101,13 +104,16 @@ COPY . . # lapack-devel for python numpy/scipy (CSIT/aarch64) # openblas-devel for python numpy/scipy (CSIT/aarch64) # -RUN dnf update -y \\ +RUN export LC_ALL=C.UTF8 \\ + && dnf update -y \\ && dnf install -y \\ dnf-plugins-core \\ epel-release \\ - && dnf config-manager --set-enabled PowerTools --set-enabled epel \\ + && dnf config-manager --set-enabled \$(dnf repolist all 2> /dev/null | grep -i powertools | cut -d' ' -f1) --set-enabled epel \\ + && dnf repolist all \\ && dnf clean all -RUN dnf update -y \\ +RUN export LC_ALL=C.UTF8 \\ + && dnf update -y \\ && dnf install -y \\ dnf-utils \\ doxygen \\ @@ -124,6 +130,7 @@ RUN dnf update -y \\ lapack-devel \\ libffi-devel \\ libpcap-devel \\ + libxml2-devel \\ make \\ mawk \\ mock \\ @@ -140,6 +147,7 @@ RUN dnf update -y \\ unzip \\ vim \\ wget \\ + xmlstarlet \\ xz \\ && dnf clean all diff --git a/docker/scripts/lib_vpp.sh b/docker/scripts/lib_vpp.sh index 38245c7b7..72bec646f 100644 --- a/docker/scripts/lib_vpp.sh +++ b/docker/scripts/lib_vpp.sh @@ -81,7 +81,7 @@ docker_build_setup_vpp() { # Branches must be listed in chronological order -- oldest stable branch # first and master last. declare -A VPP_BRANCHES -VPP_BRANCHES["centos-7"]="stable/1908 stable/2001 stable/2005 stable/2009 master" +VPP_BRANCHES["centos-7"]="stable/1908 stable/2001 stable/2005 stable/2009" VPP_BRANCHES["centos-8"]="stable/2009 master" VPP_BRANCHES["debian-9"]="stable/2009 master" VPP_BRANCHES["debian-10"]="stable/2009 master" diff --git a/docker/scripts/lib_yum.sh b/docker/scripts/lib_yum.sh index 95a728e6b..89ac3a691 100644 --- a/docker/scripts/lib_yum.sh +++ b/docker/scripts/lib_yum.sh @@ -70,6 +70,9 @@ COPY . . # Install baseline packages (minimum build & utils). # # ci-management global-jjb requirements: +# for lftools: +# libxml2-devel +# xmlstarlet # for lf-env.sh: # facter # from global-jjb/packer/provision/baseline.sh: @@ -117,6 +120,7 @@ RUN yum update -y \\ liblapack-devel \\ libopenblas-devel \\ libpcap-devel \\ + libxml2-devel \\ make \\ mawk \\ mock \\ @@ -131,6 +135,7 @@ RUN yum update -y \\ unzip \\ vim \\ wget \\ + xmlstarlet \\ xz \\ && yum clean all diff --git a/jjb/cicn/cicn.yaml b/jjb/cicn/cicn.yaml index d526ea6f3..5f618c627 100644 --- a/jjb/cicn/cicn.yaml +++ b/jjb/cicn/cicn.yaml @@ -1,3 +1,16 @@ +# Copyright (c) 2020 Cisco 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: cicn-libparc-x86_64 @@ -96,10 +109,6 @@ repo-name: "{repo-stream-part}.{repo-os-part}" - stream-parameter: stream: "hicn" - - string: - name: ARCHIVE_ARTIFACTS - default: "{archive-artifacts}" - description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -144,8 +153,7 @@ - ../scripts/packagecloud_push.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn33-new" + - fdio-infra-publish - job-template: name: "cicn-libparc-verify-{stream}-{os}-{executor-arch}" @@ -167,10 +175,6 @@ branch: "{branch}" - os-parameter: os: "{os}" - - string: - name: ARCHIVE_ARTIFACTS - default: "{archive-artifacts}" - description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -192,8 +196,7 @@ - include-raw-cicn-libparc-build.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn33-new" + - fdio-infra-publish - job-template: name: "cicn-viper-merge-{stream}-{os}-{executor-arch}" @@ -222,10 +225,6 @@ repo-name: "{repo-stream-part}.{repo-os-part}" - stream-parameter: stream: "hicn" - - string: - name: ARCHIVE_ARTIFACTS - default: "{archive-artifacts}" - description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -273,8 +272,7 @@ - ../scripts/packagecloud_push.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn33-new" + - fdio-infra-publish - job-template: name: "cicn-viper-verify-{stream}-{os}-{executor-arch}" @@ -296,10 +294,6 @@ branch: "{branch}" - os-parameter: os: "{os}" - - string: - name: ARCHIVE_ARTIFACTS - default: "{archive-artifacts}" - description: Artifacts to archive to the logs server. scm: - gerrit-trigger-scm: @@ -321,8 +315,7 @@ - include-raw-cicn-viper-build.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn33-new" + - fdio-infra-publish - project: name: cicn-info diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index 66a70ba48..f4b009afe 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -25,6 +25,14 @@ description: "Architecture parameter" - parameter: + name: archive-artifacts-parameter + parameters: + - string: + name: ARCHIVE_ARTIFACTS + default: '{artifacts}' + description: "Artifacts to archive on the log server." + +- parameter: name: compiler-parameter parameters: - string: @@ -187,6 +195,14 @@ name: TOPO default: '{topo}' description: "Topology parameter" + +- parameter: + name: workspace-archive-artifacts-parameter + parameters: + - string: + name: WS_ARCHIVE_ARTIFACTS + default: '{artifacts}' + description: "Artifacts to archive in $WORKSPACE/archives." # [end] Keep 'parameter' entries ordered alphabetically, please. #### SCMS @@ -635,6 +651,34 @@ - recipients - publisher: + name: fdio-infra-publish + # macro to finish up a build. + # + # Handles the following: + # - Shipping logs to Nexus or S3 logs repository + # - Cleanup workspace + publishers: + - postbuildscript: + builders: + - role: BOTH + build-on: + - ABORTED + - FAILURE + - NOT_BUILT + - SUCCESS + - UNSTABLE + build-steps: + - shell: !include-raw: scripts/post_build_deploy_archives.sh + - fdio-infra-ship-logs + mark-unstable-if-failed: true + - workspace-cleanup: + exclude: + # Do not clean up *.jenkins-trigger files for jobs that use a + # properties file as input for triggering another build. + - "**/*.jenkins-trigger" + fail-build: false + +- publisher: name: fdio-infra-shiplogs # To archive things, the job will need to create an "archives" directory in # the workspace and this macro will handle copying the contents of the @@ -719,6 +763,34 @@ num-to-keep: '{build-num-to-keep}' - builder: + name: fdio-infra-ship-logs + builders: + # Ensure no pre-existing .netrc files are overriding logs config + - lf-provide-maven-settings-cleanup + - config-file-provider: + files: + - file-id: "jenkins-log-archives-settings" + variable: "SETTINGS_FILE" + - conditional-step: + condition-kind: regex-match + regex: "^.*logs-s3.*" + label: $S3_BUCKET + on-evaluation-failure: dont-run + steps: + - config-file-provider: + files: + - file-id: "jenkins-s3-log-ship" + target: $HOME/.aws/credentials + - lf-infra-create-netrc: + server-id: logs + - shell: !include-raw: + - ../global-jjb/shell/logs-deploy.sh + - shell: !include-raw: + - ../global-jjb/shell/logs-clear-credentials.sh + - description-setter: + regexp: "(^(Nexus|S3) build logs: .*)" + +- builder: name: packer-validate builders: - config-file-provider: diff --git a/jjb/hicn/hicn.yaml b/jjb/hicn/hicn.yaml index 61bb68b3a..665ae22fd 100644 --- a/jjb/hicn/hicn.yaml +++ b/jjb/hicn/hicn.yaml @@ -1,3 +1,16 @@ +# Copyright (c) 2020 Cisco 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: hicn-x86_64 @@ -197,10 +210,8 @@ os: "{os}" - 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. + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -258,8 +269,7 @@ include-raw-hicn-checkstyle.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn36" + - fdio-infra-publish - naginator: rerun-unstable-builds: true max-failed-builds: 1 @@ -289,10 +299,8 @@ 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. + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -314,8 +322,7 @@ - include-raw-hicn-build.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn36" + - fdio-infra-publish - naginator: rerun-unstable-builds: false max-failed-builds: 2 @@ -348,10 +355,8 @@ stream: "{repository-name}" - 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. + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -398,8 +403,7 @@ - include-raw-hicn-maven-push.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn36" + - fdio-infra-publish - naginator: rerun-unstable-builds: false max-failed-builds: 1 @@ -443,10 +447,8 @@ 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. + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -476,8 +478,7 @@ - include-raw-hicn-extras-build.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn36" + - fdio-infra-publish - naginator: rerun-unstable-builds: false max-failed-builds: 2 @@ -510,10 +511,8 @@ stream: "hicn" - 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. + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -566,8 +565,7 @@ - include-raw-hicn-maven-push.sh publishers: - - fdio-infra-shiplogs: - maven-version: "mvn36" + - fdio-infra-publish - naginator: rerun-unstable-builds: false max-failed-builds: 1 diff --git a/jjb/scripts/post_build_deploy_archives.sh b/jjb/scripts/post_build_deploy_archives.sh new file mode 100644 index 000000000..3f68e842b --- /dev/null +++ b/jjb/scripts/post_build_deploy_archives.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +# Copyright (c) 2020 Cisco 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. + +echo "---> jjb/scripts/post_build_deploy_archives.sh" + +set +e # Do not affect the build result if some part of archiving fails. +WS_ARCHIVES_DIR="$WORKSPACE/archives" +BUILD_ENV_LOG="$WS_ARCHIVES_DIR/_build-enviroment-variables.log" + +# Log the build environment variables +echo "Logging build environment variables in '$BUILD_ENV_LOG'..." +mkdir -p $WS_ARCHIVES_DIR +env > $BUILD_ENV_LOG + +echo "WS_ARCHIVE_ARTIFACTS = '$WS_ARCHIVE_ARTIFACTS'" +if [ ! -z "${WS_ARCHIVE_ARTIFACTS}" ]; then + pushd $WORKSPACE + shopt -s globstar # Enable globstar to copy archives + archive_artifacts=$(echo ${WS_ARCHIVE_ARTIFACTS}) + for file in $archive_artifacts; do + if [ -f "$file" ] ; then + echo "Archiving '$file'..." + mkdir -p $WS_ARCHIVES_DIR/$(dirname $file) + mv $file $WS_ARCHIVES_DIR/$file + else + echo "Skipping '$file' which is not a file:" + ls -ld $file + fi + done + shopt -u globstar # Disable globstar once archives are copied + popd + # Clean up failed 'make test' archive directories for better + # navigation and legibility of log directories. + if [ -d "$WS_ARCHIVES_DIR/tmp" ] ; then + mv $WS_ARCHIVES_DIR/tmp/* $WS_ARCHIVES_DIR + rmdir $WS_ARCHIVES_DIR/tmp + fi +fi + +# find and gzip any 'text' files +find $WS_ARCHIVES_DIR -type f -print0 \ + | xargs -0r file \ + | egrep -e ':.*text.*' \ + | cut -d: -f1 \ + | xargs -d'\n' -r gzip diff --git a/jjb/scripts/setup_executor_env.sh b/jjb/scripts/setup_executor_env.sh index 08b37873c..2bfbe8b32 100644 --- a/jjb/scripts/setup_executor_env.sh +++ b/jjb/scripts/setup_executor_env.sh @@ -49,6 +49,10 @@ elif [ "$OS_ID" == "centos" ] ; then fi echo "$long_line" +echo "Python3 package list:" +pip3 list 2>/dev/null | column -t || true + +echo "$long_line" echo "Executor Downloads cache '$downloads_cache':" ls -lh "$downloads_cache" || true echo "$long_line" diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index 93f1157aa..d46bb1cc6 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -1,3 +1,16 @@ +# Copyright (c) 2020 Cisco 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 DEFINITIONS # @@ -56,6 +69,7 @@ - 'vpp-merge-{stream}-{os}-{executor-arch}' project: 'vpp' make-parallel-jobs: '4' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' stream: - master: branch: 'master' @@ -91,6 +105,7 @@ - 'vpp-merge-{stream}-{os}-{executor-arch}' project: 'vpp' make-parallel-jobs: '4' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' stream: - '1908': branch: 'stable/1908' @@ -133,6 +148,7 @@ - 'vpp-merge-{stream}-{os}-{executor-arch}' project: 'vpp' make-parallel-jobs: '4' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' stream: - master: branch: 'master' @@ -171,6 +187,7 @@ - 'vpp-debug-verify-{stream}-{os}-{executor-arch}' project: 'vpp' make-parallel-jobs: '4' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' stream: - master: branch: 'master' @@ -207,6 +224,7 @@ # comment-trigger-value: 'vpp-beta-merge' # project: 'vpp' # make-parallel-jobs: '4' +# archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' # stream: # - master: # branch: 'master' @@ -251,6 +269,7 @@ - 'vpp-merge-{stream}-{os}-{executor-arch}' project: 'vpp' make-parallel-jobs: '16' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' stream: - master: branch: 'master' @@ -302,6 +321,7 @@ # # project: 'vpp' # make-parallel-jobs: '16' +# archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' # stream: # - master: # branch: 'master' @@ -338,6 +358,7 @@ comment-trigger-value: 'beta-merge' project: 'vpp' make-parallel-jobs: '16' + archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' stream: - master: branch: 'master' @@ -461,7 +482,6 @@ project-type: freestyle node: 'builder-{os}-prod-{executor-arch}' concurrent: true - archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' build-discarder: daysToKeep: '{build-days-to-keep}' @@ -469,17 +489,20 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter: + refspec: '{branch-head-refspec}' - os-parameter: os: '{os}' + - project-parameter: + project: '{project}' - repo-name-parameter: repo-name: '{repo-stream-part}.ubuntu.bionic.main' - - gerrit-refspec-parameter: - refspec: '{branch-head-refspec}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -565,8 +588,8 @@ - ../scripts/vpp/commitmsg.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish + # [end] VPP-CHECKSTYLE-VERIFY JOB TEMPLATE # VPP-VERIFY JOB TEMPLATE @@ -576,7 +599,6 @@ project-type: freestyle node: 'builder-{os}-prod-{executor-arch}' concurrent: true - archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' build-discarder: daysToKeep: '{build-days-to-keep}' @@ -584,25 +606,24 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter: + refspec: '{branch-head-refspec}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' + - project-parameter: + project: '{project}' - 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. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - gerrit-refspec-parameter: - refspec: '{branch-head-refspec}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -634,8 +655,7 @@ - ../scripts/vpp/build.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish # [end] VPP-VERIFY JOB TEMPLATE # VPP-DEBUG-VERIFY JOB TEMPLATE @@ -645,7 +665,6 @@ project-type: freestyle node: 'builder-{os}-prod-{executor-arch}' concurrent: true - archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' build-discarder: daysToKeep: '{build-days-to-keep}' @@ -653,21 +672,24 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter: + refspec: '{branch-head-refspec}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: 'ubuntu1804' + - project-parameter: + project: '{project}' - repo-name-parameter: repo-name: '{repo-stream-part}.ubuntu.bionic.main' - stream-parameter: stream: '{stream}' - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - gerrit-refspec-parameter: - refspec: '{branch-head-refspec}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -701,8 +723,7 @@ - ../scripts/vpp/debug-build.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish # [end] VPP-DEBUG-VERIFY JOB TEMPLATE # VPP-MERGE JOB TEMPLATE @@ -718,27 +739,22 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' - - maven-project-parameter: - maven: 'mvn33-new' - - maven-exec: - maven-version: 'mvn33-new' - - stream-parameter: - stream: '{stream}' + - project-parameter: + project: '{project}' - 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. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' + - stream-parameter: + stream: '{stream}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -785,8 +801,7 @@ - ../scripts/packagecloud_push.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish # [end] VPP-MERGE JOB TEMPLATE # VPP-BETA-VERIFY JOB TEMPLATE @@ -796,7 +811,6 @@ project-type: freestyle node: 'builder-{os}-prod-{executor-arch}' concurrent: true - archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' build-discarder: daysToKeep: '{build-days-to-keep}' @@ -804,25 +818,24 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter: + refspec: '{branch-head-refspec}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' + - project-parameter: + project: '{project}' - 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. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - gerrit-refspec-parameter: - refspec: '{branch-head-refspec}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -855,8 +868,7 @@ - ../scripts/vpp/build.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish # [end] VPP-BETA-VERIFY JOB TEMPLATE # VPP-BETA-MERGE JOB TEMPLATE @@ -872,27 +884,22 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' - - maven-project-parameter: - maven: 'mvn33-new' - - maven-exec: - maven-version: 'mvn33-new' - - stream-parameter: - stream: '{stream}' + - project-parameter: + project: '{project}' - 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. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' + - stream-parameter: + stream: '{stream}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -934,16 +941,12 @@ - shell: !include-raw-escape: - ../scripts/vpp/build.sh - - provide-maven-settings: - settings-file: 'vpp-settings' - global-settings-file: 'global-settings' - shell: !include-raw-escape: - ../scripts/packagecloud_push.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish # [end] VPP-BETA-MERGE JOB TEMPLATE # VPP-GCC-VERIFY JOB TEMPLATE @@ -953,7 +956,6 @@ project-type: freestyle node: 'builder-{os}-prod-{executor-arch}' concurrent: true - archive-artifacts: '/tmp/vpp-failed-unittests/*/* **/core' build-discarder: daysToKeep: '{build-days-to-keep}' @@ -961,25 +963,24 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter: + refspec: '{branch-head-refspec}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' + - project-parameter: + project: '{project}' - 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. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' - - gerrit-refspec-parameter: - refspec: '{branch-head-refspec}' + - workspace-archive-artifacts-parameter: + artifacts: '{archive-artifacts}' scm: - gerrit-trigger-scm: @@ -1011,8 +1012,7 @@ - ../scripts/vpp/gcc-build.sh publishers: - - fdio-infra-shiplogs: - maven-version: 'mvn36' + - fdio-infra-publish # [end] VPP-GCC-VERIFY JOB TEMPLATE # VPP-CSIT-VERIFY-DEVICE JOB TEMPLATE @@ -1038,27 +1038,26 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' + - archive-artifacts-parameter: + artifacts: '{archive-artifacts}' + - gerrit-csit-refspec-parameter + - gerrit-event-comment-text-parameter + - gerrit-event-type-parameter - gerrit-parameter: branch: '{branch}' + - gerrit-refspec-parameter + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' + - project-parameter: + project: '{project}' - repo-name-parameter: repo-name: '{repo-stream-part}.ubuntu.bionic.main' - - gerrit-refspec-parameter - - gerrit-event-type-parameter - - gerrit-event-comment-text-parameter - - gerrit-csit-refspec-parameter - stream-parameter: stream: '{stream}' - - string: - name: ARCHIVE_ARTIFACTS - default: '{archive-artifacts}' - description: Artifacts to archive to the logs server. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' scm: - gerrit-trigger-scm: @@ -1127,31 +1126,30 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' + - archive-artifacts-parameter: + artifacts: '{archive-artifacts}' + - csit-perf-trial-duration-parameter: + csit-perf-trial-duration: "10.0" + - csit-perf-trial-multiplicity-parameter: + csit-perf-trial-multiplicity: "5" + - gerrit-csit-refspec-parameter + - gerrit-event-comment-text-parameter + - gerrit-event-type-parameter + - gerrit-refspec-parameter - gerrit-parameter: branch: '{branch}' + - make-parallel-jobs-parameter: + make-parallel-jobs: '{make-parallel-jobs}' - os-parameter: os: '{os}' + - project-parameter: + project: '{project}' - repo-name-parameter: repo-name: '{repo-stream-part}.ubuntu.bionic.main' - - gerrit-refspec-parameter - - gerrit-event-type-parameter - - gerrit-event-comment-text-parameter - - gerrit-csit-refspec-parameter - - csit-perf-trial-duration-parameter: - csit-perf-trial-duration: "10.0" - - csit-perf-trial-multiplicity-parameter: - csit-perf-trial-multiplicity: "5" - stream-parameter: stream: '{stream}' - - string: - name: ARCHIVE_ARTIFACTS - default: '{archive-artifacts}' - description: Artifacts to archive to the logs server. - - make-parallel-jobs-parameter: - make-parallel-jobs: '{make-parallel-jobs}' scm: - gerrit-trigger-scm: @@ -1188,7 +1186,8 @@ - robot-report: output-path: 'csit_current/0/' - - lf-infra-publish + - fdio-infra-shiplogs: + maven-version: 'mvn36' # [end] VPP-CSIT-VERIFY-PERF JOB TEMPLATE # VPP-CSIT-VERIFY-API-CRC JOB TEMPLATE @@ -1198,7 +1197,6 @@ project-type: freestyle node: '{os}-us' concurrent: true - archive-artifacts: '' latest-only: false build-discarder: @@ -1207,23 +1205,22 @@ artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' + # Please keep parameters in alphabetical order parameters: - - project-parameter: - project: '{project}' + - archive-artifacts-parameter: + artifacts: '{archive-artifacts}' + # Not sure whether not failing has any useful usage, + # but it does not hurt to have some flexibility for future. + - csit-fail-on-crc-mismatch-parameter: + fail-on-crc-mismatch: 'True' + - gerrit-csit-refspec-parameter - gerrit-parameter: branch: '{branch}' - gerrit-refspec-parameter - - gerrit-csit-refspec-parameter + - project-parameter: + project: '{project}' - stream-parameter: stream: '{stream}' - - string: - name: ARCHIVE_ARTIFACTS - default: '{archive-artifacts}' - description: Artifacts to archive to the logs server. - # Not sure whether not failing has any useful usage, - # but it does not hurt to have some flexibility for future. - - csit-fail-on-crc-mismatch-parameter: - fail-on-crc-mismatch: 'True' scm: - gerrit-trigger-scm: |