- project:
name: integration-test-jobs
jobs:
- - 'integration-csit-verify-1node-{stream}'
+ - 'integration-verify-python'
+ - 'integration-csit-verify-1node-library'
- 'integration-distribution-offline-{stream}'
- 'integration-distribution-test-{stream}'
- 'integration-patch-test-{stream}'
aaa-distribution-{stream},
integration-distribution-merge-{stream}
+# Template: integration-verify-python
+# Goal: Verify python scripts correct syntax
+# Operation: This job template performs a python tox check on any integration/test patch
+
- job-template:
- name: 'integration-csit-verify-1node-{stream}'
+ name: 'integration-verify-python'
+
+ project-type: freestyle
+ node: dynamic_verify
+ concurrent: true
+
+ logrotate:
+ daysToKeep: '{build-days-to-keep}'
+ numToKeep: '{build-num-to-keep}'
+ artifactDaysToKeep: '{build-artifact-days-to-keep}'
+ artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+ parameters:
+ - project-parameter:
+ project: 'integration/test'
+
+ scm:
+ - integration-gerrit-scm:
+ credentials-id: '{ssh-credentials}'
+ basedir: 'test'
+ refspec: '$GERRIT_REFSPEC'
+ branch: 'master'
+
+ wrappers:
+ - build-timeout
+ - ssh-agent-credentials:
+ users:
+ - '{ssh-credentials}'
+
+ triggers:
+ - integration-trigger-patch-submitted:
+ name: 'integration/test'
+ branch: 'master'
+ pattern: '**'
+
+ builders:
+ - shell: |
+ virtualenv $WORKSPACE/venv-tox
+ source $WORKSPACE/venv-tox/bin/activate
+ pip install tox argparse
+ tox --version
+ cd $WORKSPACE/test
+ tox
+
+ publishers:
+ - email-notification:
+ email-prefix: '[integration]'
+
+# Template: integration-csit-verify-1node-library
+# Goal: Verify changes in csit folder not covered by projects suite verify jobs (e.g. libraries or variables)
+# Operation: This job template performs a base openflow test when there is a change in the libraries folder
+
+- job-template:
+ name: 'integration-csit-verify-1node-library'
project-type: freestyle
node: dynamic_robot
parameters:
- project-parameter:
- project: 'integration'
+ project: 'integration/test'
- integration-branch:
- branch: '{branch}'
+ branch: 'master'
- integration-bundleurl:
bundleurl: 'last'
- integration-controller-scope:
test-plan: 'openflowplugin-flow-services.txt'
scm:
- - gerrit-trigger-scm:
+ - integration-gerrit-scm:
credentials-id: '{ssh-credentials}'
+ basedir: 'test'
refspec: '$GERRIT_REFSPEC'
- choosing-strategy: 'gerrit'
+ branch: 'master'
wrappers:
- build-timeout
- '{ssh-credentials}'
triggers:
- - integration-csit-gerrit-trigger-patch-submitted:
- name: 'integration'
- branch: '{branch}'
+ - integration-trigger-patch-submitted:
+ name: 'integration/test'
+ branch: 'master'
+ pattern: 'csit/libraries/*'
builders:
- integration-get-slave-addresses
- inject:
properties-file: 'slave_addresses.txt'
+ - integration-get-bundle-vars
+ - inject:
+ properties-file: 'bundle_vars.txt'
- integration-deploy-controller-run-test
publishers:
- email-notification:
email-prefix: '[integration]'
+# Template: integration-distribution-offline-{stream}
+# Goal: Verify distribution can start with no internet connection
+# Operation: This job deployes the controller removing any external repository definition
+# whenever there is a change in a kernel project (odlparent, controller, yangtools, etc...)
+
- job-template:
name: 'integration-distribution-offline-{stream}'
parameters:
- project-parameter:
- project: 'integration'
+ project: 'integration/distribution'
- integration-branch:
branch: '{branch}'
- integration-bundleurl:
bundleurl: 'last'
- scm:
- - git-scm:
- credentials-id: '{ssh-credentials}'
- refspec: ''
- branch: '{branch}'
-
wrappers:
- build-timeout
- ssh-agent-credentials:
result: 'success'
builders:
+ - integration-get-bundle-vars
+ - inject:
+ properties-file: 'bundle_vars.txt'
- integration-deploy-controller-offline
publishers:
- email-notification:
email-prefix: '[integration]'
+# Template: integration-distribution-test-{stream}
+# Goal: Verify a distribution through all system test available
+# Operation: This daily job template takes a distribution and passes all available system test
+
- job-template:
name: 'integration-distribution-test-{stream}'
- email-notification:
email-prefix: '[integration]'
+# Template: integration-patch-test-{stream}
+# Goal: Build a patch and run all available system test on a distribution containing the change
+# Operation: This job teamplate builds a patch, creates a distribution containing the patch, and
+# triggers the distribution test when test-integration is used in gerrit comments
+
- job-template:
name: 'integration-patch-test-{stream}'
parameters:
- project-parameter:
- project: 'integration'
- - integration-patch-git-url
+ project: '$GERRIT_PROJECT'
+ - integration-distribution-git-url
scm:
- integration-gerrit-scm:
credentials-id: '{ssh-credentials}'
+ basedir: '$GERRIT_PROJECT'
+ refspec: '$GERRIT_REFSPEC'
branch: '{branch}'
- - integration-git-scm:
+ - integration-distribution-scm:
credentials-id: '{ssh-credentials}'
branch: '{branch}'
maven:
maven-name: '{mvn33}'
- root-pom: 'integration/pom.xml'
+ root-pom: 'distribution/pom.xml'
goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
settings: '{integration-settings}'