fixed parsing environment variables
using jenkins api