Andy Levy | 2 May 15:19
Picon

Custom commit message when tagging?

Is it possible to set the commit message when Anthill tags a build, on
a per-project basis?  I'd like to be able to have one project commit
with "Tagging build for BETA deployment" and another use "Tagging
build for PROD deployment" for example.  Currently I only have "Copied
by Anthill" and have to look at what tag was created to determine what
actually was tagged.
Curtis Yanko | 2 May 15:39
Picon
Favicon

Re: Custom commit message when tagging?


I know that when you use the labeling script it can be set. So... in theory (I haven't done it but might dabble now that it came up) we can have the script extract a property and use it to set the comment or simply hand code the comment (which is how it is done in the example).

- Curtis Yanko
Uniprise Technologies
Mail Route: CT028-11SB
Internet email: curt_yanko-bwNoGyLvhLo@public.gmane.org
Office 860.702.9059
Cell 860.729.8171



"Andy Levy" <andy.levy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Sent by: anthill-bounces-QRS84+L55VVJU0hlZIk5wmXnswh1EIUO@public.gmane.org

05/02/2006 09:19 AM

Please respond to
Anthill user list <anthill-QRS84+L55VVJU0hlZIk5wmXnswh1EIUO@public.gmane.org>

To
"Anthill user list" <anthill-QRS84+L55VVJU0hlZIk5wmXnswh1EIUO@public.gmane.org>
cc
Subject
[Anthill] Custom commit message when tagging?





Is it possible to set the commit message when Anthill tags a build, on
a per-project basis?  I'd like to be able to have one project commit
with "Tagging build for BETA deployment" and another use "Tagging
build for PROD deployment" for example.  Currently I only have "Copied
by Anthill" and have to look at what tag was created to determine what
actually was tagged.
_______________________________________________
Anthill mailing list
Anthill-IWHQxnLZ/P3rXihlmxnZCEEOCMrvLtNR@public.gmane.org
http://lists.urbancode.com/mailman/listinfo/anthill


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.
_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Eric Minick | 2 May 16:43

Re: Custom commit message when tagging?

Wrong list there Curtis :).

What Curtis described is how this should be done in Anthill Pro.

What I believe you could do in OS is modify your repository driver's 
label pagelet. Pagelets are much like JSP pages but without taglibs and 
not tied to HTTP.

 From your description, I'm guess you are using Subversion. The change 
to the pagelet would be something like:

1) Add a project name variable to the list near the top of the file 
(after password):
      String projectName = pp.getProperty(ProjectProperties.PROJECT_NAME);

2) Change the command:
      svn copy --non-interactive -m "Copied by Anthill for <%= 
projectName %>" etc etc

The pagelets are found in conf/profiles/≤your OS>/<your driver>

Cheers,
Eric

Curtis Yanko wrote:

>
> I know that when you use the labeling script it can be set. So... in 
> theory (I haven't done it but might dabble now that it came up) we can 
> have the script extract a property and use it to set the comment or 
> simply hand code the comment (which is how it is done in the example).
>
> - Curtis Yanko
> Uniprise Technologies
> Mail Route: CT028-11SB
> Internet email: curt_yanko@...
> Office 860.702.9059
> Cell 860.729.8171
>
>
>
> *"Andy Levy" <andy.levy@...>*
> Sent by: anthill-bounces@...
>
> 05/02/2006 09:19 AM
> Please respond to
> Anthill user list <anthill@...>
>
>
> 	
> To
> 	"Anthill user list" <anthill@...>
> cc
> 	
> Subject
> 	[Anthill] Custom commit message when tagging?
>
>
>
> 	
>
>
>
>
>
> Is it possible to set the commit message when Anthill tags a build, on
> a per-project basis?  I'd like to be able to have one project commit
> with "Tagging build for BETA deployment" and another use "Tagging
> build for PROD deployment" for example.  Currently I only have "Copied
> by Anthill" and have to look at what tag was created to determine what
> actually was tagged.
> _______________________________________________
> Anthill mailing list
> Anthill@...
> http://lists.urbancode.com/mailman/listinfo/anthill
>
>
> 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.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Anthill mailing list
>Anthill@...
>http://lists.urbancode.com/mailman/listinfo/anthill
>  
>
Marcio Ribeiro | 4 May 14:33
Picon

Re: Please help me

Thank you everybody, now my build has finally succeeded, I've used your solution Curtis. In "anthill.build.tag" I chose never and left "repository.subversion.tags.url" in blank. However, what am I losing not aplying the label??? The article is very interesting but I just can't find the other parts...

Márcio

_______________________________________________
Anthill mailing list
Anthill@...
http://lists.urbancode.com/mailman/listinfo/anthill
Andy Levy | 4 May 15:04
Picon

Re: Custom commit message when tagging?

On 5/2/06, Eric Minick <etm@...> wrote:
> Wrong list there Curtis :).
>
> What Curtis described is how this should be done in Anthill Pro.
>
> What I believe you could do in OS is modify your repository driver's
> label pagelet. Pagelets are much like JSP pages but without taglibs and
> not tied to HTTP.
>
>  From your description, I'm guess you are using Subversion. The change
> to the pagelet would be something like:
>
> 1) Add a project name variable to the list near the top of the file
> (after password):
>       String projectName = pp.getProperty(ProjectProperties.PROJECT_NAME);
>
> 2) Change the command:
>       svn copy --non-interactive -m "Copied by Anthill for <%=
> projectName %>" etc etc
>
>
> The pagelets are found in conf/profiles/≤your OS>/<your driver>

Thanks Eric.  Correct on both counts; I'm running Anthill OS, and SVN
is my repository.  I'll give this a shot.
Eric Minick | 4 May 15:26

Re: Please help me

The idea behind a label is that if you send the products of your Anthill 
builds outside the dev team (to QA, production, etc) eventually someone 
is going to come back to you and say that they have a problem with 
version 1.2.3. If you have been labeling the source, it will be easy to 
find the code that is in 1.2.3 and work from there. In fact, if you look 
at how the version to label translation works, you could pretty quickly 
recreate the artifacts the person with the problem is using and test 
against them.

Marcio Ribeiro wrote:

> Thank you everybody, now my build has finally succeeded, I've used your
> solution Curtis. In "anthill.build.tag" I chose never and left "
> repository.subversion.tags.url" in blank. However, what am I losing not
> aplying the label??? The article is very interesting but I just can't 
> find
> the other parts...
>
> Márcio
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Anthill mailing list
>Anthill@...
>http://lists.urbancode.com/mailman/listinfo/anthill
>  
>
Andy Levy | 4 May 16:56
Picon

Re: Custom commit message when tagging?

On 5/4/06, Andy Levy <andy.levy@...> wrote:
> On 5/2/06, Eric Minick <etm@...> wrote:
> > Wrong list there Curtis :).
> >
> > What Curtis described is how this should be done in Anthill Pro.
> >
> > What I believe you could do in OS is modify your repository driver's
> > label pagelet. Pagelets are much like JSP pages but without taglibs and
> > not tied to HTTP.
> >
> >  From your description, I'm guess you are using Subversion. The change
> > to the pagelet would be something like:
> >
> > 1) Add a project name variable to the list near the top of the file
> > (after password):
> >       String projectName = pp.getProperty(ProjectProperties.PROJECT_NAME);
> >
> > 2) Change the command:
> >       svn copy --non-interactive -m "Copied by Anthill for <%=
> > projectName %>" etc etc
> >
> >
> > The pagelets are found in conf/profiles/≤your OS>/<your driver>
>
> Thanks Eric.  Correct on both counts; I'm running Anthill OS, and SVN
> is my repository.  I'll give this a shot.
>

I'm getting null for the projectName.  I'm assuming that it's picking
this up from anthill.project.name?  That variable is set.  I copied
your code exactly.

I can, however, run other Java code in the pagelet and I've confirmed
that the most recent version is being executed.
Eric Minick | 4 May 22:34

Re: Custom commit message when tagging?

That's what I assumed would happen. I'll have to try it out. My code was 
speculative.

-- Eric

Andy Levy wrote:

> On 5/4/06, Andy Levy <andy.levy@...> wrote:
>
>> On 5/2/06, Eric Minick <etm@...> wrote:
>> > Wrong list there Curtis :).
>> >
>> > What Curtis described is how this should be done in Anthill Pro.
>> >
>> > What I believe you could do in OS is modify your repository driver's
>> > label pagelet. Pagelets are much like JSP pages but without taglibs 
>> and
>> > not tied to HTTP.
>> >
>> >  From your description, I'm guess you are using Subversion. The change
>> > to the pagelet would be something like:
>> >
>> > 1) Add a project name variable to the list near the top of the file
>> > (after password):
>> >       String projectName = 
>> pp.getProperty(ProjectProperties.PROJECT_NAME);
>> >
>> > 2) Change the command:
>> >       svn copy --non-interactive -m "Copied by Anthill for <%=
>> > projectName %>" etc etc
>> >
>> >
>> > The pagelets are found in conf/profiles/≤your OS>/<your driver>
>>
>> Thanks Eric.  Correct on both counts; I'm running Anthill OS, and SVN
>> is my repository.  I'll give this a shot.
>>
>
> I'm getting null for the projectName.  I'm assuming that it's picking
> this up from anthill.project.name?  That variable is set.  I copied
> your code exactly.
>
> I can, however, run other Java code in the pagelet and I've confirmed
> that the most recent version is being executed.
> _______________________________________________
> Anthill mailing list
> Anthill@...
> http://lists.urbancode.com/mailman/listinfo/anthill
Felix Kollmann | 6 May 18:47
Picon

Windows Installation: System error

Hi,

I installed Anthill v1.8.3 on a Tomcat 5.5 on Win2k3 Server system. When opening the Anthill page the
request for entering the Anthill home directory comes up. After entering the correct path I receive a page
containing nothing more than "System error" and a back-link.

I have been able to reproduce the problem even on a Tomcat 4.1 . The property file exists and does correctly
contain the path: w\:\\anthill .

Anybody had the same problem and solved it?

Kind Regards
Felix

BTW: The stdout logs show the following:

Anthill: looking for file: C:\Dokumente und Einstellungen\Administrator\.anthill.anthill.properties
Anthill root dir: w:\anthill
java.lang.NullPointerException
	at com.urbancode.anthill.AnthillConfig.<init>(AnthillConfig.java:73)
	at com.urbancode.anthill.Anthill.initialize(Anthill.java:466)
	at com.urbancode.anthill.Anthill.<init>(Anthill.java:150)
	at com.urbancode.anthill.Anthill.getAnthill(Anthill.java:111)
	at com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:93)
	at com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:114)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1196)
	at java.lang.Thread.run(Thread.java:595)
16:46:48:875 [http-80-1] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/anthill].[jsp]  -
Servlet.service() for servlet jsp threw exception
java.lang.Exception: ANTHILL singleton construction error.
	at com.urbancode.anthill.Anthill.<init>(Anthill.java:133)
	at com.urbancode.anthill.Anthill.getAnthill(Anthill.java:104)
	at org.apache.jsp.style.anthillStyle_jsp._jspService(anthillStyle_jsp.java:46)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1196)
	at java.lang.Thread.run(Thread.java:595)
Eric Minick | 6 May 22:28

Re: Windows Installation: System error

Felix,

I am not sure what the problem is, but I do have two questions to get 
started with.
1) Could you share the contents of the file: 
w:\anthill\projects\anthill.registry?
2) Is Tomcat running as a service? If so, do you have the same problem 
when running tomcat from the batch files?

Thanks,
Eric

Felix Kollmann wrote:

>Hi,
>
>I installed Anthill v1.8.3 on a Tomcat 5.5 on Win2k3 Server system. When opening the Anthill page the
request for entering the Anthill home directory comes up. After entering the correct path I receive a page
containing nothing more than "System error" and a back-link.
>
>I have been able to reproduce the problem even on a Tomcat 4.1 . The property file exists and does correctly
contain the path: w\:\\anthill .
>
>Anybody had the same problem and solved it?
>
>Kind Regards
>Felix
>
>
>
>BTW: The stdout logs show the following:
>
>
>Anthill: looking for file: C:\Dokumente und Einstellungen\Administrator\.anthill.anthill.properties
>Anthill root dir: w:\anthill
>java.lang.NullPointerException
>	at com.urbancode.anthill.AnthillConfig.<init>(AnthillConfig.java:73)
>	at com.urbancode.anthill.Anthill.initialize(Anthill.java:466)
>	at com.urbancode.anthill.Anthill.<init>(Anthill.java:150)
>	at com.urbancode.anthill.Anthill.getAnthill(Anthill.java:111)
>	at com.urbancode.anthill.web.admin.AnthillBaseServlet.processRequest0(AnthillBaseServlet.java:93)
>	at com.urbancode.anthill.web.admin.AnthillBaseServlet.doGet(AnthillBaseServlet.java:114)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
>	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1196)
>	at java.lang.Thread.run(Thread.java:595)
>16:46:48:875 [http-80-1] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/anthill].[jsp]  -
Servlet.service() for servlet jsp threw exception
>java.lang.Exception: ANTHILL singleton construction error.
>	at com.urbancode.anthill.Anthill.<init>(Anthill.java:133)
>	at com.urbancode.anthill.Anthill.getAnthill(Anthill.java:104)
>	at org.apache.jsp.style.anthillStyle_jsp._jspService(anthillStyle_jsp.java:46)
>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
>	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1196)
>	at java.lang.Thread.run(Thread.java:595)
>
>
>
>_______________________________________________
>Anthill mailing list
>Anthill@...
>http://lists.urbancode.com/mailman/listinfo/anthill
>  
>

Gmane