OK, makes sense. I've checked out 
http://wiki.eclipse.org/MoDisco/Releng/How_it_Works as well -- nice resource. 
But..the example script changes are a substantial change from the 
http://wiki.eclipse.org/Common_Build_Infrastructure/Publishing scripts, and 
doesn't seem to match up to mo disco's quite either. 
I just can't seem to make it work...!  Does anyone have a reference for a .sh 
that does work? Unfortunatly these are in user dirs so the one thing I can't 
look at.

The build is getting placed in (my user) promo_build, but the downloads aren't 
getting populated.. this is my latest attempt:

cgi-amp-promo-N.sh

JOB_ID=cbi-amp-nightly
BUILD_TYPE=N
ANT=/opt/public/common/apache-ant-1.7.1/bin/ant
RELENG_DIR=/opt/users/hudsonbuild/.hudson/jobs/$JOB_ID/workspace/build/org.eclipse.amp.releng
PROMO_LOGS_DIR=/home/data/users/mparker/promo_logs
BUILD_LOC=/home/data/users/mparker/promo_build
logFile=$PROMO_LOGS_DIR/promo_log.txt

DATE=`date +%Y%m%d-%H%M`

echo "$DATE: getting last successful build" >> $logFile
mkdir -p $BUILD_LOC
rm -f $BUILD_LOC/build.zip
rm -rf $BUILD_LOC/build
cd $BUILD_LOC
wget --no-check-certificate 
"https://build.eclipse.org/hudson/job/$JOB_ID/lastSuccessfulBuild/artifact/build/*zip*/build.zip";
if [ ! -f build.zip ]; then echo "ERROR:build.zip (from Hudson) not found"; 
exit -2; fi
unzip build.zip
echo "$DATE: publishing nightly build ..." >> $logFile
cd ../
mkdir -p $PROMO_LOGS_DIR
$ANT -f $RELENG_DIR/promote.xml 
-Dpromote.properties=$RELENG_DIR/promote-$BUILD_TYPE.properties -verbose 
2>/dev/null 1> $PROMO_LOGS_DIR/$JOB_ID-promo-$BUILD_TYPE.txt

promote-N.properties

# source dir
sourceZipsDir=/home/data/users/mparker/promo_build

# target dir
targetZipsDir=/home/data/httpd/download.eclipse.org/amp/drops/nightly/0.5.0

# group owner of new files
targetGroup=modeling.amp

# type(s) to copy (N, I, M, S, R; default to all)
buildTypes=N

# synch method method (add or replace; add = keep adding new builds; replace = 
keep 1 build per branch)
synchMethod=add

# if set, update zip will be unpacked into destination dir and use synchMethod 
above to add or replace contents 
targetUpdateDir=/home/data/httpd/download.eclipse.org/amp/updates/nightly


And ant log:


Apache Ant version 1.7.1 compiled on June 27 2008Buildfile: 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.amp.releng/promote.xmlDetected
 Java version: 1.4 in: /usr/lib/jvm/java-1_4_2-ibm-1.4.2/jreDetected OS: Linux
parsing buildfile /opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/
build/org.eclipse.amp.releng/promote.xml with URI = file:/opt/users/hudsonbuild/
.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.amp.releng/promote.xml
Project base dir set to: /opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/wor
kspace/build/org.eclipse.amp.releng
Build sequence for target(s) `run' is [run]
Complete build sequence is [run, ]

run:[antlib:org.apache.tools.ant] Could not load definitions from resource 
org/apach
e/tools/ant/antlib.xml. It could not be found.Override ignored for property 
"promote.properties"
 [property] Loading 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.amp.releng/promote-N.properties
 [property] Loading /opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspac
e/build/org.eclipse.amp.releng/build.properties
Property "buildTimestamp" has not been set
kspace/build/org.eclipse.dash.common.releng
      [ant] calling target(s) [default] in build file 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/promote.xml
parsing buildfile 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/promote.xml
 with URI = 
file:/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/promote.xml
Project base dir set to: 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng
Override ignored for property "promote.properties"
 [property] Loading 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.amp.releng/promote-N.properties
Override ignored for property "targetUpdateDir"
Override ignored for property "synchMethod"
Override ignored for property "buildTypes"
Override ignored for property "targetZipsDir"
Override ignored for property "sourceZipsDir"
Override ignored for property "targetGroup"
      [ant] Entering 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/promote.xml...
Build sequence for target(s) `main' is [init, main]Complete build sequence is 
[init, main, test, ]
init:
Property "classpath" has not been setProperty "thirdPartyJarsDir" has not been 
set
dropping /opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org
.eclipse.dash.common.releng/${classpath} from path as it doesn't exist
dropping 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/${thirdPartyJarsDir}/ant-contrib.jar
 from path as it doesn't exist
dropping /usr/share/java/ant-contrib.jar from path as it doesn't exist
parsing buildfile 
jar:file:/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
 with URI = 
jar:file:/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
parsing buildfile 
jar:file:/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.amp.releng/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
 with URI = 
jar:file:/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.amp.releng/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
Override ignored for property "sourceZipsDOverride ignored for property 
"targetZipsDir"
Override ignored for property "buildTypes"
Override ignored for property "targetGroup"
Override ignored for property "synchMethod"
Override ignored for property "targetUpdateDir"

main:
    [mkdir] Skipping /home/data/httpd/download.eclipse.org/amp/updates/nightly 
because it already exists.
    [mkdir] Skipping 
/home/data/httpd/download.eclipse.org/amp/drops/nightly/0.5.0 because it 
already exists.
      [ant] Exiting 
/opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/workspace/build/org.eclipse.dash.common.releng/promote.xml



Miles


On Dec 16, 2009, at 6:58 AM, David Carver wrote:

> I've put Nicolas's solution and promotion script example in the FAQ:
> 
> http://wiki.eclipse.org/Common_Build_Infrastructure/Getting_Started/FAQ#The_lastSuccess_symbolic_link_disappeared_on_the_file_system.21_How_do_I_access_my_lastSuccessful_build.
> 
> Dave
> 
> Miles Parker wrote:
>> 
>> Hi all,
>> 
>> After Dave and I spent some time trying to get findbugs working with 
>> cb-amp-nightly and discovering the svn bug prevventing that, I've been 
>> struggling to get back to my last good build configuration. I'm pretty sure 
>> that I've got the build.properties and build.xml back to the right place and 
>> everything is building correctly into the N2009... dirs, but I'm not getting 
>> the files to where they need to be to be promoted.
>> 
>> ls /opt/users/hudsonbuild/.hudson/jobs/cbi-amp-nightly/
>> 
>> Doesn't have a lastSuccessful dir as specified in my boiler-plate 
>> promote-N.properties.
>> 
>> The only thing I can't rollback is the config so I've tried to reconstruct 
>> that but perhaps there is something messed up there. Is there an example 
>> configuration out there that we can look at? I'm wondering if the issue 
>> might be here:
>> 
>> _Archive the artifacts_
>> 
>> I have:
>> 
>> build/?20*/**
>> 
>> 
>> Other settings..
>> 
>> 
>> Params has EXTRA_FLAGS -forceContextQualifier -fetchTag HEAD
>> 
>> Execute Shell:
>> # configuration export PROJRELENGROOT='-projRelengRoot 
>> :pserver:anonym...@dev.eclipse.org:/cvsroot/modeling' export 
>> PROJRELENGPATH='-projRelengPath 
>> org.eclipse.amp/releng/org.eclipse.amp.releng' # parameters #export 
>> SNAPSHOT="true" # run the build . 
>> /opt/public/cbi/build/org.eclipse.dash.common.releng/hudson/run.sh
>> 
>> 
>> Any ideas?
>> 
>> thanks,
>> 
>> Miles
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> dash-dev mailing list
>> dash-dev@eclipse.org
>> https://dev.eclipse.org/mailman/listinfo/dash-dev
>>  
> 
> _______________________________________________
> dash-dev mailing list
> dash-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/dash-dev

_______________________________________________
dash-dev mailing list
dash-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/dash-dev

Reply via email to