-# ODL Releng build templates
-
- job-template:
- name: '{name}-verify-{stream}'
+ name: '{name}-verify-python-{stream}'
- # Job template for ODL verify jobs
+ # Job template for python verify jobs
#
- # The purpose of this job template is to setup a ODL verify job
+ # The purpose of this job template is to run tox for projects using this
+ # template.
#
# Required Variables:
- # name: project name (eg. controller)
- # stream: branch with - in place of / (eg. stable/helium)
- # branch: branch (eg. stable/helium)
- # mvn-goals: Maven Goals parameter to pass to the builder (eg. clean install)
- # mvn-opts: MAVEN_OPTS paramter to pass to the builder (eg. -Xmx1024m)
- #
- # Optional Variables:
- # build-days-to-keep: Number of days to keep builds
- # build-num-to-keep: Number of builds to keep
- # build-artifact-days-to-keep: Number of artifacts from builds to keep
- # build-artifact-num-to-keep: Number of builds to keep with artifacts
+ # 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.
- project-type: maven
+ 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}'
+ daysToKeep: '7'
+ numToKeep: '-1'
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
parameters:
+ - project-parameter:
+ project: '{project}'
- gerrit-parameter:
branch: '{branch}'
+ - gerrit-refspec-parameter:
+ refspec: 'refs/heads/{branch}'
scm:
- - gerrit-trigger-scm:
+ - git:
credentials-id: '{ssh-credentials}'
- scm-url: '{scm-url}'
+ url: '$GIT_BASE'
+ basedir: 'repo'
refspec: '$GERRIT_REFSPEC'
+ branches:
+ - 'origin/$GERRIT_BRANCH'
+ skip-tag: true
+ choosing-strategy: 'gerrit'
wrappers:
+ - build-timeout
- ssh-agent-credentials:
- user: '{ssh-credentials}'
+ users:
+ - '{ssh-credentials}'
triggers:
- - gerrit-trigger-patch-submitted:
- name: '{name}'
- branch: '{branch}'
-
- maven:
- maven-name: Maven 3.0.4
- root-pom: pom.xml
- goals: '{mvn-goals}'
- maven-opts: '{mvn-opts}'
+ - 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: '{email-prefix}'
+ email-prefix: '[{project}]'
- job-template:
- name: '{name}-merge-{stream}'
-
- # Job template for ODL merge jobs
- #
- # The purpose of this job template is to setup a ODL merge job
- #
- # Required Variables:
- # name: project name (eg. controller)
- # stream: branch with - in place of / (eg. stable/helium)
- # branch: branch (eg. stable/helium)
- # mvn-goals: Maven Goals parameter to pass to the builder (eg. clean install)
- # mvn-opts: MAVEN_OPTS paramter to pass to the builder (eg. -Xmx1024m)
- #
- # Optional Variables:
- # build-days-to-keep: Number of days to keep builds
- # build-num-to-keep: Number of builds to keep
- # build-artifact-days-to-keep: Number of artifacts from builds to keep
- # build-artifact-num-to-keep: Number of builds to keep with artifacts
-
- project-type: maven
+ name: '{name}-merge-rtd-{stream}'
+ # Template for ReadTheDocs triggering
- logrotate:
- daysToKeep: '{build-days-to-keep}'
- numToKeep: '{build-num-to-keep}'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
+ project-type: freestyle
+ node: dynamic_verify
+ concurrent: false
- scm:
- - gerrit-trigger-scm:
- credentials-id: '{ssh-credentials}'
- scm-url: '{scm-url}'
- refspec: ''
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - gerrit-refspec-parameter:
+ refspec: 'refs/heads/{branch}'
wrappers:
+ - build-timeout
- ssh-agent-credentials:
- user: '{ssh-credentials}'
+ users:
+ - '{ssh-credentials}'
triggers:
- gerrit-trigger-patch-merged:
- name: '{name}'
+ name: '{project}'
branch: '{branch}'
- maven:
- maven-name: Maven 3.0.4
- root-pom: pom.xml
- goals: '{mvn-goals}'
- maven-opts: '{mvn-opts}'
-
- publishers:
- - email-notification:
- email-prefix: '{email-prefix}'
- - maven-deploy:
- id:
- url:
- unique-version: true
- deploy-unstable: false
-
-- job-template:
- name: '{name}-daily-{stream}'
-
- # Job template for daily builders
- #
- # The purpose of this job template is to setup a daily/nightly builder and pushes to Sonar analysis.
- #
- # Required Variables:
- # name: project name (eg. controller)
- # stream: branch with - in place of / (eg. stable/helium)
- # branch: branch (eg. stable/helium)
- # mvn-goals: Maven Goals parameter to pass to the builder (eg. clean install)
- # mvn-opts: MAVEN_OPTS paramter to pass to the builder (eg. -Xmx1024m)
- #
- # Optional Variables:
- # build-days-to-keep: Number of days to keep builds
- # build-num-to-keep: Number of builds to keep
- # build-artifact-days-to-keep: Number of artifacts from builds to keep
- # build-artifact-num-to-keep: Number of builds to keep with artifacts
-
- project-type: maven
-
- logrotate:
- daysToKeep: '{build-days-to-keep}'
- numToKeep: '{build-num-to-keep}'
- artifactDaysToKeep: '{build-artifact-days-to-keep}'
- artifactNumToKeep: '{build-artifact-num-to-keep}'
-
- scm:
- - git-scm:
- credentials-id: '{ssh-credentials}'
- scm-url: '{scm-url}'
- refspec: ''
- branch: '{branch}'
-
- wrappers:
- - ssh-agent-credentials:
- user: '{ssh-credentials}'
-
- triggers:
- - timed: 'H H * * *'
-
- maven:
- maven-name: Maven 3.0.4
- root-pom: pom.xml
- goals: '{mvn-goals}'
- maven-opts: '{mvn-opts}'
+ builders:
+ - shell: |
+ curl -X POST https://readthedocs.org/build/{rtdproject}
publishers:
- email-notification:
- email-prefix: '{email-prefix}'
- - sonar:
- branch: 'origin/{branch}'
- language: 'java'
- maven-opts: '{mvn-opts}'
+ email-prefix: '[{project}]'