#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you 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.

- defaults:
    name: global
    logrotate:
        daysToKeep: -1
        numToKeep: 2
        artifactDaysToKeep: -1
        artifactNumToKeep: 2
    triggers:
        - pollscm: 'H/30 * * * *'
    # Time builds out (and fail them) after 60mins.
    wrappers:
        - timeout:
            timeout: 60
            fail: true
    publishers:
        - email:
            recipients: 'commits@trafficserver.apache.org'
            send-to-individuals: true
        - workspace-cleanup:
            dirmatch: true
            include:
                - 'build/*'
                - 'install/*'

- builder:
    name: linux-regression
    builders:
        - shell: |
            mkdir -p "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            mkdir -p "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
            ( cd "${WORKSPACE}/src" && git clean -dfxq  && autoreconf -fi )
        - shell: |
            cd "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            export DEB_BUILD_HARDENING
            "${WORKSPACE}"/src/configure --prefix="${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}" --enable-werror --enable-experimental-plugins --enable-example-plugins --enable-test-tools $ENABLE_DEBUG $ENABLE_EXPERIMENTAL
            make -j2 V=1
            make check
            make install
            "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"/bin/traffic_server -R 1
            make distclean
        - shell: |
            rm -rf "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            rm -rf "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"

- builder:
    name: linux-clang-regression
    builders:
        - shell: |
            mkdir -p "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            mkdir -p "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
            ( cd "${WORKSPACE}/src" && git clean -dfxq  && autoreconf -fi )
        - shell: |
            cd "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            export CC=clang
            export CXX=clang++
            export CXXFLAGS="-Qunused-arguments -std=c++11"
            export WITH_LIBCPLUSPLUS=yes
            "${WORKSPACE}"/src/configure --prefix="${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}" --enable-werror --enable-experimental-plugins --enable-example-plugins --enable-test-tools $ENABLE_DEBUG $ENABLE_EXPERIMENTAL
            make -j2 V=1
            make check
            make install
            "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"/bin/traffic_server -R 1
            make distclean
        - shell: |
            rm -rf "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            rm -rf "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"

# XXX if we can pass down a $MAKE environment variable from the project, then we can
# remove the BSD builder and just use the linux one.
- builder:
    name: bsd-regression
    builders:
        - shell: |
            mkdir -p "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
            mkdir -p "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            ( cd "${WORKSPACE}/src" && git clean -dfxq  && autoreconf -fi )
        - shell: |
            cd "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            "${WORKSPACE}"/src/configure --prefix="${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}" --enable-werror --enable-experimental-plugins --enable-example-plugins --enable-test-tools $ENABLE_DEBUG
            gmake -j2 V=1
            gmake check
            gmake install
            "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"/bin/traffic_server -R 1
            gmake distclean
        - shell: |
            rm -rf "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            rm -rf "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"

- builder:
    name: 'omnios-regression'
    builders:
        - shell: |
            mkdir -p "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
            mkdir -p "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            ( cd "${WORKSPACE}/src" && git clean -dfxq  && autoreconf -fi )
        - shell: |
            cd "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"
            export PATH=/sbin:~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/omni/bin:/opt/gcc-4.6.3/bin/:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin:/usr/dt/bin:/usr/openwin/bin
            export CC=/opt/gcc-4.6.3/bin/gcc
            export CXX=/opt/gcc-4.6.3/bin/g++
            export WITH_LIBCPLUSPLUS=yes
            export CFLAGS=-m64
            export CXXFLAGS=-m64
            export CPPFLAGS=-I/opt/omni/include
            export LDFLAGS="-L/opt/omni/lib/amd64 -R/opt/omni/lib/amd64"
            "${WORKSPACE}"/src/configure --prefix="${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}" --enable-werror --enable-experimental-plugins --enable-example-plugins --enable-test-tools $ENABLE_DEBUG $ENABLE_EXPERIMENTAL
            gmake -j2 V=1
            gmake check
            gmake install
            "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"/bin/traffic_server -R 1
            gmake distclean
        - shell: |
            rm -rf "${WORKSPACE}/install/${JOB_NAME}.${BUILD_NUMBER}"
            rm -rf "${WORKSPACE}/build/${JOB_NAME}.${BUILD_NUMBER}"

- job-template:
    name: '{node}-{branch}-{tag}-regression'
    node: '{node}'
    parameters:
        - string:
            name: ENABLE_DEBUG
            default: '{debug}'
            description: enable runtime debug checks
        - string:
            # Standard regression tests with Debian build hardening compiler flags.
            # See https://wiki.ubuntu.com/Security/HardeningWrapper
            # and https://wiki.debian.org/Hardening.
            name: DEB_BUILD_HARDENING
            default: '{hardening}'
            description: enable Debian hardening-wrapper
        - string:
            name: ENABLE_EXPERIMENTAL
            default: '{experimental}'
            description: enable experimental configure options
    scm:
        - git:
            url: '{repo}'
            basedir: 'src'
            branches:
                - '{branch}'
    builders:
        - '{builder}-regression'

- job-template:
    name: '{node}-{branch}-clang-{tag}-regression'
    node: '{node}'
    parameters:
        - string:
            name: ENABLE_DEBUG
            default: '{debug}'
            description: enable runtime debug checks
        - string:
            # Standard regression tests with Debian build hardening compiler flags.
            # See https://wiki.ubuntu.com/Security/HardeningWrapper
            # and https://wiki.debian.org/Hardening.
            name: DEB_BUILD_HARDENING
            default: '{hardening}'
            description: enable Debian hardening-wrapper
        - string:
            name: ENABLE_EXPERIMENTAL
            default: '{experimental}'
            description: enable experimental configuration options
    scm:
        - git:
            url: '{repo}'
            basedir: 'src'
            branches:
                - '{branch}'
    builders:
        - '{builder}-clang-regression'

- project:
    name: centos-5-x64
    node: centos_5_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4


- project:
    name: centos-5-x86
    node: centos_5_x86
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: centos-6.4-x64
    node: centos_6.4_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: taobao
            experimental: --enable-linux-native-aio --enable-reclaimable-freelist --enable-interim-cache
            repo: file:///home/jenkins/git/trafficserver

- project:
    name: centos-6.4-x86
    node: centos_6.4_x86
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: fedora-15-x64
    node: fedora_15_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: fedora-15-x86
    node: fedora_15_x86
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: fedora-18-x64
    node: fedora_18_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: fedora-18-x86
    node: fedora_18_x86
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: fedora-rawhide-x64
    node: fedora_rawhide_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-clang-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-clang-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-clang-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: fedora-rawhide-x86
    node: fedora_rawhide_x86
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: freebsd-9.1-x64
    node: freebsd_9.1_x64
    builder: bsd
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: omnios-x64
    node: omnios_x64
    builder: omnios
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: opensuse-12-x64
    node: opensuse_12_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: ubuntu-10.04-x64
    node: ubuntu_10.04_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: hardening
            hardening: '1'
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: ubuntu-12.04-x64
    node: ubuntu_12.04_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: hardening
            hardening: '1'
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: hardening
            hardening: '1'
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: taobao
            experimental: --enable-linux-native-aio --enable-reclaimable-freelist --enable-interim-cache
            repo: file:///home/jenkins/git/trafficserver

- project:
    name: debian-6-x64
    node: debian_6_x64
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: hardening
            hardening: '1'
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///home/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///home/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///home/jenkins/git/trafficserver_4

- project:
    name: mac-os-x
    node: mac_os_x
    builder: linux
    tag: normal
    debug: --disable-debug
    hardening: '0'
    experimental: ''
    jobs:
        - '{node}-{branch}-{tag}-regression':
            branch: master
            tag: debug
            debug: --enable-debug
            repo: file:///Users/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: master
            repo: file:///Users/jenkins/git/trafficserver
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            repo: file:///Users/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 3.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///Users/jenkins/git/trafficserver_3.2
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            repo: file:///Users/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 4.2.x
            tag: debug
            debug: --enable-debug
            repo: file:///Users/jenkins/git/trafficserver_4
        - '{node}-{branch}-{tag}-regression':
            branch: 5.0.x
            repo: file:///Users/jenkins/git/trafficserver_5
        - '{node}-{branch}-{tag}-regression':
            branch: 5.0.x
            tag: debug
            debug: --enable-debug
            repo: file:///Users/jenkins/git/trafficserver_5

# vim: sw=4 ts=4 et ft=yaml :
