Is there any way to remotely fetch the current live version of an application?

38 views
Skip to first unread message

kj

unread,
Jan 23, 2015, 2:47:44 PM1/23/15
to google-a...@googlegroups.com
I would like to write a script that prevents me from deploying the app if the version is the same as the current live version. I see that appcfg has a "list_versions" command but that just returns a list of all the upload versions. I'd like to see what is the currently deployed live version.

kj

unread,
Jan 23, 2015, 6:31:22 PM1/23/15
to google-a...@googlegroups.com
I couldn't find any way to do this, even using the remote API. The SystemProperty properties all come back with null values.

I ended up writing a little servlet that just returns the version:

public class VersionServlet extends HttpServlet 
{
    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse res)
        throws IOException
    {
    res.getOutputStream().print(SystemProperty.applicationVersion.get());
Reply all
Reply to author
Forward
0 new messages