parameters:
- maven-exec:
maven-version: 'mvn33'
- - opendaylight-infra-parameters:
- os-cloud: '{os-cloud}'
+ - lf-infra-parameters:
project: '{project}'
+ stream: '{stream}'
branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
- distribution-karaf-version:
karaf-version: '{karaf-version}'
- autorelease-release-tag:
release-tag: '{next-release-tag}'
- - autorelease-release-branch:
- release-branch: '{branch}'
- string:
name: EXTRA_MVN_OPTS
default: '{extra-mvn-opts}'
-Dskip.karaf.featureTest=true # To disable karaf SingleFeatureTests
--fail-never # NEVER fail the build, regardless of project result
--fail-at-end # Only fail the build afterwards; allow all non-impacted builds to continue
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: '{archive-artifacts}'
+ description: Artifacts to archive to the logs server.
scm:
- git:
jdk: '{jdk}'
properties:
- - opendaylight-infra-properties:
+ - lf-infra-properties:
build-days-to-keep: 7
parameters:
- - opendaylight-infra-parameters:
- os-cloud: '{os-cloud}'
+ - lf-infra-parameters:
project: '{project}'
+ stream: '{stream}'
branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
- autorelease-release-tag:
- release-tag: 'validate'
+ release-tag: validate
- string:
name: CLONE_URL
default: '{git-url}/releng/autorelease'
# to enable building in a single maven reactor afterwards.
- autorelease-fix-relative-paths
- maven-target:
- maven-version: 'mvn33'
+ maven-version: mvn33
pom: validate-pom.xml
goals: |
clean install dependency:tree
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g'
- settings: 'autorelease-settings'
+ settings: autorelease-settings
settings-type: cfp
- global-settings: 'global-settings'
+ global-settings: global-settings
global-settings-type: cfp
- maven-target:
- maven-version: 'mvn33'
- pom: 'pom.xml'
+ maven-version: mvn33
+ pom: pom.xml
goals: |
clean validate
-Pq
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
- settings: 'autorelease-settings'
+ settings: autorelease-settings
settings-type: cfp
- global-settings: 'global-settings'
+ global-settings: global-settings
global-settings-type: cfp
publishers:
# 4) Create tarball for distribution.
# RELEASE_TAG=Beryllium-SR1 # Example
-# RELEASE_BRANCH=stable/beryllium # Example
+
+echo "---> prepare-release.sh"
# Set release tag as $STREAM, when no release tag is passed
RELEASE_TAG="${RELEASE_TAG:-${STREAM^}}"
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
pushd "$module"
- git format-patch --stdout "origin/$RELEASE_BRANCH" > "$PATCH_DIR/${module//\//-}.patch"
+ git format-patch --stdout "origin/$GERRIT_BRANCH" > "$PATCH_DIR/${module//\//-}.patch"
git bundle create "$PATCH_DIR/${module//\//-}.bundle" "origin/master..HEAD"
popd
done