Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EMF Compare/Buckminster"

(New page: Here is the configuration needed for Hudson/Buckminster. 3 variables : BUILD_TYPE being a choice among N I M S R BUILD_ALIAS REFERENCE_REPOSITORY with default value : https://hudson...)
(No difference)

Revision as of 04:59, 8 August 2011

Here is the configuration needed for Hudson/Buckminster.

3 variables :

BUILD_TYPE being a choice among N I M S R

BUILD_ALIAS

REFERENCE_REPOSITORY with default value : https://hudson.eclipse.org/hudson/job/emf-compare-1.2.0/lastSuccessfulBuild/artifact/EMF.Compare.p2.repository/

Planning is : 12 2 * * *

and then running a shell script :


rm -rf buildroot EMF.* mkdir buildroot

COMPACT_BUILD_ID="${BUILD_ID//[-_]}" COMPACT_BUILD_ID="${COMPACT_BUILD_ID:0:12}"

{ cat "${WORKSPACE}/packaging/org.eclipse.emf.compare.releng.buckminster/releng/compare-build.properties"

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 "# 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=/home/data/httpd/download-staging.priv/modeling/emf/compare"

echo echo "# Site Signing (added by Hudson job definition)"

       if [ ${BUILD_TYPE} = 'N' ]; then
       echo "site.signing=false"
       else
       echo "site.signing=true"
       fi

} > buildroot/build.properties

And then runing buckminster 3.6, TargetPLatform=None with the commands :

setpref complianceLevel=1.5

setpref targetPlatformPath="${WORKSPACE}/buildroot/target.platform"

import -Declipse.download="file:/home/data/httpd/download.eclipse.org" "${checkout.location}org.eclipse.emf.compare.releng.buckminster/releng/compare-platform.mspec"

resolve "${checkout.location}org.eclipse.emf.compare.releng.buckminster/releng/compare.cquery"

build

junit --launch "org.eclipse.emf.compare.build-feature/org.eclipse.emf.compare.tests.launch" --flatXML --output "${WORKSPACE}/buildroot/test.results/org.eclipse.emf.compare.tests.xml" junit --launch "org.eclipse.emf.compare.build-feature/org.eclipse.emf.compare.mpatch.test.launch" --flatXML --output "${WORKSPACE}/buildroot/test.results/org.eclipse.emf.compare.mpatch.test.xml" junit --launch "org.eclipse.emf.compare.build-feature/org.eclipse.emf.compare.epatch.tests.launch" --flatXML --output "${WORKSPACE}/buildroot/test.results/org.eclipse.emf.compare.epatch.tests.xml"

perform --properties "${WORKSPACE}/buildroot/build.properties" -Dbuckminster.reference.repository="${REFERENCE_REPOSITORY}" "org.eclipse.emf.compare.build#build" perform --properties "${WORKSPACE}/buildroot/build.properties" "org.eclipse.emf.compare.releng.buckminster#setup.promoter"


And then another shell script :


mv buildroot/buckminster.build/org.eclipse.emf.compare.build_*-eclipse.feature/site.p2 EMF.Compare.p2.repository mv buildroot/buckminster.build/org.eclipse.emf.compare.build_*-eclipse.feature/zips EMF.Compare.downloads mv buildroot/buckminster.build/org.eclipse.emf.compare.releng.buckminster_*-buckminster/promoter/promote.properties .


And then an ANT task : target : setup.publisher file : packaging/org.eclipse.emf.compare.releng.buckminster/promoter.ant

Copyright © Eclipse Foundation, Inc. All Rights Reserved.