Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Remove unused creation of missing sources in Maven publication #2732

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
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.
Loading