   job = workspace.jobs[searchJobName]
   return unless job
   if parseInt searchBuildQuery isnt NaN
-    (build for build in job.builds when build.id is searchBuildQuery)[0]
+    (build for build in job.builds when build.number is searchBuildQuery)[0]
   else
     workspace._findJobBuildByQuery job.builds, searchBuildQuery
 

    lastStableBuild: null
    lastUnstableBuild: null
    nextBuildNumber: 1
  workspace.jobs[id] = job

###
  Create a new build for the specified job.

    description: ''
    displayName: name,
    displayNameOrNull: displayName ? name
    name: name
    buildable: true
    builds: []
    color: 'blue'
