From 6758ff255afbb60a4586f66643b052d2906f09b2 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 19 Nov 2009 02:44:20 +0000 Subject: [PATCH] automating a remote build via Hudson git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23844 71c3de6d-444a-0410-be80-ed276b4c234a --- msi/build-on-hudson.sh | 7 +++++++ msi/remote-execute.sh | 3 +++ 2 files changed, 10 insertions(+) create mode 100755 msi/build-on-hudson.sh create mode 100644 msi/remote-execute.sh diff --git a/msi/build-on-hudson.sh b/msi/build-on-hudson.sh new file mode 100755 index 0000000000..e79daaa489 --- /dev/null +++ b/msi/build-on-hudson.sh @@ -0,0 +1,7 @@ +#!/bin/bash -ex +if [ ! -e "$1" ]; then + echo "Usage: build-on-hudson path/to/war" + exit 1 +fi +tar cvzf bundle.tgz FindJava.java build.sh hudson.wxs +java -jar hudson-cli.jar dist-fork -z bundle.tgz -f hudson.war="$1" -l windows -Z result.tgz bash build.sh hudson.war diff --git a/msi/remote-execute.sh b/msi/remote-execute.sh new file mode 100644 index 0000000000..68d9c0be4d --- /dev/null +++ b/msi/remote-execute.sh @@ -0,0 +1,3 @@ +#!/bin/bash -ex +tar cvzf send.tgz FindJava.java build.sh hudson.wxs +java -jar hudson-cli.jar dist-fork -z send.tgz -l windows -f hudson.war="$1" -Z result.tgz bash build.sh hudson.war