[Anthill-pro] Ant script in Generic Job not running

Jeffrey Rodgers -T (jerodger - Adecco at Cisco) jerodger at cisco.com
Wed Dec 13 17:31:28 CST 2006


OK, I'll answer my own question. Yes, that script works. And I wil
assume that anytime I use a relative directory in a job that I first
must set the Work Directory unless some other step sets it for me.

Jeff

-----Original Message-----
From: anthill-pro-bounces at caladin.urbancode.com
[mailto:anthill-pro-bounces at caladin.urbancode.com] On Behalf Of Jeffrey
Rodgers -T (jerodger - Adecco at Cisco)
Sent: Wednesday, December 13, 2006 5:17 PM
To: rws at urbancode.com; anthill-pro at caladin.urbancode.com
Subject: RE: [Anthill-pro] Ant script in Generic Job not running

Oh.

Does this apply to all Generic jobs?

Can I use the same script as the Work Directory script in the source
module?
	
${anthill3/work.dir}/projects/${bsh:PathHelper.makeSafe(ProjectLookup.ge
tCurrent().getName())}

-- Jeff


-----Original Message-----
From: anthill-pro-bounces at caladin.urbancode.com
[mailto:anthill-pro-bounces at caladin.urbancode.com] On Behalf Of Ryan
Smith
Sent: Wednesday, December 13, 2006 5:03 PM
To: anthill-pro at caladin.urbancode.com
Cc: anthill-pro at caladin.urbancode.com
Subject: Re: [Anthill-pro] Ant script in Generic Job not running

It looks like you need a Set Working Directory step in your generic job.

It should be the first step.


Jeffrey Rodgers -T (jerodger - Adecco at Cisco) wrote:
>
> I am running several jobs in a workflow in AnthillPro3. One of these 
> jobs is a Build Job running an ant script. Another job is a Generic 
> Job running the same ant script with a different target. The first ant

> invocation works the second one does not. Here is the error I am 
> getting, any clues?
>
>  
>
> BTW, ANT_HOME and JAVA_HOME resolve fine in the other ant invocation 
> and show up properly in the Agent environment variables.
>
>  
>
> 109837777 DEBUG 642 0 - doResolve() varName: ${env/ANT_HOME}
> 109837777 INFO  642 0 - Did not evaluate script because the script was
not in ${bsh:} format.  Script: ${env/ANT_HOME}
> 109837777 DEBUG 642 0 - doResolve() varName: ${env/JAVA_HOME}
> 109837778 INFO  642 0 - Did not evaluate script because the script was
not in ${bsh:} format.  Script: ${env/JAVA_HOME}
> 109837778 DEBUG 642 0 - beginTransaction() status.isNewTransaction():
true
> 109837778 DEBUG 642 0 - Restoring project 25 with user anthill
> 109837782 DEBUG 642 0 - unmarshall() QPselector className:
com.urbancode.anthill3.domain.project.QuietPeriodConfigChangeLog
> 109837782 DEBUG 642 0 - cacheObject() persistent: Project {
>   id: 25
>   version: 4
>   name: Integration 2.4f
>   description: Integration middleware and Provisioner UI
>   quiet period: 300000
>   builderList [ }
> 109837782 DEBUG 642 0 - setUnitOfWork() class:
com.urbancode.anthill3.domain.project.Project, uow:
com.urbancode.anthill3.persistence.UnitOfWorkDefault at 1ac0698
> 109837782 DEBUG 642 0 - cacheObject() persistent: Project {
>   id: 25
>   version: 4
>   name: Integration 2.4f
>   description: Integration middleware and Provisioner UI
>   quiet period: 300000
>   builderList [ }
> 109837782 DEBUG 642 0 - setUnitOfWork() class:
com.urbancode.anthill3.domain.project.Project, uow:
com.urbancode.anthill3.persistence.UnitOfWorkDefault at 1ac0698
> 109837782 DEBUG 642 0 - beginTransaction() status.isNewTransaction():
true
> 109837783 DEBUG 642 0 - cacheObject() persistent: ServerGroup -
Build-Farm
> 109837783 DEBUG 642 0 - setUnitOfWork() class:
com.urbancode.anthill3.domain.servergroup.ServerGroup, uow:
com.urbancode.anthill3.persistence.UnitOfWorkDefault at 1ac0698
> 109837784 DEBUG 642 0 - cacheObject() persistent: ServerGroup -
Build-Farm
> 109837784 DEBUG 642 0 - setUnitOfWork() class:
com.urbancode.anthill3.domain.servergroup.ServerGroup, uow:
com.urbancode.anthill3.persistence.UnitOfWorkDefault at 1ac0698
> 109837784 DEBUG 642 0 - beginTransaction() status.isNewTransaction():
true
> 109837785 DEBUG 642 0 - registerDirty() persistent:
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace [
> ]
> 109837785 DEBUG 642 0 - captureState() adding to cache, persistent:
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace [
> ]
> 109837785 DEBUG 642 0 - setUnitOfWork() class:
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace, uow:
com.urbancode.anthill3.persistence.UnitOfWorkDefault at 1ac0698
> 109851392 DEBUG 642 0 - registerDirty() persistent:
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace [
> ]
> 109851392 DEBUG 642 0 - captureState() already in cache, persistent:
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace [
> ]
> 109851392 DEBUG 642 0 - setUnitOfWork() class:
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace, uow:
com.urbancode.anthill3.persistence.UnitOfWorkDefault at 1ac0698
> 109851392 DEBUG 642 0 - captureState() dirtyObjectList element class:
class
com.urbancode.anthill3.domain.jobtrace.buildlife.BuildLifeJobTrace, id:
642
> 109851392 DEBUG 642 0 - org.apache.bsf.BSFException: The application
script threw an exception: java.lang.NullPointerException: Null Pointer
in Method Invocation BSF info: scripts/ant/ant-build.bsh at line: 24
> com.urbancode.command.CommandException: org.apache.bsf.BSFException:
The application script threw an exception:
java.lang.NullPointerException: Null Pointer in Method Invocation BSF
info: scripts/ant/ant-build.bsh at line: 24
>         at
com.urbancode.command.shell.scripted.ScriptedShellCommand.execute(Script
edShellCommand.java:57)
>         at
com.urbancode.devilfish.services.command.CommandExecutionThread.run(Comm
andExecutionThread.java:69)
> Caused by: org.apache.bsf.BSFException: The application script threw
an exception: java.lang.NullPointerException: Null Pointer in Method
Invocation BSF info: scripts/ant/ant-build.bsh at line: 24
>         at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
>         at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
>         at org.apache.bsf.BSFManager$6.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.apache.bsf.BSFManager.exec(Unknown Source)
>         at
com.urbancode.command.shell.scripted.ScriptedShellCommand.execute(Script
edShellCommand.java:53)
>         ... 1 more
>
>  
>
>  
>
> **Jeff Rodgers**
> **Test Developer**
> **Customer Advocacy***
> *
> jerodger at cisco.com <mailto:jerodger at cisco.com>
> Phone :**+1-512.-340-3204**
>
> 	
>
>
> 9500 Amberglen Blvd.
> Austin, TX 78729
> United States
> www.cisco.com <http://www.cisco.com>
>
> 	
>
>  
>
>  
>
> This e-mail may contain confidential and privileged material for the 
> sole use of the intended recipient. Any review, use, distribution or 
> disclosure by others is strictly prohibited. If you are not the 
> intended recipient (or authorized to receive for the recipient), 
> please contact the sender by reply e-mail and delete all copies of 
> this message.
>
>
>  
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>   

-- 
===========================================================
Ryan Smith.           		2044 Euclid Ave., Suite 600
Lead Developer                  Cleveland, Ohio 44115
Urbancode, Inc.
                                email:  rws at urbancode.com
web:     www.urbancode.com      phone:  216-858-9000
web:     www.anthillpro.com     fax:    216-858-9602
===========================================================

_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro


More information about the Anthill-pro mailing list