Newbie Question: trigger CC from http web page (e.g. timestamp or version.html)?

View: New views
5 Messages — Rating Filter:   Alert me  

Newbie Question: trigger CC from http web page (e.g. timestamp or version.html)?

by d1trupinoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am new to cruise control.  Is it possible to confirgure cruise control to watch for a change on an html or xml page that is hosted on a web application?  For example, if http://mysite.com/version.txt or http://mysite.com/version.xml are updated (meaning a website is updated) would trigger my CC to synch, build, and run any tests.  The change could be a new version number or time stamp text.  If one is easier over the other and if you can share an example that would be great.

Re: Newbie Question: trigger CC from http web page (e.g. timestamp or version.html)?

by Jeffrey Fredrick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, just use the httpfile source control:

http://cruisecontrol.sourceforge.net/main/configxml.html#httpfile

This plugin doesn't check the contents of the file, just the timestamp
reported by the web server.

Jtf

On Thu, May 1, 2008 at 6:37 PM, d1trupinoy <joeltablante@...> wrote:

>
>  I am new to cruise control.  Is it possible to confirgure cruise control to
>  watch for a change on an html or xml page that is hosted on a web
>  application?  For example, if http://mysite.com/version.txt or
>  http://mysite.com/version.xml are updated (meaning a website is updated)
>  would trigger my CC to synch, build, and run any tests.  The change could be
>  a new version number or time stamp text.  If one is easier over the other
>  and if you can share an example that would be great.
>  --
>  View this message in context: http://www.nabble.com/Newbie-Question%3A-trigger-CC-from-http-web-page-%28e.g.-timestamp-or-version.html%29--tp16996459p16996459.html



--
http://www.developertesting.com/
http://www.junitfactory.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: Newbie Question: trigger CC from http web page (e.g. timestamp or version.html)?

by d1trupinoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I can use this even if I do not have backend access to the web server?  I can just put a http://BLAH in this config and it will look at the html source code for a time value?  I am assuming the time stamp is available in the html source.

Thanks for the help.
Jeffrey Fredrick-2 wrote:
Yes, just use the httpfile source control:

http://cruisecontrol.sourceforge.net/main/configxml.html#httpfile

This plugin doesn't check the contents of the file, just the timestamp
reported by the web server.

Jtf

On Thu, May 1, 2008 at 6:37 PM, d1trupinoy <joeltablante@yahoo.com> wrote:
>
>  I am new to cruise control.  Is it possible to confirgure cruise control to
>  watch for a change on an html or xml page that is hosted on a web
>  application?  For example, if http://mysite.com/version.txt or
>  http://mysite.com/version.xml are updated (meaning a website is updated)
>  would trigger my CC to synch, build, and run any tests.  The change could be
>  a new version number or time stamp text.  If one is easier over the other
>  and if you can share an example that would be great.
>  --
>  View this message in context: http://www.nabble.com/Newbie-Question%3A-trigger-CC-from-http-web-page-%28e.g.-timestamp-or-version.html%29--tp16996459p16996459.html



--
http://www.developertesting.com/
http://www.junitfactory.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: Newbie Question: trigger CC from http web page (e.g. timestamp or version.html)?

by Jeffrey Fredrick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>  So I can use this even if I do not have backend access to the web server?
Yup.

> ... it will look at the html
>  source code for a time value?  I am assuming the time stamp is available in
>  the html source.
Nope, it comes from the http headers generated by the webserver.  The
webservers provide it so it can be used in caching pages.

Jtf

On Fri, May 2, 2008 at 10:23 AM, d1trupinoy <joeltablante@...> wrote:

>
>  So I can use this even if I do not have backend access to the web server?  I
>  can just put a http://BLAH in this config and it will look at the html
>  source code for a time value?  I am assuming the time stamp is available in
>  the html source.
>
>  Thanks for the help.
>
>
>
>  Jeffrey Fredrick-2 wrote:
>  >
>  > Yes, just use the httpfile source control:
>  >
>  > http://cruisecontrol.sourceforge.net/main/configxml.html#httpfile
>  >
>  > This plugin doesn't check the contents of the file, just the timestamp
>  > reported by the web server.
>  >
>  > Jtf
>  >
>  > On Thu, May 1, 2008 at 6:37 PM, d1trupinoy <joeltablante@...> wrote:
>  >>
>  >>  I am new to cruise control.  Is it possible to confirgure cruise control
>  >> to
>  >>  watch for a change on an html or xml page that is hosted on a web
>  >>  application?  For example, if http://mysite.com/version.txt or
>  >>  http://mysite.com/version.xml are updated (meaning a website is updated)
>  >>  would trigger my CC to synch, build, and run any tests.  The change
>  >> could be
>  >>  a new version number or time stamp text.  If one is easier over the
>  >> other
>  >>  and if you can share an example that would be great.
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/Newbie-Question%3A-trigger-CC-from-http-web-page-%28e.g.-timestamp-or-version.html%29--tp16996459p16996459.html
>  >
>  >
>  >
>  > --
>  > http://www.developertesting.com/
>  > http://www.junitfactory.com
>  >
>
> > -------------------------------------------------------------------------
>  > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  > Don't miss this year's exciting event. There's still time to save $100.
>  > Use priority code J8TL2D2.
>  > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  > _______________________________________________
>  > Cruisecontrol-user mailing list
>  > Cruisecontrol-user@...
>  > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Newbie-Question%3A-trigger-CC-from-http-web-page-%28e.g.-timestamp-or-version.html%29--tp16996459p17024033.html
>
>
> Sent from the CruiseControl - User mailing list archive at Nabble.com.
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  Cruisecontrol-user mailing list
>  Cruisecontrol-user@...
>  https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>



--
http://www.developertesting.com/
http://www.junitfactory.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: Newbie Question: trigger CC from http web page (e.g. timestamp or version.html)?

by apcervantes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried to set my htmlfile per the instructions in this thread but Cruise Control did not kick off a build after a new build was deployed for the url CC was watching.  Can anyone help me figure out what I am doing wrong?  Here is a snippet from my config.xml:

    <modificationset quietperiod="10">
        <alwaysbuild/>
        <httpfile="https://activate.integration.ea.com/gameactivation.do"/>
    </modificationset>

    <schedule interval="60">
      <ant anthome="C:\Program Files\Apache Software Foundation\apache-ant-1.7.0"
           antworkingdir="C:\Program Files\Cruise_Work_Dir"
           time="2300"
           buildfile="build.xml"
           uselogger="true"
           usedebug="false"/>
    </schedule>

Jeffrey Fredrick-2 wrote:
>  So I can use this even if I do not have backend access to the web server?
Yup.

> ... it will look at the html
>  source code for a time value?  I am assuming the time stamp is available in
>  the html source.
Nope, it comes from the http headers generated by the webserver.  The
webservers provide it so it can be used in caching pages.

Jtf

On Fri, May 2, 2008 at 10:23 AM, d1trupinoy <joeltablante@yahoo.com> wrote:
>
>  So I can use this even if I do not have backend access to the web server?  I
>  can just put a http://BLAH in this config and it will look at the html
>  source code for a time value?  I am assuming the time stamp is available in
>  the html source.
>
>  Thanks for the help.
>
>
>
>  Jeffrey Fredrick-2 wrote:
>  >
>  > Yes, just use the httpfile source control:
>  >
>  > http://cruisecontrol.sourceforge.net/main/configxml.html#httpfile
>  >
>  > This plugin doesn't check the contents of the file, just the timestamp
>  > reported by the web server.
>  >
>  > Jtf
>  >
>  > On Thu, May 1, 2008 at 6:37 PM, d1trupinoy <joeltablante@yahoo.com> wrote:
>  >>
>  >>  I am new to cruise control.  Is it possible to confirgure cruise control
>  >> to
>  >>  watch for a change on an html or xml page that is hosted on a web
>  >>  application?  For example, if http://mysite.com/version.txt or
>  >>  http://mysite.com/version.xml are updated (meaning a website is updated)
>  >>  would trigger my CC to synch, build, and run any tests.  The change
>  >> could be
>  >>  a new version number or time stamp text.  If one is easier over the
>  >> other
>  >>  and if you can share an example that would be great.
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/Newbie-Question%3A-trigger-CC-from-http-web-page-%28e.g.-timestamp-or-version.html%29--tp16996459p16996459.html
>  >
>  >
>  >
>  > --
>  > http://www.developertesting.com/
>  > http://www.junitfactory.com
>  >
>
> > -------------------------------------------------------------------------
>  > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  > Don't miss this year's exciting event. There's still time to save $100.
>  > Use priority code J8TL2D2.
>  > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  > _______________________________________________
>  > Cruisecontrol-user mailing list
>  > Cruisecontrol-user@lists.sourceforge.net
>  > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Newbie-Question%3A-trigger-CC-from-http-web-page-%28e.g.-timestamp-or-version.html%29--tp16996459p17024033.html
>
>
> Sent from the CruiseControl - User mailing list archive at Nabble.com.
>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  Cruisecontrol-user mailing list
>  Cruisecontrol-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>



--
http://www.developertesting.com/
http://www.junitfactory.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user