[Anthill-pro] Email notification template do not have all jobs
Yanko, Curtis
curt_yanko at uhc.com
Thu Nov 15 06:22:18 CST 2007
Definitelyupgrade tolatest version andif it persist at leastUrbancode
support wont have to re-create a legacy environment.
===
-Curt
W: 860.702.9059
M: 860.881.2050
-----Original Message-----
From: anthill-pro-bounces at caladin.urbancode.com
[mailto:anthill-pro-bounces at caladin.urbancode.com] On Behalf Of Uldis
Karlovs-Karlovskis
Sent: Thursday, November 15, 2007 4:48 AM
To: 'AnthillPro user and support list.'
Subject: [Anthill-pro] Email notification template do not have all jobs
Hello again!
Again I have strange issue and don`t have any idea how to fix this. My
builds are running fine and there is no difference if build is success
or failed. The problem is that sometimes my e-mail reports have only
first job.
This happens only on new projects, some time ago everything was fine.
I`ve done some investigation so I`m sure that this is not because of
customized velocity template.
If I run a velocity script:
## BEGIN SECTION Subject
#set($project = $workflow.project)
$project.Name - $workflow.Name
($workflow.BuildLife.LatestStampValue):
#if($workflow.Status.Name.equalsIgnoreCase('Complete'))
Build Fixed
#elseif($workflow.Status.Name.equalsIgnoreCase('Complete (Warning)'))
Build Fixed (Warning)
#else
Build $workflow.Status.Name
#end
## END SECTION Subject
## BEGIN SECTION Body
## PROPERTY Content-Type: text/html
## PROPERTY X-Priority: 3
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<head>
<title>Workflow</title>
</head>
<body>
#set($traceLen = 0)
#foreach($mytrace in $workflow.JobTraceArray)
#set($traceLen = $traceLen + 1)
#end
Jobs in Build: $traceLen
</body>
</html>
## END SECTION Body
I get "Jobs in Build: 1". But when I open this build there is more than
1.
I`m using 3.3.2 version. Is this is fixed in later versions? Any ideas
how to workaround?
Uldis Karlovs-Karlovskis, C. T. Co
uldis.karlovs-karlovskis at ctco.lv
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
More information about the Anthill-pro
mailing list