I think it would be very useful to do something like artifact.getBuild().getJob().getJenkinsServer().