updated code to validation build result which job is running