From: Vratko Polák Date: Mon, 7 Dec 2015 15:05:25 +0000 (+0000) Subject: Merge "Set GERRIT_REFSPEC defaults for Gerrit Trigger jobs" X-Git-Tag: release/beryllium~301 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=45bd4ee83b0d1eea9b46b42c304ae63915886668;hp=7ffa0fe3bc6487b3da42b39aa74e839882014ee3;p=releng%2Fbuilder.git Merge "Set GERRIT_REFSPEC defaults for Gerrit Trigger jobs" --- diff --git a/jjb-templates/sonar.yaml b/jjb-templates/sonar.yaml index afcfe9a3a..26f80b401 100644 --- a/jjb-templates/sonar.yaml +++ b/jjb-templates/sonar.yaml @@ -28,7 +28,7 @@ - '{ssh-credentials}' triggers: - - timed: 'H H * * *' + - timed: '@weekly' - gerrit-trigger-patch-sonar: name: 'PROJECT_PATH' diff --git a/jjb-templates/validate-autorelease.yaml b/jjb-templates/validate-autorelease.yaml index 8ebc14e46..6f014a45f 100644 --- a/jjb-templates/validate-autorelease.yaml +++ b/jjb-templates/validate-autorelease.yaml @@ -42,9 +42,26 @@ - '{ssh-credentials}' triggers: - - gerrit-trigger-patch-submitted: - name: 'PROJECT_PATH' - branch: '{branch}' + - gerrit: + server-name: 'OpenDaylight' + trigger-on: + - patchset-created-event: + exclude-drafts: 'false' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'false' + - draft-published-event + - comment-added-contains-event: + comment-contains-value: 'recheck' + - comment-added-contains-event: + comment-contains-value: 'reverify' + - comment-added-contains-event: + comment-contains-value: 'revalidate' + projects: + - project-compare-type: 'ANT' + project-pattern: 'PROJECT_PATH' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' prebuilders: - wipe-org-opendaylight-repo diff --git a/jjb/autorelease/include-raw-autorelease-release-versions.sh b/jjb/autorelease/include-raw-autorelease-release-versions.sh index bbf90e226..99c40872a 100644 --- a/jjb/autorelease/include-raw-autorelease-release-versions.sh +++ b/jjb/autorelease/include-raw-autorelease-release-versions.sh @@ -13,6 +13,9 @@ # RELEASE_TAG=Helium-SR2 # Example # RELEASE_BRANCH=stable/helium # Example +# Directory to put git format-patches +PATCH_DIR=`pwd`/patches + if [ "$DATESTAMP" == "true" ]; then export RELEASE_TAG=$RELEASE_TAG-`date -u +v%Y%m%d%H%M` fi @@ -25,9 +28,9 @@ git commit -am "Release $RELEASE_TAG" mkdir patches modules=`xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -m '//x:modules' -v '//x:module' pom.xml` for module in $modules; do - cd $module - git format-patch --stdout origin/$RELEASE_BRANCH > ../patches/$module.patch - cd .. + pushd $module + git format-patch --stdout origin/$RELEASE_BRANCH > $PATCH_DIR/${module//\//-}.patch + popd done ./scripts/fix-relativepaths.sh diff --git a/jjb/integration/include-raw-integration-get-slave-addresses.sh b/jjb/integration/include-raw-integration-get-slave-addresses.sh index 804e10db7..e498baab1 100644 --- a/jjb/integration/include-raw-integration-get-slave-addresses.sh +++ b/jjb/integration/include-raw-integration-get-slave-addresses.sh @@ -8,7 +8,7 @@ IFS=',' read -ra ADDR <<< "${JCLOUDS_IPS}" for i in "${ADDR[@]}" do REMHOST=`ssh ${i} hostname` - if [ `echo ${REMHOST} | grep java` ]; then + if [ `echo ${REMHOST} | grep 'java\|devstack'` ]; then ODL_SYSTEM=( "${ODL_SYSTEM[@]}" "${i}" ) else TOOLS_SYSTEM=( "${TOOLS_SYSTEM[@]}" "${i}" ) diff --git a/jjb/netide/netide-csit-basic.yaml b/jjb/netide/netide-csit-basic.yaml index 9b536415f..23f3202ac 100644 --- a/jjb/netide/netide-csit-basic.yaml +++ b/jjb/netide/netide-csit-basic.yaml @@ -2,6 +2,7 @@ name: netide-csit-basic jobs: - '{project}-csit-verify-1node-{functionality}' + - '{project}-csit-1node-{functionality}-{install}-{stream}' # The project name project: 'netide' diff --git a/jjb/ovsdb/ovsdb-openstack-tempest.yaml b/jjb/ovsdb/ovsdb-openstack-tempest.yaml new file mode 100644 index 000000000..89036b85c --- /dev/null +++ b/jjb/ovsdb/ovsdb-openstack-tempest.yaml @@ -0,0 +1,93 @@ +- project: + name: ovsdb-openstack-tempest + jobs: + - 'ovsdb-openstack-tempest-{openstack}-{odl}' + + openstack: + - mitaka: + openstack-branch: 'master' + - liberty: + openstack-branch: 'stable/liberty' + # can add kilo if it's needed, but would result in two more hour long jobs + + odl: + - beryllium: + odl-version: 'beryllium' + - lithium: + odl-version: 'lithium' + +- job-template: + name: 'ovsdb-openstack-tempest-{openstack}-{odl}' + + project-type: freestyle + node: dynamic_robot + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-num-to-keep}' + + parameters: + - project-parameter: + project: 'integration/test' + - integration-patch-refspec: + branch: 'master' + - string: + name: OPENSTACK_BRANCH + default: '{openstack-branch}' + description: 'Openstack branch to use with devstack' + - string: + name: ODL_VERSION + default: '{odl-version}' + description: 'OpenDaylight version to use with devstack + networking_odl project' + - string: + name: TEMPEST_REGEX + default: 'tempest.api.network' + description: 'Default grouping of tempest tests to run' + + scm: + - integration-gerrit-scm: + credentials-id: '{ssh-credentials}' + basedir: 'test' + refspec: '$PATCHREFSPEC' + branch: 'master' + + wrappers: + - build-timeout + - jclouds: + instances: + - rk-c7-devstack: + cloud-name: 'Rackspace DFW - Devstack' + count: '1' + stop-on-terminate: False + - ssh-agent-credentials: + users: + - '{ssh-credentials}' + + # Trigger jobs (daily) + schedule: 'H H * * *' + + builders: + - integration-install-robotframework + - inject: + properties-file: 'env.properties' + - integration-get-slave-addresses + - inject: + properties-file: 'slave_addresses.txt' + - shell: 'pybot -e exclude -v WORKSPACE:/tmp -v USER_HOME:$HOME -L TRACE -v DEVSTACK_SYSTEM_USER:$USER + -v DEVSTACK_SYSTEM_IP:$ODL_SYSTEM_IP -v DEFAULT_LINUX_PROMPT:\]\> + -v OPENSTACK_BRANCH:$OPENSTACK_BRANCH -v ODL_VERSION:$ODL_VERSION + -v TEMPEST_REGEX:$TEMPEST_REGEX $WORKSPACE/test/csit/suites/ovsdb/Devstack_Tempest_Tests/ + || true' + - shell: 'scp $ODL_SYSTEM_IP:/opt/stack/logs/devstacklog.txt $WORKSPACE/' + - integration-cleanup-tmp + + publishers: + - integration-robot: + unstable-if: 0.0 + pass-if: 100.0 + - archive: + artifacts: 'devstacklog.txt' + - email-notification: + email-prefix: '[ovsdb]' diff --git a/jjb/yangtools/yangtools-verify.yaml b/jjb/yangtools/yangtools-verify.yaml index 075473385..4dab955d0 100644 --- a/jjb/yangtools/yangtools-verify.yaml +++ b/jjb/yangtools/yangtools-verify.yaml @@ -17,6 +17,8 @@ mvnver: '{mvn33}' stream: + - pre-boron: + branch: pre-boron - beryllium: branch: master diff --git a/src/site/markdown/jenkins.markdown b/src/site/markdown/jenkins.markdown index 12e136f22..68f2152c4 100644 --- a/src/site/markdown/jenkins.markdown +++ b/src/site/markdown/jenkins.markdown @@ -422,6 +422,18 @@ Some considerations when using this job: times by a system test knowable person, the integration group can help with that +### Autorelease Validate Job + +Trigger: **revalidate** + +This job runs the PROJECT-validate-autorelease-BRANCH job which is used as a +quick sanity test to ensure that a patch does not depend on features that do +not exist in the current release. + +The **revalidate** trigger is useful in cases where a project's verify job +passed however validate failed due to infra problems or intermittent issues. +It will retrigger just the validate-autorelease job. + ## Basic Job Configuration To create jobs based on the above templates you can use the example