X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fbottlenecks%2Fbottlenecks-project-jobs.yml;h=27eb01afa762288cfdacbe67f172aa65326891d8;hb=cc8c74caed5b1e767f351bbb83adc53d0b3b00fd;hp=28b49bc8b0bcce864160af282de15fddc743ac99;hpb=a3258aa1164f76b4e8089ae254916451c4b456b7;p=releng.git diff --git a/jjb/bottlenecks/bottlenecks-project-jobs.yml b/jjb/bottlenecks/bottlenecks-project-jobs.yml index 28b49bc8b..27eb01afa 100644 --- a/jjb/bottlenecks/bottlenecks-project-jobs.yml +++ b/jjb/bottlenecks/bottlenecks-project-jobs.yml @@ -19,10 +19,12 @@ gs-pathname: '' #This is used for different test suite dependent packages storage gs-packagepath: '/{suite}' - - brahmaputra: + disabled: false + - colorado: branch: 'stable/{stream}' gs-pathname: '/{stream}' gs-packagepath: '/{stream}/{suite}' + disabled: false suite: - 'rubbos' @@ -35,6 +37,8 @@ - job-template: name: 'bottlenecks-verify-{stream}' + disabled: '{obj:disabled}' + parameters: - project-parameter: project: '{project}' @@ -50,6 +54,7 @@ triggers: - gerrit: + server-name: 'gerrit.opnfv.org' trigger-on: - patchset-created-event: exclude-drafts: 'false' @@ -67,13 +72,14 @@ - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' builders: - - shell: | - echo "bottlenecks: verify job" - #TO DO: this should be changed when the unittest ready + - bottlenecks-hello + #- bottlenecks-unit-tests - job-template: name: 'bottlenecks-merge-{stream}' + disabled: '{obj:disabled}' + parameters: - project-parameter: project: '{project}' @@ -89,6 +95,7 @@ triggers: - gerrit: + server-name: 'gerrit.opnfv.org' trigger-on: - change-merged-event - comment-added-contains-event: @@ -101,12 +108,15 @@ branch-pattern: '**/{branch}' builders: - - shell: | - echo "bottlenecks: merge" + - bottlenecks-hello + #- bottlenecks-unit-tests - job-template: name: 'bottlenecks-{suite}-upload-artifacts-{stream}' + + disabled: '{obj:disabled}' + concurrent: true properties: @@ -186,3 +196,35 @@ echo "Bottlenecks: cleanup cache used for storage downloaded packages" /bin/rm -rf $CACHE_DIR + +- builder: + name: bottlenecks-unit-tests + builders: + - shell: | + #!/bin/bash + set -o errexit + set -o pipefail + + echo "Running unit tests..." + cd $WORKSPACE + virtualenv $WORKSPACE/bottlenecks_venv + source $WORKSPACE/bottlenecks_venv/bin/activate + + # install python packages + easy_install -U setuptools + easy_install -U pip + pip install -r requirements.txt + + # unit tests + /bin/bash $WORKSPACE/tests.sh + + deactivate + +- builder: + name: bottlenecks-hello + builders: + - shell: | + #!/bin/bash + set -o errexit + + echo "hello"