Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 9 additions & 38 deletions JenkinsJobs/Builds/build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pipeline {
tools {
jdk 'temurin-jdk21-latest'
maven 'apache-maven-latest'
ant 'apache-ant-latest'
}
environment {
MAVEN_OPTS = '-Xmx4G'
Expand Down Expand Up @@ -174,25 +173,6 @@ pipeline {
}
}
}
stage('Create base builder'){
steps {
script{
def eclipsePlatformLatestRelease = "https://download.eclipse.org/eclipse/downloads/drops4/${PREVIOUS_RELEASE_ID}/eclipse-platform-${PREVIOUS_RELEASE_VER}-linux-gtk-x86_64.tar.gz"
def exe = utilities.installDownloadableTool('eclipse', eclipsePlatformLatestRelease) + '/eclipse'
assignEnvVariable('BASE_BUILDER_ECLIPSE_EXE', "${exe} -nosplash --launcher.suppressErrors")
sh '''
source $CJE_ROOT/buildproperties.shsource
mkdir -p $CJE_ROOT/$TMP_DIR
$BASE_BUILDER_ECLIPSE_EXE \
-debug -consolelog -data $CJE_ROOT/$TMP_DIR/workspace-toolsinstall \
-application org.eclipse.equinox.p2.director \
-repository ${ECLIPSE_RUN_REPO},https://download.eclipse.org/cbi/updates/p2-analyzers/tools/nightly/latest \
-installIU org.eclipse.pde.api.tools,org.eclipse.cbi.p2repo.analyzers.feature.feature.group \
-profile SDKProfile
'''
}
}
}
stage('Aggregator maven build') {
environment {
KEYRING = credentials('secret-subkeys-releng.asc')
Expand All @@ -203,6 +183,7 @@ pipeline {
dir("${AGG_DIR}") {
sh '''#!/bin/bash -xe
source $CJE_ROOT/buildproperties.shsource
mkdir -p ${CJE_ROOT}/${TMP_DIR}

mvn clean install -pl :eclipse-sdk-prereqs,:org.eclipse.jdt.core.compiler.batch \
-Dmaven.repo.local=${LOCAL_REPO} -DlocalEcjVersion=99.99 \
Expand Down Expand Up @@ -370,30 +351,20 @@ pipeline {
popd

# Generate repository reports
$BASE_BUILDER_ECLIPSE_EXE \
-application org.eclipse.cbi.p2repo.analyzers.repoReport \
-data $CJE_ROOT/$TMP_DIR/workspace-report -vmargs -Xmx1g \
-DreferenceRepo=https://download.eclipse.org/eclipse/updates/${PREVIOUS_RELEASE_REPO_ID}/${BASEBUILD_ID} \
mvn tycho-eclipse:eclipse-run@generate-repo-report -f eclipse-platform-parent \
-Declipserun.workArea=${CJE_ROOT}/${TMP_DIR}/repo-report \
-DreportRepoDir=${PLATFORM_REPO_DIR} \
-DreportOutputDir=${DROP_DIR}/${BUILD_ID}/buildlogs

# Generate API-tools reports
pushd ${DROP_DIR}/${BUILD_ID}
$BASE_BUILDER_ECLIPSE_EXE \
-application org.eclipse.ant.core.antRunner \
-buildfile $ECLIPSE_BUILDER_DIR/eclipse/buildScripts/api-tools-builder.xml \
-data $CJE_ROOT/$TMP_DIR/workspace-apitoolingsLogs \
-DEBuilderDir=$ECLIPSE_BUILDER_DIR \
mvn tycho-eclipse:eclipse-run@generate-api-report -f eclipse-platform-parent \
-Declipserun.workArea=${CJE_ROOT}/${TMP_DIR}/apitoolings-logs \
-DgitRepoRoot=${AGG_DIR} \
-DbuildDirectory=${DROP_DIR}/${BUILD_ID} \
-DbuildId=$BUILD_ID \
-DbuildLabel=$BUILD_ID \
-DbuildWorkingArea=${AGG_DIR} \
-DpreviousBaseURL=https://$DOWNLOAD_HOST/eclipse/downloads/drops4/$PREVIOUS_RELEASE_ID/eclipse-SDK-$PREVIOUS_RELEASE_VER-win32-x86_64.zip \
-DpreviousBaselineName=Eclipse-SDK-$PREVIOUS_RELEASE_VER \
-DpreviousBaselineFilename=eclipse-SDK-$PREVIOUS_RELEASE_VER-win32-x86_64.zip \
-Djava.io.tmpdir=$CJE_ROOT/$TMP_DIR \
apiToolsReports
popd
-DpreviousReleaseVer=${PREVIOUS_RELEASE_VER} \
-DpreviousReleaseId=${PREVIOUS_RELEASE_ID} \

rm -rf ${DROP_DIR}/${BUILD_ID}/apitoolingreference

# Wait for notarization to complete before checksums are generated.
Expand Down
1 change: 0 additions & 1 deletion JenkinsJobs/Releng/prepareNextDevCycle.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ pipeline {
"STREAM=\".*\"" : "STREAM=\"${NEXT_RELEASE_VERSION}.0\"",
"STREAMMajor=\".*\"" : "STREAMMajor=\"${NEXT_RELEASE_VERSION_MAJOR}\"",
"STREAMMinor=\".*\"" : "STREAMMinor=\"${NEXT_RELEASE_VERSION_MINOR}\"",
"ECLIPSE_RUN_REPO=\".*\"" : "ECLIPSE_RUN_REPO=\"https://download.eclipse.org/eclipse/updates/${NEXT_RELEASE_VERSION}-I-builds/\"",
"NEXT_JAVA_RELEASE_DATE=\".*\"" : "NEXT_JAVA_RELEASE_DATE=\"${NEXT_JAVA_RELEASE_DATE}\"",
])
replaceInFile('products/eclipse-platform/platform.p2.inf', [
Expand Down
3 changes: 0 additions & 3 deletions JenkinsJobs/Releng/promoteBuild.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,6 @@ pipeline {
-DnewPrevious-release.baseline="${RELEASE_P2_REPOSITORY}" \
-DnewCbi-ecj-version="${ecjVersion}"
"""
utilities.replaceAllInFile('cje-production/buildproperties.txt', [
'ECLIPSE_RUN_REPO="https://download.eclipse.org/eclipse/updates/.*"' : "ECLIPSE_RUN_REPO=\"${RELEASE_P2_REPOSITORY}\"",
])
utilities.gitCommitAllExcludingSubmodules("Update ${MAINTENANCE_BRANCH} branch with release version for ${BUILD_MAJOR}_${BUILD_MINOR}+ changes")
}
// Switch back to master for subsequent parts of this pipeline
Expand Down
1 change: 0 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Previously they were created in ther own job:
This is still a work in progress so if there are any issues or a repo gets missed you can fall back to the old process below:
Once that's done it's easiest to just grep for the previous release version or stream number to find the remaining instances that need to be updated, then commit the changes in a new branch for each repo.
- **Update comparator repo and eclipse run repo**
- Update the ECLIPSE_RUN_REPO in the [cje-production](cje-production) buildproperties.txt files
- **Set Previous Version to RC2**
- RC2 becomes the new baseline for the week before the GA release.
- Update previous-release.baseline in [eclipse-platform-parent/pom.xml](eclipse-platform-parent/pom.xml)
Expand Down
3 changes: 0 additions & 3 deletions cje-production/buildproperties.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ STREAMMajor="4"
STREAMMinor="40"
STREAMService="0"
TMP_DIR="tmp"
DOWNLOAD_HOST="download.eclipse.org"
NEXT_JAVA_RELEASE_DATE=""

PREVIOUS_RELEASE_VER="4.39"
Expand All @@ -32,5 +31,3 @@ PREVIOUS_RELEASE_REPO_ID="4.39"
BASEBUILD_ID="R-4.39-202602260420"
#release id for downloading eclipse
PREVIOUS_RELEASE_ID="R-4.39-202602260420"

ECLIPSE_RUN_REPO="https://download.eclipse.org/eclipse/updates/4.40-I-builds/"
1 change: 0 additions & 1 deletion cje-production/mbscripts/mb010_createEnvfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@ fn-addToPropFiles BUILD_ENV_FILE_PROP "\"$BUILD_ENV_FILE_PROP\""
fn-addToPropFiles BUILD_TYPE "\"${BUILD_TYPE}\""
fn-addToPropFiles BUILD_TYPE_NAME "\"${BUILD_TYPE_NAME}\""
fn-addToPropFiles BUILD_ID "\"$BUILD_TYPE$TIMESTAMP\""
fn-addToPropFiles ECLIPSE_BUILDER_DIR "\"$AGG_DIR/eclipse.platform.releng.tychoeclipsebuilder\""
fn-addToPropFiles TEST_CONFIGURATIONS_EXPECTED "\"${TEST_CONFIGURATIONS_EXPECTED}\""
92 changes: 85 additions & 7 deletions eclipse-platform-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@

<eclipse-sdk-repo>https://download.eclipse.org/eclipse/updates/${releaseVersion}-I-builds/</eclipse-sdk-repo>

<!--
The tycho-eclipserun-plugin will create its instance of Eclipse from this
'eclipiserun-repo' repository, such as for computing .api-descriptions and
generating API Tools reports.
-->
<eclipserun-repo>${eclipse-sdk-repo}</eclipserun-repo>

<comparator.repo>${eclipse-sdk-repo}</comparator.repo>

<!-- only used when Tycho snapshot repo is enabled in <pluginRepositories> further down -->
Expand Down Expand Up @@ -495,6 +488,91 @@
<artifactId>tycho-gpg-plugin</artifactId>
<version>${tycho.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-eclipse-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<work>${eclipserun.workArea}</work>
<repositories>
<repository>
<id>eclipse</id>
<layout>p2</layout>
<url>${eclipse-sdk-repo}</url>
</repository>
</repositories>
</configuration>
<executions>
<execution>
<id>generate-repo-report</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>none</phase><!-- Ensure explict invocation is required. -->
<configuration>
<applicationArgs>
<arg>-application</arg>
<arg>org.eclipse.cbi.p2repo.analyzers.repoReport</arg>
</applicationArgs>
<jvmArgs>
<arg>-DreferenceRepo=${previous-release.baseline}</arg>
<arg>-DreportRepoDir=${reportRepoDir}</arg>
<arg>-DreportOutputDir=${reportOutputDir}</arg>
</jvmArgs>
<dependencies>
<dependency>
<artifactId>org.eclipse.cbi.p2repo.analyzers.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
<repositories combine.children="append">
<repository>
<id>cbi.p2repo.analyzer</id>
<layout>p2</layout>
<url>https://download.eclipse.org/cbi/updates/p2-analyzers/tools/nightly/latest</url>
</repository>
</repositories>
</configuration>
</execution>
<execution>
<id>generate-api-report</id>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>none</phase><!-- Ensure explict invocation is required. -->
<configuration>
<applicationArgs>
<arg>-application</arg>
<arg>org.eclipse.ant.core.antRunner</arg>
<arg>-buildfile</arg>
<arg>${gitRepoRoot}/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml</arg>
<arg>apiToolsReports</arg>
</applicationArgs>
<jvmArgs>
<arg>-DEBuilderDir=${gitRepoRoot}/eclipse.platform.releng.tychoeclipsebuilder</arg>
<arg>-DbuildDirectory=${buildDirectory}</arg>
<arg>-DbuildId=${buildId}</arg>
<arg>-DbuildLabel=${buildId}</arg>
<arg>-DbuildWorkingArea=${gitRepoRoot}</arg>
<arg>-DpreviousBaseURL=https://download.eclipse.org/eclipse/downloads/drops4/${previousReleaseId}/eclipse-SDK-${previousReleaseVer}-win32-x86_64.zip</arg>
<arg>-DpreviousBaselineName=Eclipse-SDK-${previousReleaseVer}</arg>
<arg>-DpreviousBaselineFilename=eclipse-SDK-${previousReleaseVer}-win32-x86_64.zip</arg>
<arg>-Djava.io.tmpdir=${env.CJE_ROOT}/${env.TMP_DIR}</arg>
</jvmArgs>
<dependencies>
<dependency>
<artifactId>org.eclipse.pde.api.tools</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.platform</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-versions-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ tycho.localArtifacts=${tycho.localArtifacts}
tycho.version=${tycho.version}
cbi-ecj-version=${cbi-ecj-version}
cbi-plugins.version=${cbi-plugins.version}
eclipserun-repo=${eclipserun-repo}

java.class.path=${java.class.path}
java.class.version=${java.class.version}
Expand Down
Loading