X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Freleng-templates.yaml;h=4ffb0052add2128899ee1ff2836db9374790392e;hb=refs%2Fchanges%2F59%2F37359%2F1;hp=6b59733f5c30ed419269019eff043e7e490f85b6;hpb=06f6535b87674c8c6e0cb69a757aa1dbbd3fe017;p=releng%2Fbuilder.git diff --git a/jjb/releng-templates.yaml b/jjb/releng-templates.yaml index 6b59733f5..4ffb0052a 100644 --- a/jjb/releng-templates.yaml +++ b/jjb/releng-templates.yaml @@ -1,160 +1,85 @@ -# 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-scm: - scm-url: '{scm-url}' - refspec: 'origin/$GERRIT_REFSPEC' + - git: + credentials-id: '{ssh-credentials}' + 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: '0f7cf3cd-6872-41c5-8dfe-e4348f2a445e' - - triggers: - - gerrit-trigger: - name: '{name}' - branch: '{branch}' - - maven: - maven-name: Maven 3.0.4 - root-pom: pom.xml - goals: '{mvn-goals}' - maven-opts: '{mvn-opts}' - - publishers: - - email-notification - -- 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 - - logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' - artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' - - scm: - - gerrit-scm: - scm-url: '{scm-url}' - refspec: '' + users: + - '{ssh-credentials}' triggers: - - gerrit-trigger: - name: '{name}' - branch: '{branch}' - - maven: - maven-name: Maven 3.0.4 - root-pom: pom.xml - goals: '{mvn-goals}' - maven-opts: '{mvn-opts}' - - publishers: - - email-notification - - 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: - - gerrit-scm: - scm-url: '{scm-url}' - refspec: '' - - triggers: - - timed: 'H H * * *' - - gerrit-trigger: - 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 - - sonar: - branch: 'origin/{branch}' - language: 'java' - maven-opts: '{mvn-opts}' + - email-notification: + email-prefix: '[{project}]'