get resource as stream so jenkins plays nice

Change-Id: Icf37385a16a83028c47395e34ca4b9f2162ddd64