diff --git a/databus-release.sh b/databus-release.sh index 56867341422231424d9e4d9cc7ad1f8ff36af31a..c577a8acb50278956880caae76bedb58dcb8eab7 100755 --- a/databus-release.sh +++ b/databus-release.sh @@ -15,6 +15,19 @@ then exit 1 fi +################## +# Server DownloadURL +################## +DOMAIN=$GROUP + +if [ "$GROUP" = "generic" ] || [ "$GROUP" = "mappings" ] +then + DOMAIN="mappings" +elif [ "$GROUP" = "text" ] +then + DOMAIN="generic" +fi + ################## # Setup and clone pom files @@ -33,7 +46,6 @@ for path in $(find "$EXTRACTIONBASEDIR" -name "*.ttl.bz2" | sort); do mapAndLink $path done -exit # deploy cd $DATABUSDIR/dbpedia/$GROUP; @@ -41,15 +53,22 @@ mvn versions:set -DnewVersion=$(ls * | grep '^[0-9]\{4\}.[0-9]\{2\}.[0-9]\{2\}$' # get git commit link GITHUBLINK="$(diefCommitLink)" - PUBLISHER="https://vehnem.github.io/webid.ttl#this"; -# TODO marvin: shouldn't this be the web dir directly? -PACKAGEDIR="/data/extraction/release/\${project.groupId}/\${project.artifactId}"; -DOWNLOADURL="http://dbpedia-$GROUP.tib.eu/release/\${project.groupId}/\${project.artifactId}/\${project.version}/"; +PACKAGEDIR="/var/www/dbpedia-mappings.tib.eu/databus-repo/marvin/\${project.groupId}/\${project.artifactId}"; +DOWNLOADURL="http://dbpedia-$DOMAIN.tib.eu/release/\${project.groupId}/\${project.artifactId}/\${project.version}/"; LABELPREFIX="(pre-release) "; -# todo replace with markdown or html when supported by upload client COMMENTPREFIX="(MARVIN is the DBpedia bot for monthly raw releases (unparsed, unsorted) for debugging the DIEF software. After its releases, data is cleaned and persisted under the dbpedia account. Commit: $GITHUBLINK) " ; +echo " +$GITHUBLINK +$PUBLISHER +$PACKAGEDIR +$DOWNLOADURL +$LABELPREFIX +$COMMENTPREFIX +" +exit + mvn clean deploy -Ddatabus.publisher="$PUBLISHER" -Ddatabus.packageDirectory="$PACKAGEDIR" -Ddatabus.downloadUrlPath="$DOWNLOADURL" -Ddatabus.labelPrefix="$LABELPREFIX" -Ddatabus.commentPrefix="$COMMENTPREFIX"; diff --git a/functions.sh b/functions.sh index 78284a4097845c982933df6d5bbf6c00f63ad73c..1a77f9ca4656f52c6f4fe3bf394484d9963b0170 100755 --- a/functions.sh +++ b/functions.sh @@ -183,12 +183,12 @@ mapAndLink() { if [ -d "$DATABUSDIR/dbpedia/$GROUP/$artifact" ]; then mkdir -p $targetFolder else - echo "\"$artifact\" (artifact not found) $path" >&2; + echo "[DEBUG]\"$artifact\" (artifact not found, might not be in group $GROUP) $path" >&2; fi # TODO proper handling of "_redirected" # TODO see above, redirected are moved to logdir and overwrite the unredirected - # concerns onlyy generic: + # concerns only generic: # < enwiki/20191001/enwiki-20191001-disambiguations_redirected.ttl.bz2 # < enwiki/20191001/enwiki-20191001-infobox-properties_redirected.ttl.bz2 # < enwiki/20191001/enwiki-20191001-page-links_redirected.ttl.bz2