Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (8 sloc) 406 Bytes
#!/bin/bash -ex
if [ "$2" == "" ]; then
echo "Usage: build-on-jenkins path/to/war path/to/output/msi"
exit 1
tar cvzf bundle.tgz jenkins.wxs
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 jenkins.war
Jump to Line
Something went wrong with that request. Please try again.