Create version bump patches for all projects 13/16413/9
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 12 Mar 2015 20:07:16 +0000 (16:07 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 9 Apr 2015 01:28:35 +0000 (01:28 +0000)
- Add prebuild step to version bump all poms then commit them for future use
- Add prebuild step to resolve <relativePaths/> locally for build

Change-Id: I62b8e4606722d271c59d464f2d7e3584fad006b2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/autorelease-lithium.yaml
jjb/autorelease/autorelease-macros.yaml
jjb/autorelease/include-raw-autorelease-release-versions.sh [new file with mode: 0644]

index f995e4974b60b320777dfb44f4466f6f2661dd92..4d9ea466acfd6611a853b15574a93a4770d70901 100644 (file)
@@ -30,6 +30,8 @@
     parameters:
         - project-parameter:
             project: '{project}'
+        - autorelease-release-tag:
+            release-tag: 'Daily'
 
     scm:
         - git:
     triggers:
         - timed: 'H 0 * * *'
 
+    prebuilders:
+        - shell:
+            !include-raw-escape include-raw-autorelease-release-versions.sh
+
     maven:
         maven-name: '{mvn32}'
         root-pom: 'pom.xml'
index dabb092b4ded29ed36b3f6898b1048007bc03ad5..7e193f7821f12b6cee6657b27a6d8b4b9d79b71d 100644 (file)
@@ -1,4 +1,12 @@
 # Macros for the AutoRelease project
+- parameter:
+    name: autorelease-release-tag
+    parameters:
+        - string:
+            name: RELEASE_TAG
+            default: '{release-tag}'
+            description: "The Release train tag to use eg. Helium-SR3"
+
 - wrapper:
     name: autorelease-build-timeout
     wrappers:
diff --git a/jjb/autorelease/include-raw-autorelease-release-versions.sh b/jjb/autorelease/include-raw-autorelease-release-versions.sh
new file mode 100644 (file)
index 0000000..b612484
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/bash
+# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+##############################################################################
+# Copyright (c) 2015 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
+# RELEASE_TAG=Helium-SR2  # Example
+
+./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"
+
+./scripts/fix-relativepaths.sh