- job: name: odp-publish-gitstats project-type: matrix defaults: global description: | * Run gitstats on different ODP implementations and publish the result. logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-read - job-extended-read - job-build - job-cancel - build-discarder: num-to-keep: 30 days-to-keep: 30 disabled: false node: master child-workspace: . display-name: 'ODP publish gitstats' triggers: - timed: '@daily' axes: - axis: type: user-defined name: platform_type values: - generic - dpdk # - ks2 - axis: type: slave name: label values: - docker-jessie-amd64 wrappers: - timestamps - matrix-tie-parent: node: master - timeout: timeout: 60 builders: - shell: | #!/bin/bash # Assume build-dependencies packages are installed # build-essential git gitstats set -ex rm -rf odp sudo apt-get update sudo apt-get install -y --no-install-recommends gitstats case "${platform_type}" in generic) git clone git://git.linaro.org/lng/odp.git ;; netmap) git clone git://git.linaro.org/lng/odp-netmap.git odp ;; dpdk) git clone git://git.linaro.org/lng/odp-dpdk.git odp ;; ks2) git clone git://git.linaro.org/lng/odp-keystone2.git odp ;; esac mkdir odp/publishing cd odp gitstats -c max_authors=50 -c merge_authors="mike-holmes,Mike Holmes" -c merge_authors="santosh shukla,Santosh Shukla" -c merge_authors="Yan Sonming,Yan Songming" -c merge_authors="venkatesh vivekanandan,Venkatesh Vivekanandan" . ./publishing/linux-${platform_type}-gitstats - ssh: site: 'docs.opendataplane.org' target: 'incoming/odp-publish-gitstats/${platform_type}/${BUILD_NUMBER}' source: 'odp/publishing/**' command: | cd /srv/docs.opendataplane.org mkdir -p snapshots/odp-publish-gitstats/${platform_type}/${BUILD_NUMBER} cp -a incoming/odp-publish-gitstats/${platform_type}/${BUILD_NUMBER}/linux-${platform_type}-gitstats snapshots/odp-publish-gitstats/${platform_type}/${BUILD_NUMBER}/ rm -rf $(pwd)/snapshots/odp-publish-gitstats/${platform_type}/latest ln -sf $(pwd)/snapshots/odp-publish-gitstats/${platform_type}/${BUILD_NUMBER} snapshots/odp-publish-gitstats/${platform_type}/latest rm -rf incoming/odp-publish-gitstats/${platform_type}/${BUILD_NUMBER} timeout: 120000 remove-prefix: 'odp/publishing' always-publish-from-master: true publishers: - email: recipients: 'lng-ci@lists.linaro.org'