reverting jenkins get_job_state method to use the url from jenkins