support for Jenkins disabled builds

use job/api instead of job/lastBuild/api