- - email-notification:
- email-prefix: '[releng]'
- - opendaylight-infra-shiplogs:
- maven-version: 'mvn33'
-
-# Generic tox-based verify action
-
-- tox_builder_verify: &tox_builder_verify
- name: tox_builder_verify
-
- # Required Variables:
- # stream: release stream (eg. boron or carbon)
- # branch: git branch (eg. stable/boron or master)
- # toxdir: directory containing the project's tox.ini relative to
- # the workspace. Empty works if tox.ini is at project root.
-
- project-type: freestyle
- node: '{build-node}'
- concurrent: true
-
- logrotate:
- daysToKeep: '7'
-
- parameters:
- - opendaylight-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
-
- scm:
- - git:
- credentials-id: 'opendaylight-jenkins-ssh'
- url: '$GIT_BASE'
- basedir: 'repo'
- refspec: '$GERRIT_REFSPEC'
- branches:
- - 'origin/$GERRIT_BRANCH'
- skip-tag: true
- choosing-strategy: 'gerrit'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - gerrit:
- server-name: 'OpenDaylight'
- trigger-on:
- - patchset-created-event:
- exclude-drafts: 'true'
- 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: '{project}'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**/{branch}'
- file-paths:
- - compare-type: ANT
- pattern: '{toxdir}/**'
-
- builders:
- - shell: |
- virtualenv $WORKSPACE/venv-tox
- source $WORKSPACE/venv-tox/bin/activate
- pip install --upgrade pip
- pip install --upgrade tox argparse
- pip freeze
- cd $WORKSPACE/repo/{toxdir}
- tox
-
- publishers:
- - email-notification:
- email-prefix: '[{project}]'
- - opendaylight-infra-shiplogs:
- maven-version: 'mvn33'
-
-- job-template:
- name: '{project-name}-verify-tox-{stream}'
-
- # Job template for verify jobs executing tox envlist
- #
- # The purpose of this job template is to run tox for projects using this
- # template.
- #
- # Required Variables:
- # stream: release stream (eg. stable-lithium or beryllium)
- # branch: git branch (eg. stable/lithium or master)
- # toxdir: directory containing the project's tox.ini relative to
- # the workspace. Empty works if tox.ini is at project root.
-
- <<: *tox_builder_verify
-
-# Python (pep8) specific, project should migrate to {project-name}-verify-tox-{stream}
-
-- job-template:
- name: '{project-name}-verify-python-{stream}'
-
- # Job template for python verify jobs
- #
- # The purpose of this job template is to run tox for projects using this
- # template.
- #
- # Required Variables:
- # stream: release stream (eg. stable-lithium or beryllium)
- # branch: git branch (eg. stable/lithium or master)
- # toxdir: directory containing the project's tox.ini relative to
- # the workspace. Empty works if tox.ini is at project root.
-
- <<: *tox_builder_verify
-
-- job-template:
- name: '{project-name}-merge-rtd-{stream}'
- # Template for ReadTheDocs triggering
-
- project-type: freestyle
- node: '{build-node}'
- concurrent: false
-
- parameters:
- - opendaylight-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - gerrit-trigger-patch-merged:
- name: '{project}'
- branch: '{branch}'
-
- builders:
- - shell: |
- curl -X POST https://readthedocs.org/build/{rtdproject}
-
- publishers:
- - email-notification:
- email-prefix: '[{project}]'
- - opendaylight-infra-shiplogs:
- maven-version: 'mvn33'
-
-# Node related
-
-- job-template:
- name: '{project-name}-verify-node-{stream}'
-
- # Job template for python verify jobs
- #
- # The purpose of this job template is to run node tests for projects using
- # this template. It uses python virtualenv to install nodeenv and create a
- # virtualenv for nodejs.
- #
- # Required Variables:
- # stream: release stream (eg. boron or carbon)
- # branch: git branch (eg. stable/boron or master)
- # nodedir: directory of nodejs project to run node test against
- # nodever: version of node to install in virtualenv
-
- project-type: freestyle
- node: '{build-node}'
- concurrent: true
-
- logrotate:
- daysToKeep: '7'
- numToKeep: '-1'
- artifactDaysToKeep: '-1'
- artifactNumToKeep: '-1'
-
- parameters:
- - opendaylight-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
-
- scm:
- - git:
- credentials-id: 'opendaylight-jenkins-ssh'
- url: '$GIT_BASE'
- basedir: 'repo'
- refspec: '$GERRIT_REFSPEC'
- branches:
- - 'origin/$GERRIT_BRANCH'
- skip-tag: true
- choosing-strategy: 'gerrit'
-
- wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - gerrit:
- server-name: 'OpenDaylight'
- trigger-on:
- - patchset-created-event:
- exclude-drafts: 'true'
- 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: '{project}'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**/{branch}'
- file-paths:
- - compare-type: ANT
- pattern: '{nodedir}/**'
-
- builders:
- - shell: |
- #!/bin/bash
- # Prepare Python
- virtualenv $WORKSPACE/venv-python
- source $WORKSPACE/venv-python/bin/activate
- pip install --upgrade pip
- pip install --upgrade tox argparse nodeenv
- pip freeze
-
- # Prepare node
- nodeenv --node={nodever} --prebuilt $WORKSPACE/venv-node
- source $WORKSPACE/venv-node/bin/activate
- cd $WORKSPACE/repo/{nodedir}
- npm install
- npm test
-
- publishers:
- - email-notification:
- email-prefix: '[{project}]'
- - opendaylight-infra-shiplogs:
- maven-version: 'mvn33'