Home

LuntBuild - Build Automation and Management FAQ

image

Contents

1. Just modify the following line SET WRITE_DELAY 60 Actually Luntbuild 1 2 1 set this value to 0 to disable any write delay How can I configure the database connection pool to increase it LuntBuild FAQ 1 3 Luntbuild Hibernate doesn t close connections it pools them You can increase connection pool only for external database not for internal HSQLDB To increase size of the connection pool do the following 1 Make sure you are connecting to some serial database instead embedded HSQLDB 2 Open lt Luntbuild dir gt web WEB INF applicationContext xml file edit dataSource element and change maxIdle and maxActive child element to some proper value 5 is normally OK 3 Increase the allowed connections to your database 4 Lower the number of allowed build threads in Luntbuild until you stop getting the error When using Microsoft SQLServer Luntbuild fails at first What should I do You can try following small change in the WEB INF applicationContext xml lt bean id hibernateSessionFactory class org springframework orm hibernate3 LocalSessionFactoryBean aoe lt property name schemaUpdate gt lt value gt true lt value gt lt property gt lt bean gt Setting schemaUpdate to true enables the session factory to create or update the required schema ac cording to the hibernate mapping Development FAQ 1 1 How do I build and debug Luntbuild Please see Luntbuild Wiki http www javafor
2. 2 I am currently using Luntbuild to kick off a nightly build process After the build I would like to have Luntbuild run one script which kills a few running services and then another script which restarts these services using the codebase I just built The problem I run into is that the second script let s call it start sh launches a bunch of java processes and then exits but luntbuild won t continue with the build un til those child processes terminate as well I need to leave those processes up and running long after the build completes Do I have any options for this Great response from Derek Chiles While I m sure you have several options I suggest the excellent Java Service Wrapper http wrapper sf net You ll need to modify your code a little but you ll get a clean cross platform way to start stop restart your services On Unix you ll get an init style script and on Win dows you ll be able to integrate your app as a system service if you like 1 13 How to disable anonymous access to view builds Starting with version 1 3 Luntbuild supports anonymous access to view builds and other Luntbuild arti facts To disable anonymous login you will have to Edit lt server gt webapps luntbuild luntbuild login html and remove line lt a href app do service reset Home amp relogin no gt Anonymous lt a gt Edit lt server gt webapps luntbuild W EB INF applicationContext xml and remove line lt bean id anonymousProcessingFilter cl
3. LuntBuild Build Automation and Management FAQ LuntBuild Build Automation and Management FAQ Copyright 2005 Luntbuild Table of Contents Te Fant Bund FAQ oerni toore r e EE E eE EEE EET en eees tev eeds IEEE EN Chapter 1 LuntBuild FAQ LuntBuild Build Automation and Management FAQ General FAQ 1 1 How to configure several projects to use shared artifacts for example shared jars 1 Setup a project for instance common and configure it to checkout your shared jars And configure builder for this project to publish shared jars to the artifacts directory of this project 2 Setup other projects for instance projectA and projectB These projects will use shared jars mentioned in step 1 When setting up these projects you are not need to checkout shared jars 3 Edit all schedules under projects created in step 2 and configure them to be dependent on related schedules under the common project By doing this Luntbuild will make sure the common project is up to date before build projectA and projectB 4 Edit builders of projectA and projectB pass in publishing directory of the shared jars as build prop erties sharedJarsDir system project common schedule build schedule name lastSuccessBuild 5 In Ant script of projectA and projectB access directory sharedJarsDir to use your shared jars Of course for shared jars stuff Maven http maven apache org is a more suitable option Lu
4. ass org acegisecurity providers anonymous AnonymousProc lt property name key gt lt value gt anonymous lt value gt lt property gt lt property name userAttribute gt lt value gt anonymous ROLE_ANONYMOUS lt value gt lt property gt lt bean gt lt bean id anonymousAuthenticationProvider class org acegisecurity providers anonymous Anonymo lt property name key gt lt value gt anonymous lt value gt lt property gt lt bean gt You have to remove anonymousProcessingFilter from filterChainProxy bean 1 14 How do I get Luntbuild to send me an email if Luntbuild fails You can configure Luntbuild logging system log4j to send email when an error is logged or warning if you prefer Just add mail to the log4j rootCategory in log4j properties and add the following to log4j properties log4j appender mail org apache log4j net SMTPAppender log4j appender mail To app errors yourdomain com log4j appender mail From app errors yourdomain com log4j appender mail SMTPHost mail yourdomain com log4j appender mail Threshold ERROR log4j appender mail BufferSize 1 log4j appender mail Subject Application Error log4j appender Mail layout org apache log4j PatternLayout o log4j appender Mail layout ConversionPattern d 5p c x Sm n LuntBuild FAQ 1 15 1 16 I would like to run 3 version numbers in the traditional major minor build style How do I do that release schedule increases release part of the version whi
5. ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca cal cal tal cal cal cal CaL cal cal cal cal cal tal tal tal cal cal cal tal cal cal cal cal ina ina ina ina ina ina ina core ina ina core ina core ina ina core ina ina core ina ina ina ina core ApplicationFilterChain in core core core core core core core NANNANNNANNN valves core S valves ina ina core core core core core core ANNNANN core ApplicationFilterChain do ina ina tandardWrapperValve invo tandardPipeline Standard tandardPipeline invoke S tandardPipelineSStandard tandardPipeline invoke S tandardPipelineSStandard tandardPipeline Standard ErrorReportValve invoke tandardPipeline Standard tandardPipelineSStandard tandardPipeline invoke S ttpllProcessor process H he tapestry engine AbstractEngine service AbstractEngine java 872 he tapestry ApplicationServlet doService ApplicationServlet java 197 he tapestry ApplicationServlet doGet ApplicationServlet java 158 javax servlet http HttpServlet service HttpServlet java 696 javax servlet http HttpServlet service HttpServlet java 809 ina ternalDoFilter ApplicationFilterChain java 200 Filter ApplicationFilterChain java 146 ke StandardWrapperValve java 209 PipelineValveContext invokeNext StandardPipeline tandardPi
6. case FAQ 1 1 I have read in the doucmentation that the UCM module does not support labeling To anyone using Lunt build with UCM how are you creating new baselines labels when the build is successful From Gordon McNair Our solution has been to have targets in our build that apply the baseline This was set up before we started using luntbuild So the continuous build mechanism doesn t do it directly So our build process in a nutshell is 1 Set the baseline on the source promotion level Rejected 2 Do build operations 3 Set the baseline promotion level to Built on successful build Database FAQ Ly 1 2 When and how are the project definitions and other Luntbuild data persisted to disk in the out of the box Luntbuild distribution Luntbuild by default uses HSQL database to store project definitions The data for the database is stored in lt luntbuild install dir gt db I recommend to backup the lt luntbuild install dir gt daily most companies have some kind of autamated backup strategies and if you need to restore the database you can just 1 Stop luntbuild or the whole servlet container application server 2 Restore lt luntbuild install dir gt db directory 3 Start luntbuild or the whole servlet container application server The default database write delay time in Luntbuild 1 2 is 60 seconds You can modify default write inter val in the db luntbuild script file in your Luntbuild installation
7. ed or the current build has failed and the last build is successful What is the initial username and password after Luntbuild installation The initial site admin username password is luntbuild luntbuild It is stored at lt tomcat gt webapps luntbuild WEB INF applicationContext xml The user manual explains this in more detail I m surprised to find that only recent VCS committers will get build result notifications Is there any way to send build notification email to some designated person besides the developers By default Luntbuild only sends notifications to recent VCS committers However you can configure the notification users property in projects basic tab to add users to receive build result notifications We are using Ant builder to run our build on Windows platform and we set the build success condition to be result 0 But Luntbuild still signals the build success while actually the Ant builder fails What gives Luntbuild s Ant builder calls path to ant bat provided by ant distribution to perform build on Windows platform The ant bat will internally call java exe to do its job When there is a build error java exe will 2 LuntBuild FAQ fail However the error code will not get propagated to the caller of ant bat Luntbuild in this case This is an known behavior of Windows batch file To overcome that you can set build success condition as result 0 and logContainsLine BUILD SUCCESSFUL 1 1
8. ending builds display builds tab and click on schedule The schedule page will display showing detailed information about that particular schedule including pending build queue for that schedule Can I include date and time in the build version Yes you can for example if you want the version be foo yyMMDD_HHMM you can configure next build version property of a project as follows foo shortYear numericMonth dayOfMonth _ hour minute For luntbuild 1 1 1 or foo S shortYear numericMonth dayOfMonth _S hour minute For latest luntbuild code in Where shortYear numericMonth dayOfMonth hour minute are all OGNL expressions OGNL expressions can be used in build version string please refer to Luntbuild user manual We are using Luntbuild for Continuous Integration and we set the continuous integration period to be 60 seconds Sometimes for some reason my version control system goes down and Luntbuild will send build failure notification every 60 seconds which is a lot of emails Is there any way to let Luntbuild send fail notification mail only once upon such failures And send success notification email again when the ver sion control system comes up You should consider using notify when status changed notification strategy to avoid multiple build fail ure emails in such a case This notification strategy will only send out mail when the current build is suc cessful and the last build has fail
9. ge com proj doc display WikiDocument do doc_id 1433 for details
10. le nightly schedule increases iteration part of the version When release part of the version changes iteration part should be reset to 1 Define the following variables for the project fixPart foo 1 1 releasePart 1 iterationPart 0 Define next build version of nightly schedule as S project var fixPart project var releasePart build S project var iterationPart increas Define next build version of release schedule as S project var fixPart project var iterationPart setValue 1 project var releasePart in This way builds in release schedule will get versions like foo 1 1 1 foo 1 1 2 foo 1 1 3 and builds in nightly schedule will get versions like foo 1 1 1 build 1 foo 1 1 1 build 2 foo 1 1 1 build3 foo 1 1 2 build 1 foo 1 1 2 build2 How do I parse different parts of the build version From Scott Herbert This is how I manipulate buildVersion lt target name load buildproperties gt lt propertyregex property major input buildVersion regexp d d d d lt propertyregex property minor input buildVersion regexp d d d d lt propertyregex property type input buildVersion regexp d d d d t s lt propertyregex property number input buildVersion regexp dt d d d lt target gt buildVersion is set to FOO 1 2 3 4 by luntbuild and this creates se
11. n property to yes 122 I have a problem using Luntbuild with cygwin cvs the automatically generated cvspass file seems invalid to cygwin cvs Is there any workaround For cygwin cvs please goto cvs adaptor editing page set use cygwin cvs property to yes 1 3 I use luntbuild to perform build for my cvs repository However the error 2005 12 01 14 37 07 552 WARN com_luntsys luntbuild BuildGenerator history cvs history aborted Can t parse date time 2005 11 30 17 31 40 occurs after I issue the build command What s wrong It seems that cvs 1 9 and erler versions have a y2k bug which makes commands with dates like cvs his tory to fail with dates above year 2000 Please upgrade to cvs 1 11 or higher 1 4 LuntBuild FAQ Does Luntbuild work with alias modules No not exactly Luntbuild can not work with alias modules but you can make alias modules seem like regular modules to Luntbuild If you set the alias module to checkout to a folder named after itself then Luntbuild can treat the alias module as a regular module Example alias module AliasModule d AliasModule modulel module2 Perforce FAQ 1 1 1 2 1 3 How do you set up Perforce client spec if multiple users use Luntbuild e I setup Luntbuild work directory to opt builds e Iname my project mybuilds myproject e I specify client path in p4 clientspec to myspec and I got build going in opt builds mybuilds myproject e Iset
12. ntbuild can work gracefully with Maven such as instruct Maven to use Luntbuild generated version numbers etc 1 2 Is it possible to control maximum number of concurrent builds on a particular Luntbuild server The property Number of build threads in the properties tab controls concurrent number of build threads used by Luntbuild 1 3 How do you define top location of your Ant target execution If you are using JNI or your application configuration depends on relative location of the files you might have a problem running the application using Luntbuild To resolve the issue define environment variable with the top directory of your application and use this variable to define location s in the configuration of your application Then define the same environment variable in the appropriate Luntbuild builder 1 4 How do you create a new Project Build Schedule To create a new Project Build Schedule etc look in upper right corner just below the Tabs for an icon Fy The icon is quite small and for first time user it is hard to find But as soon as you get used to look for it in all the tabs pages the small icon makes for nice and compact user interface 1 5 My favorite VCS doesn t work with Luntbuild LuntBuild FAQ 1 6 1 7 1 8 1 9 1 10 Make sure that external VCS application like cvs or p4 is in your default path when you are starting Lunt build How do I find pending builds To find p
13. parate properties for each version component The lt propertyregex gt task in from ANT Contrib http ant contrib sf net Application Server FAQ 1 1 I am running Luntbuild on tomcat4 1 31 on Linux But after installing Luntbuild and accessing it in the browser I get the following stack trace starting with com luntsys luntbuild utility Luntbuild getDao Luntbuild java 118 com luntsys luntbuild web BuildsTab loadData BuildsTab java 63 com luntsys luntbuild web Home activateExternalPage Home java 67 What s wrong Full Stack Trace com luntsys luntbuild utility Luntbuild getDao Luntbuild java 118 com luntsys luntbuild web BuildsTab loadData BuildsTab java 63 com luntsys luntbuild web Home activateExternalPage Home java 67 com luntsys luntbuild web Home pageActivated Home java 99 org apache tapestry engine HomeService service HomeService java 64 eH HK 4 LuntBuild FAQ 1 2 AEO AAA OE OE OE OE OE OE OE OE OE OE OE OE OE OE OE O OE OE OE O E E E O HE org org org org org org org org org org org org org org org org org org org org org org org org org org org org org org org apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac apac ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne ca ne
14. peline java 433 ontainerBase invoke ContainerBase java 948 tandardContextValve invoke StandardContextValve java 144 PipelineValveContext invokeNext StandardPipeline tandardPipeline java 433 ontainerBase invoke ContainerBase java 948 tandardContext invoke StandardContext java 2358 tandardHostValve invoke StandardHostValve java 133 PipelineValveContext invokeNext StandardPipeline ErrorDispatcherValve invoke ErrorDispatcherValve java 118 PipelineValveContext invokeNext StandardPipeline ErrorReportValve java 116 PipelineValveContext invokeNext StandardPipeline tandardPipeline invoke StandardPipeline java 433 ontainerBase invoke ContainerBase java 948 tandardEngineValve invoke StandardEngineValve java 127 PipelineValveContext invokeNext StandardPipeline tandardPipeline java 433 ontainerBase invoke ContainerBase java 948 he coyote tomcat4 CoyoteAdapter service CoyoteAdapter java 152 he coyote httpll H he coyote httpll H ttpllProcessor java 799 ttpl1lProtocolS HttpllConnectionHandler processConnection HttpllProtocol j he tomcat util net TcpWorkerThread runIt PoolTcpEndpoint java 577 he tomcat util threads ThreadPoolSControl java lang Thread run Thread java 534 Runnable run ThreadPool java 683 Check your web xml file and verify that installDir parameter is correctly pointing to the Luntbuild in stallation directory not the same location as the l
15. readPoolSControlRunnable run ThreadPool java 683 beans fa beans fa beans fa beans fa context support AbstractApplicationContext refresh AbstractApplicationContext ja web context support XmlWebApplicationContext refresh XmlWebApplicationContext ja ctory BeanCreationException Error creating bean with name hibernateSes ctory support AbstractAutowireCapableBeanFactory createBean AbstractAuto ctory support AbstractBeanFactory getBean AbstractBeanFactory java 159 ctory support DefaultListableBeanFactory preInstantiateSingletons Defaul let GenericServlet init GenericServlet java 211 org apache tapestry ApplicationServlet init Unknown Source LuntBuild FAQ org apache catalina valves ErrorReportValve invoke ErrorReportValve java 118 org apache coyote tomcat5 CoyoteAdapter service CoyoteAdapter java 160 org apache coyote httpll HttpllProcessor process Httpll1lProcessor java 799 org apache coyote httpll1 Httpl1lProtocolS Http11ConnectionHandler processConnection Http11Protocol jav org apache tomcat util net TcpWorkerThread runIt PoolTcpEndpoint java 577 org apache tomcat util threads ThreadPool SControlRunnable run ThreadPool java 683 java lang Thread run Thread java 567 The full stack trace of the root cause is available in the Apache Tomcat 5 0 28 logs This looks like per mission issue Does the user owning tomcat process has read write access to the Luntbuild installation di rectory the directory you ex
16. tract luntbuild zip package to 1 3 I m running Luntbuild on Linux platform During starting up Tomcat gives the following error 2005 06 22 13 49 53 StandardContext luntbuild Exception starting filter Acegi Security System for S java lang IllegalStateException No WebApplicationContext found no ContextLoaderListener registered at org springframework web context support WebApplicationContextUtils getRequiredWebApplicationConte Please make sure the process running tomcat has full access rwx to the Luntbuild installation directory the directory in which you can find sub directories such as db logs etc 1 4 Unicode character s in artifacts file name If there are unicode character in artifacts file name it will have problem downloading from Luntbuild QuickBuild running with Tomcat5 To address this problem open file lt tomcat install dir gt conf server xml navigate to directive of port 8080 s connector your port maybe different from 8080 and add attribute URIEncoding UTF 8 Cvs FAQ 1 1 I use luntbuild to perform build for my cvs repository However the error 2004 10 14 08 41 15 657 Thread 41 WARN com luntsys luntbuild build BuildGenerator log log invalid option S occurs af ter I issue the build command What s wrong The reason is that the cvs version you are using is too old and does NOT support S option However you can turn off S option at cvs adaptor editing page just set disable S optio
17. untbuild webapp directory under Tomcat The Lunt build installation directory is the directory you extract luntbuild zip file to and there are several subdirec tories inside it such as db logs work publish etc After installation Luntbuild gives me the HTTP Status 500 error page with message The server en countered an internal error that prevented it from fulfilling this request when I point my browser to Luntbuild What s wrong HTTP Status 500 type Exception report message description The server encountered an internal error exception that prevented it from fulfilling this reque javax servlet ServletException Servlet init for servlet luntbuild threw exception org apache org apache org apache org apache org apache org apache java lang 1 root cause org springframework org springframework framework org spring org spring org spring org spring com luntsys luntbuild LuntBuildServlet init LuntBuildServlet java 103 javax serv coyote coyote tomcat tomcat Thread run Thread java 567 framework framework framework catalina valves ErrorReportValve invoke ErrorReportValve java 118 coyote tomcat5 CoyoteAdapter service CoyoteAdapter java 160 httpll HttpllProcessor process HttpllProcessor java 799 httpl11 Http11Protocol Http11ConnectionHandler processConnection Http11Protocol jav util net TcpWorkerThread runIt PoolTcpEndpoint java 577 util threads Th
18. up build file to build xml How do exclude files and directories in Perforce VCS using Luntbuild modules To exclude files or directories create a separate module for each exclussion and precede the Depot path property with a minus sign as follows Depot path depot side Client path client side How to handle different timezone of Perforce and Luntbuild Having the VCS and Luntbuild in different timezones is not currently supported So although we couldn t find a simple solution the work around is to modify the server startup options For Tomcat this went something along the lines of set CATALINA_OPTS Duser timezone P4_SVR_TIMEZONE The downside is that you have to do the mental arithmetic when setting and interpreting the build times however you re probably already used to doing that when working with Perforce remotely anyway Visual Sourcesafe FAQ 1 1 What Date format should I use with the Visual Sourcesafe Adapter in the English speaking countries with different date format like UK Australia Canada T LuntBuild FAQ The default Datetime value is suitable for English language operating systems using US locale For other English speaking countries with different date format like UK Australia and Canada the Visual Source safe Date format to use assuming you re using the appropriate locale setup as Visual Sourcesafe honors the local locale settings should be as follows d M yy H mm Clear

Download Pdf Manuals

image

Related Search

Related Contents

User Guide - Diltronic  (M)SDS - 純正化学株式会社 製品検索・MSDS検索  Chaudiere mode d`emploi  Samsung LD220 Lietotāja rokasgrāmata    共通取扱説明書  Foxboro J8721 型 比抵抗計 取扱説明書  Philips 29PT8521 29" real flat 100Hz digital scan TV  NP730 UG - Netcomm  

Copyright © All rights reserved.
Failed to retrieve file