Using alert to verify server mode is not reliable on Jenkins, but in the same time, using metamerEvents variable isn't reliable too, since it is rewritten during HTTP request processing. Fix: store metamerEvents variable in sessionStorage and then retrieve value from here.