Skip to content

Commit

Permalink
take the output file name as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Mar 21, 2011
1 parent 0aed9e9 commit 65d3454
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions msi/build-on-jenkins.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/bin/bash -ex
if [ ! -e "$1" ]; then
echo "Usage: build-on-jenkins path/to/war"
if [ "$2" == "" ]; then
echo "Usage: build-on-jenkins path/to/war path/to/output/msi"
exit 1
fi
tar cvzf bundle.tgz FindJava.java build.sh jenkins.wxs
java -jar jenkins-cli.jar dist-fork -z bundle.tgz -f jenkins.war="$1" -l windows -Z result.tgz bash -ex build.sh jenkins.war
v=$(unzip -p "$1" META-INF/MANIFEST.MF | grep Implementation-Version | cut -d ' ' -f2 | tr -d '\r')
java -jar jenkins-cli.jar dist-fork -z bundle.tgz -f jenkins.war="$1" -l windows -F "jenkins-$v.msi=$2" bash -ex build.sh jenkins.war

# hack until we fix distfork to avoid pointless intermediate directory
rm -rf distfork*
tar xvzf result.tgz
mv distfork*/jenkins-*.msi .

0 comments on commit 65d3454

Please sign in to comment.