Getting CURRENT_VERSION_ID from Java Flex VM?

62 views
Skip to first unread message

Ben Rometsch

unread,
Oct 15, 2018, 1:52:37 PM10/15/18
to Google App Engine
I'm running a tweaked version of gcr.io/google_appengine/openjdk with a Play Framework 1.5 application on Flex VM. Running

System.getenv("CURRENT_VERSION_ID")

Returns nothing. Is there a way to get the current version ID from the Java runtime? 

Thanks

Julie (cloud platform support)

unread,
Oct 15, 2018, 6:30:10 PM10/15/18
to Google App Engine
Do you need a scripted method of getting the info? If so try this Java API class (public static final SystemProperty applicationVersion). Otherwise you can check for the current version ID from the Cloud Console by selecting App Engine -> versions and specify the service. 

Ben Rometsch

unread,
Oct 16, 2018, 3:29:51 AM10/16/18
to Google App Engine
I'm running the Flex VM, not standard. That class is not available to me. 

Joshua Fox

unread,
Oct 16, 2018, 4:06:58 AM10/16/18
to google-a...@googlegroups.com
Try  System.getenv( "GAE_VERSION") and System.getenv( "GAE_MODULE_VERSION")

Also, try logging System.getenv() to see what the system has to offer.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a32db24c-dcea-466e-b66d-94eead23e393%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
 

JOSHUA FOX
Director, Software Architecture | Freightos



T (Israel): +972-545691165 | T (US):  +1-3123400953  
Smooth shipping.



Ben Rometsch

unread,
Oct 16, 2018, 7:46:16 AM10/16/18
to Google App Engine
Thanks Joshua:

System.getenv("GAE_VERSION")

were the droids I was looking for. The documentation needs updating!
Reply all
Reply to author
Forward
0 new messages