[releng] Add R-build with p2.statsURI, p2.mirrorsURL
diff --git a/releng/org.eclipse.qvto.releng.build-site/downloads.sh b/releng/org.eclipse.qvto.releng.build-site/downloads.sh index 720e141..8d9fa2f 100644 --- a/releng/org.eclipse.qvto.releng.build-site/downloads.sh +++ b/releng/org.eclipse.qvto.releng.build-site/downloads.sh
@@ -14,7 +14,7 @@ # # -u PUBLISH__URL The zip to be published e.g. https://ci.eclipse.org/qvt-oml/job/qvto-master/25/artifact/releng/org.eclipse.qvto.releng.build-site/target/org.eclipse.qvto-3.9.0.v20171025-1600.zip # -v PUBLISH__VERSION Unqualified version e.g. 3.9.0 -# -t PUBLISH__BUILD_T Build type N/I/S, blank suppresses promotion +# -t PUBLISH__BUILD_T Build type N/I/S/R, blank suppresses promotion # -q PUBLISH__QUALIFIER Version qualifier e.g. v20171025-1600 # -a PUBLISH__ALIAS Non blank to use alias as part of final name # -j PUBLISH__JAVADOC The optional Javadoc zip to be published e.g. https://ci.eclipse.org/qvt-oml/job/qvto-master/25/artifact/releng/org.eclipse.qvto.releng.build-site/target/QVTo-javadoc.zip
diff --git a/releng/org.eclipse.qvto.releng.build-site/updates.sh b/releng/org.eclipse.qvto.releng.build-site/updates.sh index 0f7e83e..bcdab5b 100644 --- a/releng/org.eclipse.qvto.releng.build-site/updates.sh +++ b/releng/org.eclipse.qvto.releng.build-site/updates.sh
@@ -14,7 +14,7 @@ # # -u PUBLISH__URL The zip to be published e.g. https://ci.eclipse.org/qvt-oml/job/qvto-master/25/artifact/releng/org.eclipse.qvto.releng.build-site/target/org.eclipse.qvto-3.9.0.v20171025-1600.zip # -v PUBLISH__VERSION Unqualified version e.g. 3.9.0 -# -t PUBLISH__BUILD_T Build type N/I/S, blank suppresses promotion +# -t PUBLISH__BUILD_T Build type N/I/S/R, blank suppresses promotion # -q PUBLISH__QUALIFIER Version qualifier e.g. v20171025-1600 # updatesFolder="/home/data/httpd/download.eclipse.org/mmt/qvto/updates/" @@ -54,6 +54,11 @@ buildFolder="${updatesFolder}milestones" buildRepoName="Milestones" externalFolder="${externalUpdatesFolder}milestones/${PUBLISH__VERSION}/${tQualifier}" + elif [ "${PUBLISH__BUILD_T}" = "R" ] + then + buildFolder="${updatesFolder}releases" + buildRepoName="Release" + externalFolder="${externalUpdatesFolder}releases/${PUBLISH__VERSION}" else buildFolder="${updatesFolder}other" externalFolder="${externalUpdatesFolder}other/${PUBLISH__VERSION}" @@ -109,6 +114,15 @@ chmod -R g+w ${tQualifier} ${manageComposite} add -Dchild.repository=${tQualifier} -Dcomposite.name="${projectRepoName} ${PUBLISH__VERSION} ${buildRepoName} Repository" popd + elif [ "${PUBLISH__BUILD_T}" = "R" ] + then + curl -s -k ${PUBLISH__URL} > ${localZip} + unzip -ou ${localZip} -d new${PUBLISH__VERSION} + chgrp -R ${group} new${PUBLISH__VERSION} + chmod -R g+w new${PUBLISH__VERSION} + mv ${PUBLISH__VERSION} old${PUBLISH__VERSION} + mv new${PUBLISH__VERSION} ${PUBLISH__VERSION} + rm -rf old${PUBLISH__VERSION} ${localZip} fi
diff --git a/releng/org.eclipse.qvto.releng.tycho/.launches/Build QVTo Distribution - Release.launch b/releng/org.eclipse.qvto.releng.tycho/.launches/Build QVTo Distribution - Release.launch new file mode 100644 index 0000000..c37a3d9 --- /dev/null +++ b/releng/org.eclipse.qvto.releng.tycho/.launches/Build QVTo Distribution - Release.launch
@@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType"> +<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/> +<stringAttribute key="M2_GOALS" value="clean verify"/> +<booleanAttribute key="M2_NON_RECURSIVE" value="false"/> +<booleanAttribute key="M2_OFFLINE" value="false"/> +<stringAttribute key="M2_PROFILES" value="release"/> +<listAttribute key="M2_PROPERTIES"/> +<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/> +<booleanAttribute key="M2_SKIP_TESTS" value="false"/> +<intAttribute key="M2_THREADS" value="1"/> +<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/> +<stringAttribute key="M2_USER_SETTINGS" value=""/> +<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/> +<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${workspace}"/> +<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/org.eclipse.qvto.releng.tycho}"/> +</launchConfiguration>
diff --git a/releng/org.eclipse.qvto.releng.tycho/pom.xml b/releng/org.eclipse.qvto.releng.tycho/pom.xml index d45f507..432e044 100644 --- a/releng/org.eclipse.qvto.releng.tycho/pom.xml +++ b/releng/org.eclipse.qvto.releng.tycho/pom.xml
@@ -480,6 +480,30 @@ </properties> </profile> <profile> + <id>release</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <buildType>R</buildType> + <targetPlatform>targetPlatforms/stable</targetPlatform> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-p2-repository-plugin</artifactId> + <configuration> + <extraArtifactRepositoryProperties> + <p2.statsURI>http://download.eclipse.org/stats/mmt/qvto/updates/releases/${unqualifiedVersion}</p2.statsURI> + <p2.mirrorsURL>http://www.eclipse.org/downloads/download.php?file=/mmt/qvto/updates/releases/${unqualifiedVersion}&format=xml</p2.mirrorsURL> + </extraArtifactRepositoryProperties> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> <id>oxygen</id> <activation> <activeByDefault>false</activeByDefault>