yum install -y sshpass
# vim: sw=2 ts=2 sts=2 et :
+
+cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
+Defaults:jenkins !requiretty
+jenkins ALL = NOPASSWD: /sbin/iptables
+EOF
# Lithium build jobs
- project:
- name: autorelease
+ name: autorelease-lithium
jobs:
- 'autorelease-daily-lithium'
- # stream: branch with - in place of / (eg. stable-helium)
- # branch: branch (eg. stable/helium)
- stream:
- - master:
- branch: 'master'
-
+ branch: 'stable/lithium'
project: 'releng/autorelease'
jdk: 'openjdk7'
url: '$GIT_BASE'
refspec: ''
branches:
- - 'origin/master'
+ - 'origin/{branch}'
skip-tag: true
recursive-submodules: true
publishers:
- archive-artifacts:
- artifacts: 'sources.log'
+ artifacts: 'sources.log,patches/*.patch'
- email-notification:
email-prefix: '[autorelease]'
--- /dev/null
+# Lithium build jobs
+
+- project:
+ name: autorelease-master
+ jobs:
+ - 'autorelease-daily-master'
+
+ branch: 'master'
+ project: 'releng/autorelease'
+ jdk: 'openjdk7'
+
+- job-template:
+ name: 'autorelease-daily-master'
+
+ project-type: maven
+ node: dynamic_verify
+ jdk: '{jdk}'
+
+ 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: '{project}'
+ - autorelease-release-tag:
+ release-tag: 'Daily'
+
+ scm:
+ - git:
+ credentials-id: '{ssh-credentials}'
+ url: '$GIT_BASE'
+ refspec: ''
+ branches:
+ - 'origin/{branch}'
+ skip-tag: true
+ recursive-submodules: true
+
+ wrappers:
+ - autorelease-build-timeout
+ - ssh-agent-credentials:
+ user: '{ssh-credentials}'
+
+ triggers:
+ - timed: 'H 0 * * *'
+
+ prebuilders:
+ - shell:
+ !include-raw-escape include-raw-autorelease-release-versions.sh
+
+ maven:
+ maven-name: '{mvn32}'
+ root-pom: 'pom.xml'
+ goals: 'clean install source:jar javadoc:jar -Pintegrationtests,docs,repoBuild -fae -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
+ maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
+ settings: '{autorelease-settings}'
+ global-settings: '{odl-global-settings}'
+
+ postbuilders:
+ - maven-target:
+ maven-version: '{mvn32}'
+ pom: 'pom.xml'
+ goals: 'dependency:sources -l sources.log -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
+ java-opts:
+ - '-Xmx4096m -XX:MaxPermSize=1024m'
+ settings: '{autorelease-settings}'
+ global-settings: '{odl-global-settings}'
+ - jacoco-nojava-workaround
+
+ publishers:
+ - archive-artifacts:
+ artifacts: 'sources.log,patches/*.patch'
+ - email-notification:
+ email-prefix: '[autorelease]'
./scripts/version.sh release $RELEASE_TAG
git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true"
git commit -am "Release $RELEASE_TAG"
-git submodule foreach "git format-patch --stdout origin/master > ../patches/${PWD##*/}.patch"
+
+mkdir patches
+git submodule foreach 'git format-patch --stdout origin/master > ../patches/$name.patch'
./scripts/fix-relativepaths.sh
+
MVN_GOALS: -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs
MVN_OPTS: -Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true
DEPENDENCIES: yangtools,aaa
+JDKS: openjdk7,openjdk8
type: jdk
values:
- openjdk7
+ - openjdk8
logrotate:
sleep 20
echo "Check OSGi bundles..."
-./client "feature:install ${CONTROLLERFEATURES}" || echo $? > ${WORKSPACE}/error.txt
+# Remove until we get sshpass in rackspace
+#./client "feature:install ${CONTROLLERFEATURES}" || echo $? > ${WORKSPACE}/error.txt
echo "Fetching Karaf log"
cd ${WORKSPACE}
sleep 60
echo "Checking OSGi bundles..."
-./client 'bundle:list'
+# Remove until we get sshpass in rackspace
+#./client 'bundle:list'
EOF
parameters:
- project-parameter:
project: 'integration'
- - integration-patch-git:
- patch-git: ''
- - integration-patch-refspec:
- patch-refspec: ''
- - integration-patch-git-url:
- patch-git-url: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/$PATCHGIT'
+ - integration-patch-git-url
scm:
- integration-gerrit-scm:
- ssh-agent-credentials:
user: '{ssh-credentials}'
+ triggers:
+ - gerrit:
+ server-name: 'OpenDaylight'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'test-integration'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '**'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ skip-vote:
+ successful: true
+ failed: true
+ unstable: true
+ notbuilt: true
+
prebuilders:
- integration-get-bundle-url
- inject:
- wipe-org-opendaylight-repo
- maven-target:
maven-version: '{mvn32}'
- pom: '$PATCHGIT/pom.xml'
+ pom: '$GERRIT_PROJECT/pom.xml'
goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r source:jar javadoc:jar'
java-opts:
- '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
default: '{test-options}'
description: 'Robot command options'
-- parameter:
- name: integration-patch-git
- parameters:
- - string:
- name: PATCHGIT
- default: '{patch-git}'
- description: 'Patch GIT repository'
-
- parameter:
name: integration-patch-git-url
parameters:
- string:
name: PATCHGITURL
- default: '{patch-git-url}'
+ default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/$GERRIT_PROJECT'
description: 'Patch GIT URL (do not modify)'
-- parameter:
- name: integration-patch-refspec
- parameters:
- - string:
- name: PATCHREFSPEC
- default: '{patch-refspec}'
- description: 'Patch Refspec'
-
- scm:
name: integration-gerrit-scm
scm:
- git:
credentials-id: '{credentials-id}'
url: '$PATCHGITURL'
- basedir: '$PATCHGIT'
- refspec: '$PATCHREFSPEC'
+ basedir: '$GERRIT_PROJECT'
+ refspec: '$GERRIT_REFSPEC'
branches:
- 'origin/{branch}'
skip-tag: true
--- /dev/null
+BRANCHES: master,stable/helium,stable/lithium
branch: 'master'
- stable-helium:
branch: 'stable/helium'
+ - stable-lithium:
+ branch: 'stable/lithium'
project: 'odlparent'
jdk: 'openjdk7'
--- /dev/null
+- project:
+ name: openflowplugin-csit-flow-services-lithium-redesign
+ jobs:
+ - '{project}-csit-1node-cds-{functionality}-{install}-{stream}'
+
+ # The project name
+ project: 'openflowplugin'
+
+ # The functionality under test
+ functionality: 'flow-services-lithium-redesign'
+
+ # Project branches
+ stream:
+ - master:
+ branch: 'master'
+
+ install:
+ - only:
+ scope: 'only'
+
+ # Features to install
+ install-features: 'odl-openflowplugin-app-new-lldp-speaker'
+
+ # Robot custom options
+ robot-options: '-v TOPO_TREE_DEPTH:5 -e adsal'
+
+ # Trigger jobs (upstream dependencies)
+ trigger-jobs: 'yangtools-distribution-{stream},controller-distribution-{stream},openflowjava-distribution-{stream},openflowplugin-distribution-{stream}'
#MVN_OPTS: -Xmx1024m -XX:MaxPermSize=256m
DEPENDENCIES: yangtools,controller,openflowjava
ARCHIVE_ARTIFACTS: model/*/target/site/**
+JDKS: openjdk7,openjdk8
type: jdk
values:
- openjdk7
+ - openjdk8
logrotate: