From 09155ec001785ef8615cd2993d05c6be14c8b760 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Fri, 3 Jan 2025 10:30:13 +0100 Subject: [PATCH] [Build] Remove unused creation of missing sources in Maven publication Since [1] respectively [2] no missing source artifacts are created anymore so the associated part of the CBIaggregator.sh script can be cleaned-up. [1] - https://github.com/eclipse-platform/eclipse.platform.releng/issues/126 [2] - https://github.com/eclipse-platform/eclipse.platform.releng/pull/167 --- JenkinsJobs/Releng/publishToMaven.jenkinsfile | 2 +- .../publish-to-maven-central/CBIaggregator.sh | 48 ------------------- .../sourceBundles.txt | 0 3 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 eclipse.platform.releng/publish-to-maven-central/sourceBundles.txt diff --git a/JenkinsJobs/Releng/publishToMaven.jenkinsfile b/JenkinsJobs/Releng/publishToMaven.jenkinsfile index dc5fe4f0feb..1d499c1deaa 100644 --- a/JenkinsJobs/Releng/publishToMaven.jenkinsfile +++ b/JenkinsJobs/Releng/publishToMaven.jenkinsfile @@ -169,7 +169,7 @@ pipeline { post { always { archiveArtifacts allowEmptyArchive: true, artifacts: '\ - repo/**, baseline-next.txt, \ + repo/**, \ repo-validation/coordinates.txt' } unsuccessful { diff --git a/eclipse.platform.releng/publish-to-maven-central/CBIaggregator.sh b/eclipse.platform.releng/publish-to-maven-central/CBIaggregator.sh index d82cd853e9e..e46423db164 100755 --- a/eclipse.platform.releng/publish-to-maven-central/CBIaggregator.sh +++ b/eclipse.platform.releng/publish-to-maven-central/CBIaggregator.sh @@ -336,52 +336,4 @@ createJavadocs jdt org.eclipse.jdt:org.eclipse.jdt.doc.isv createJavadocs pde org.eclipse.pde:org.eclipse.pde.doc.user popd -echo "==== Create missing sources artifacts ====" - -function buildSourceJar() { - if [ -d assemble ] - then - rm -r assemble - fi - mkdir assemble - giturl=git@github.com:${1} - gitcache_dir=${WORKING_ROOT}/gitcache - gitpath=${gitcache_dir}/repo/${2} - gittag=${3} - group=${4} - artifact=${5} - version=${6} - mkdir -p $gitcache_dir - pushd ${gitcache_dir} - git clone ${giturl} repo - pushd repo - git checkout ${3} - popd - popd - mv ${gitpath}/src/* assemble/ - mv ${gitpath}/META-INF assemble/ - if [ -d ${gitpath}/OSGI-INF ] - then - mv ${gitpath}/OSGI-INF assemble/ - fi - mv ${gitpath}/about.html assemble/ - if [ $# > 6 ] - then - shift 6 - for src in "$@" - do - mv "${gitpath}/${src}" assemble/ - done - fi - rm -rf ${gitcache_dir} - pushd assemble - jar cf ../${group}/${artifact}/${version}/${artifact}-${version}-sources.jar * - popd -} - -while read line -do - buildSourceJar $line -done < ${BASE_DIR}/sourceBundles.txt - echo "========== Repo completed =========" diff --git a/eclipse.platform.releng/publish-to-maven-central/sourceBundles.txt b/eclipse.platform.releng/publish-to-maven-central/sourceBundles.txt deleted file mode 100644 index e69de29bb2d..00000000000