Using [`AbstractBuild#getExternalizableId`](http://javadoc.jenkins-ci.org/hudson/model/Run.html#getExternalizableId%28%29) is preferred.