release-tag: 'validate'
- autorelease-release-branch:
release-branch: '{branch}'
- - autorelease-release-datestamp:
- datestamp: true
- string:
name: CLONE_URL
default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
default: '{release-branch}'
description: "The Release train branch to base build off eg. stable/beryllium"
-- parameter:
- name: autorelease-release-datestamp
- parameters:
- - bool:
- name: DATESTAMP
- default: '{datestamp}'
- description: "Whether to include a datestamp or not"
-
- wrapper:
name: autorelease-build-timeout
wrappers:
name: autorelease-generate-taglist
builders:
- shell: |
- git submodule foreach 'echo $path `git rev-parse --verify HEAD` ${RELEASE_TAG} >> ../taglist.log'
+ git submodule foreach 'echo $path `git rev-parse --verify HEAD` ${RELEASE_TAG} | tee -a $WORKSPACE/taglist.log'
- builder:
name: autorelease-generate-release-patches
stream:
- boron:
+ next-release-tag: Boron
branch: 'master'
jdk: 'openjdk8'
integration-test: boron
- beryllium:
+ next-release-tag: Beryllium-SR3
branch: 'stable/beryllium'
jdk: 'openjdk7'
integration-test: beryllium
- lithium:
+ next-release-tag: Lithium-SR5
branch: 'stable/lithium'
jdk: 'openjdk7'
integration-test: stable-lithium
- project-parameter:
project: '{project}'
- autorelease-release-tag:
- release-tag: '{stream}-daily'
+ release-tag: '{next-release-tag}'
- autorelease-release-branch:
release-branch: '{branch}'
- - autorelease-release-datestamp:
- datestamp: true
scm:
- git:
publishers:
- archive-artifacts:
- artifacts: '*.prop,*.log,patches/*.patch,patches/*.log'
+ artifacts: '*.prop,*.log,patches/*.bundle,patches/*.patch,patches/*.log'
- email-notification:
email-prefix: '[autorelease]'
- trigger-parameterized-builds:
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
-# DATESTAMP=true # Example
# RELEASE_TAG=Beryllium-SR1 # Example
# RELEASE_BRANCH=stable/beryllium # 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
-
echo $RELEASE_TAG
./scripts/version.sh release $RELEASE_TAG
git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true"
for module in $modules; do
pushd $module
git format-patch --stdout origin/$RELEASE_BRANCH > $PATCH_DIR/${module//\//-}.patch
+ git bundle create $PATCH_DIR/${module//\//-}.bundle "origin/master..HEAD"
popd
done