updated release scripts to work with Subversion

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8362 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke 2008-04-08 04:20:24 +00:00
parent 68d5652599
commit 034417f07c
2 changed files with 7 additions and 5 deletions

View File

@ -4,7 +4,7 @@
#
pushd ../../../www/javadoc
cvs update -Pd
svn update
popd
cp -R target/checkout/core/target/apidocs/* ../../../www/javadoc
@ -20,7 +20,9 @@ find . -name "*.bak" | xargs rm
# ignore all files that are already in CVS, then
# add the rest of the files
#find . -name CVS -prune -o -exec bash in-cvs.sh {} \; -o \( -print -a -exec cvs add {} \+ \)
rcvsadd . "commiting javadoc"
#rcvsadd . "commiting javadoc"
svn add $(svn status | grep "^?" | cut -d " " -f2-)
svn commit -m "commiting javadoc"
# sometimes the first commit fails
#cvs commit -m "commit 1 " || cvs commit -m "commit 2"

View File

@ -4,7 +4,7 @@
# but Maven doesn't let me run release goals unless I have this in CVS.
# make sure we have up to date workspace
cvs -q update -Pd
svn update
tag=hudson-$(show-pom-version pom.xml | sed -e "s/-SNAPSHOT//g" -e "s/\\./_/g")
mvn -B -Dtag=$tag release:prepare || mvn -B -Dtag=$tag install release:prepare
@ -26,7 +26,7 @@ javanettasks uploadFile hudson /releases/jnlp/hudson.jar "version $id" Stable ta
# replace the jar file link accordingly
WWW=../../../www
pushd $WWW
cvs update -l
svn update
popd
jarUrl=$(cat target/upload.log | grep "^Posted" | sed -e "s/Posted //g")
perl -p -i.bak -e "s|https://.+hudson\.jar|$jarUrl|" $WWW/hudson.jnlp
@ -43,4 +43,4 @@ chmod u+x publish-javadoc.sh
./publish-javadoc.sh
cd ../../../www
cvs commit -m "Hudson $id released" changelog.html hudson.jnlp
svn commit -m "Hudson $id released" changelog.html hudson.jnlp