Skip to content

Commit

Permalink
[Build] Remove unused creation of missing sources in Maven publication
Browse files Browse the repository at this point in the history
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] - eclipse-platform/eclipse.platform.releng#126
[2] - eclipse-platform/eclipse.platform.releng#167
  • Loading branch information
HannesWell committed Jan 7, 2025
1 parent bd09d0d commit 76458c5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 49 deletions.
2 changes: 1 addition & 1 deletion JenkinsJobs/Releng/publishToMaven.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pipeline {
post {
always {
archiveArtifacts allowEmptyArchive: true, artifacts: '\
repo/**, baseline-next.txt, \
repo/**, \
repo-validation/coordinates.txt'
}
unsuccessful {
Expand Down
48 changes: 0 additions & 48 deletions eclipse.platform.releng/publish-to-maven-central/CBIaggregator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
[email protected]:${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 ========="
Empty file.

0 comments on commit 76458c5

Please sign in to comment.