Skip to content

Commit

Permalink
fix examples and add BUILD_DESCRIPTION
Browse files Browse the repository at this point in the history
  • Loading branch information
nickboldt committed Mar 6, 2015
1 parent 4baf39a commit 5111da0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions publish/rsync.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ usage ()
echo ""

echo "To push a project build folder from Jenkins to staging:"
echo " $0 -s sources/site/target/repository/ -t mars/snapshots/builds/jbosstools-base_4.3.mars/"
echo " $0 -s \${WORKSPACE}/sources/site/target/repository/ -t mars/snapshots/builds/jbosstools-base_4.3.mars/"
echo ""

echo "To push JBT build + update site folders:"
echo " $0 -s sources/site/target/fullSite -t mars/snapshots/builds/jbosstools-build-sites.aggregate.site_4.3.mars/B${BUILD_NUMBER}-${BUILD_ID}"
echo " $0 -s sources/site/target/fullSite/repo -t mars/snapshots/updates/core/master"
echo " $0 -s \${WORKSPACE}/sources/aggregate/site/target/fullSite -t mars/snapshots/builds/\${JOB_NAME}/B${BUILD_NUMBER}-${BUILD_ID}"
echo " $0 -s \${WORKSPACE}/sources/aggregate/site/target/fullSite/all/repo -t mars/snapshots/updates/core/\${stream}"
echo ""

echo "To push JBDS build + update site folders:"
echo " $0 -DESTINATION /qa/services/http/binaries/RHDS -URL http://www.qa.jboss.com/binaries/RHDS -s sources/results -t 9.0/snapshots/builds/devstudio.product_master/"
echo " $0 -DESTINATION devstudio@filemgmt.jboss.org:/www_htdocs/devstudio -URL https://devstudio.redhat.com -s sources/site/target/fullSite/repo -t 9.0/snapshots/updates/core/master/"
echo " $0 -DESTINATION /qa/services/http/binaries/RHDS -URL http://www.qa.jboss.com/binaries/RHDS -s \${WORKSPACE}/sources/results -t 9.0/snapshots/builds/devstudio.product_master/"
echo " $0 -DESTINATION devstudio@filemgmt.jboss.org:/www_htdocs/devstudio -URL https://devstudio.redhat.com -s \${WORKSPACE}/sources/site/target/fullSite/repo -t 9.0/snapshots/updates/core/master/"
echo ""
exit 1;
}

if [[ $# -lt 1 ]]; then usage; fi
Expand Down Expand Up @@ -98,5 +99,7 @@ if [[ ${JOB_NAME} ]]; then
touch ${bl}; rsync -arzq --protocol=28 ${bl} $DESTINATION/${TARGET_PATH}/logs/
fi

BUILD_DESCRIPTION='<li><a href='${URL}'/'${TARGET_PATH}'>'${URL}'/'${TARGET_PATH}'</a></li>'

# purge temp folder
rm -fr ${tmpdir}

0 comments on commit 5111da0

Please sign in to comment.