Last modified by Bastian Triller on 2012/08/24 19:38

From version 123.1
edited by Pascal Robert
on 2012/08/24 19:38
Change comment: There is no comment for this version
To version 124.1
edited by Pascal Robert
on 2012/08/24 19:38
Change comment: Migrated to Confluence 5.3

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +Using Jenkins Build Server with WebObjects Projects
Tags
... ... @@ -1,0 +1,1 @@
1 +build|favourite|jenkins
Jenkins Installer.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +103.2 KB
Content
JenkinsInstaller.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +103.2 KB
Content
setupWorkspace.sh
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +2.7 KB
Content
... ... @@ -1,0 +1,78 @@
1 +#!/bin/bash
2 +# Call this from Hudson as the first build stage:
3 +#
4 +# /Path/to/Deps/setupWorkspace.sh "${WORKSPACE}" 53
5 +#
6 +# Expects a Deps folder that contains:
7 +# this script
8 +# WebObjects53 folder with System/Library/Frameworks, etc
9 +# WebObjects54 folder with the same (if you use 54)
10 +# Wonder-latest-Frameworks-53.tar.gz (unless you build Wonder in Hudson)
11 +# Wonder-latest-Frameworks-54.tar.gz (if you use 54, unless you build Wonder in Hudson)
12 +# woproject.jar (WOLips woproject.jar ant tasks)
13 +
14 +WORKSPACE=$1
15 +DEPS=`dirname $0`
16 +WO_VERSION=$2
17 +ROOT=$WORKSPACE/Root
18 +WONDER=Wonder-latest-Frameworks-${WO_VERSION}.tar.gz
19 +WOPROJECT=woproject.jar
20 +JOB_ROOT=${WORKSPACE}/../..
21 +
22 +if [ "$WORKSPACE" == "" ]; then
23 + echo "You must provide a workspace setting."
24 + exit 1
25 +fi
26 +
27 +if [ "$WO_VERSION" == "" ]; then
28 + echo "You must provide a WO version."
29 + exit 1
30 +fi
31 +
32 +# Make sure the Libraries folder exists
33 +mkdir -p ${WORKSPACE}/Libraries
34 +
35 +# Setup System and Library
36 +#rm -rf ${ROOT}
37 +mkdir -p ${ROOT}
38 +mkdir -p ${ROOT}/lib
39 +cp ${DEPS}/${WOPROJECT} ${ROOT}/lib
40 +rm -rf ${ROOT}/Library/Frameworks
41 +mkdir -p ${ROOT}/Library/Frameworks
42 +mkdir -p ${ROOT}/Library/WebObjects/Extensions
43 +mkdir -p ${ROOT}/Network/Library/Frameworks
44 +mkdir -p ${ROOT}/User/Library/Frameworks
45 +rm ${ROOT}/System
46 +ln -sf ${DEPS}/WebObjects${WO_VERSION}/System ${ROOT}/System
47 +
48 +# Setup Wonder
49 +# If you want to use the Wonder in Deps, use this:
50 +(cd ${ROOT}/Library/Frameworks; tar xfz ${DEPS}/${WONDER})
51 +# If you build Wonder in Hudson, use this:
52 +#(cd ${ROOT}/Library/Frameworks; tar xfz ${JOB_ROOT}/Wonder/lastSuccessful/archive/dist/Wonder-*-Frameworks-${WO_VERSION}.tar.gz)
53 +
54 +# Copy other frameworks from Hudson build folders based on .classpath entries -- if you don't build everything
55 +# in Hudson, you will need to copy these in yourself
56 +FRAMEWORKS=`cat ${WORKSPACE}/.classpath | grep WOFramework/ | sed 's#.*WOFramework/\([^"]*\)"/>#\1#'`
57 +for FRAMEWORK in $FRAMEWORKS; do
58 + if [ -e "${JOB_ROOT}/${FRAMEWORK}" ]; then
59 + (cd ${ROOT}/Library/Frameworks; tar xfz ${JOB_ROOT}/${FRAMEWORK}/lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz)
60 + fi
61 +done
62 +
63 +# Setup wolips.properties
64 +cat >> ${ROOT}/wolips.properties << END
65 +wo.system.root=${ROOT}/System
66 +wo.user.frameworks=${ROOT}/User/Library/Frameworks
67 +wo.system.frameworks=${ROOT}/System/Library/Frameworks
68 +wo.bootstrapjar=${ROOT}/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
69 +wo.network.frameworks=${ROOT}/Network/Library/Frameworks
70 +wo.api.root=/Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API/
71 +wo.network.root=${ROOT}/Network
72 +wo.extensions=${ROOT}/Library/WebObjects/Extensions
73 +wo.user.root=${ROOT}/User
74 +wo.local.frameworks=${ROOT}/Library/Frameworks
75 +wo.apps.root=${ROOT}/Library/WebObjects/Applications
76 +wo.local.root=${ROOT}
77 +END
78 +