From ac0f335a6e62d65865e248a401fa2e184b8df791 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Wed, 24 Aug 2016 13:02:15 -0400 Subject: Apex: add job to verify only unit test changes Change-Id: I76d79ae45e134646f1331a733e4c03948ee9f93a Signed-off-by: Tim Rozet --- jjb/apex/apex.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'jjb') diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 8ae90f7d3..8a5a82f13 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -2,6 +2,7 @@ name: apex jobs: - 'apex-verify-{stream}' + - 'apex-verify-unit-tests-{stream}' - 'apex-runner-{platform}-{scenario}-{stream}' - 'apex-runner-cperf-{stream}' - 'apex-build-{stream}' @@ -68,6 +69,62 @@ - 'baremetal' - 'virtual' +# Unit Test +- job-template: + name: 'apex-verify-unit-tests-{stream}' + + node: '{verify-slave}' + + concurrent: true + + parameters: + - apex-parameter: + gs-pathname: '{gs-pathname}' + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - string: + name: GIT_BASE + default: https://gerrit.opnfv.org/gerrit/$PROJECT + description: "Used for overriding the GIT URL coming from parameters macro." + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + triggers: + - gerrit: + trigger-on: + - patchset-created-event: + exclude-drafts: 'false' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'true' + - draft-published-event + - comment-added-contains-event: + comment-contains-value: 'recheck' + - comment-added-contains-event: + comment-contains-value: 'reverify' + projects: + - project-compare-type: 'ANT' + project-pattern: 'apex' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + file-paths: + - compare-type: ANT + pattern: 'tests/**' + properties: + - throttle: + max-per-node: 1 + max-total: 10 + option: 'project' + + builders: + - 'apex-unit-test' + # Verify - job-template: name: 'apex-verify-{stream}' -- cgit 1.2.3-korg