Add envvar hook to customize the JAR update endpoint for test