| #******************************************************************************* |
| # Copyright (c) 2013 Protos Software GmbH. |
| # 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 |
| # |
| # Contributors: |
| # Henrik Rentz-Reichert - initial API and implementation |
| #******************************************************************************* |
| #!/bin/bash |
| |
| rm -rf buildroot |
| mkdir buildroot |
| mkdir buildroot/test.results |
| |
| COMPACT_BUILD_ID="${BUILD_ID//[-_]}" |
| COMPACT_BUILD_ID="${COMPACT_BUILD_ID:0:12}" |
| |
| { |
| cat "${WORKSPACE}/etrice_local_repo/releng/org.eclipse.etrice.releng/build.properties" |
| |
| echo |
| echo "# Define the path to the repository location" |
| echo "etrice.repo=${WORKSPACE}/etrice_local_repo" |
| |
| echo |
| echo "# Define the Build ID (added by Hudson job definition)" |
| echo "build.id=${BUILD_TYPE}${COMPACT_BUILD_ID}" |
| |
| echo |
| echo "# Define the Build Alias (added by Hudson job definition)" |
| echo "build.alias=${BUILD_ALIAS}" |
| |
| echo |
| echo "# Define Hudson Build ID (added by Hudson job definition)" |
| echo "hudson.build.id=${BUILD_ID}" |
| |
| echo |
| echo "# Define if Hudson Build should create javadoc (added by Hudson job definition)" |
| echo "manage.javadoc=${MANAGE_JAVADOC}" |
| |
| echo |
| echo "# override qualifier replacement set in build.properties" |
| echo "qualifier.replacement.*=generator:buildTimestamp" |
| echo "generator.buildTimestamp.format='${BUILD_TYPE}'yyyyMMddHHmm" |
| |
| echo |
| echo "# Override default locations (added by Hudson job definition)" |
| echo "buckminster.output.root=${WORKSPACE}/buildroot/buckminster.build" |
| echo "buckminster.temp.root=${WORKSPACE}/buildroot/buckminster.temp" |
| echo "eclipse.staging.area=/shared/download-staging.priv/modeling/mdt/etrice" |
| echo "target.platform=${WORKSPACE}/buildroot/target.platform" |
| echo "test.results=${WORKSPACE}/buildroot/test.results" |
| echo "runtime.platform=MT_POSIX_GENERIC_GCC" |
| echo "gcc.path=/usr/bin" |
| echo |
| echo "site.signing=${SITE_SIGNING}" |
| |
| } > buildroot/build.properties |
| |
| { |
| echo "# Define the Build ID to use for tagging (added by Hudson job definition)" |
| echo "build.id=${COMPACT_BUILD_ID}" |
| |
| } > buildroot/tagging.properties |
| |