Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] [dash-dev] Current promotion strategy for Buckminster Users [Revisited]

On Wed, Nov 24, 2010 at 7:21 PM, Miles Parker <milesparker@xxxxxxxxx> wrote:
> Hi,
>
> First, I'm not sure if this should be on x-platform or dash-dev -- where should we be discussing hudson issues?
>
> I've got a working build (finally) and have all of the promotion stuff setup following the other modeling projects, i.e. emf-compare, eef, xtext. The missing piece is the cron job or whatever has replaced it on build.eclipse.org and I don't know what if any the standard practice is -- don't see anything on this on the hudson page. Pointers or just a copy of your cron .sh would be much appreciated.

The EGit ones are here...
   http://wiki.eclipse.org/EGit/Contributor_Guide#Publishing

Our cron entry looks like this to publish every few hours...
* */3 * * * sh /home/data/httpd/download.eclipse.org/egit/pubegit.sh

And our .sh looks like this... not beautiful but it works ;)

BUILD_LOC="/home/data/httpd/download.eclipse.org/egit"

# where you will have your promotion logs
PROMO_LOGS_DIR=""

# this script log
logFile="publish.log"

rm -f $logFile
echo "[`date +%Y/%m/%d\ %H:%M`]: getting last successful build" >> $logFile
mkdir -p $BUILD_LOC
rm -f $BUILD_LOC/site.zip
rm -rf $BUILD_LOC/build
cd $BUILD_LOC
wget --no-check-certificate
"https://hudson.eclipse.org/hudson/job/egit/lastSuccessfulBuild/artifact/org.eclipse.egit-updatesite/target/site/*zip*/site.zip";
-o $logFile
if [ ! -f site.zip ]; then echo "ERROR:build.zip (from Hudson) not
found" >> $logFile; exit -2; fi
unzip site.zip >> $logFile
rm -Rf updates-nightly
mkdir updates-nightly
mv -f site/* updates-nightly/
echo "[`date +%Y/%m/%d\ %H:%M`]: publishing nightly build ..." >> $logFile

-- 
Cheers,

Chris Aniszczyk
http://aniszczyk.org
+1 860 839 2465


Back to the top