updated scheduler logic to retrive JenkinsJobs