Skip to content

Instantly share code, notes, and snippets.

@lewang
Created October 13, 2016 20:07
Show Gist options
  • Save lewang/2194fc51e393a8ffd3cc2c8222e9ef85 to your computer and use it in GitHub Desktop.
Save lewang/2194fc51e393a8ffd3cc2c8222e9ef85 to your computer and use it in GitHub Desktop.
(pprint (let [project (circle.model.project/find-one-by-vcs_url "https://bitbucket.org/double16/openshift-s2i-grails2")]
(-> project
:branches
:master)))
{:last-non-success
{:outcome "no_tests",
:status "no_tests",
:build_num 2,
:vcs_revision "7f21e0906ac79df63805f24894ca733ea7465481",
:pushed_at
#object[org.joda.time.DateTime 0x7533ff8e "2016-07-26T21:01:56.432Z"],
:added-at
#object[org.joda.time.DateTime 0x534b4cef "2016-07-26T21:03:31.564Z"]},
:last-success
{:outcome "success",
:status "fixed",
:build_num 14,
:vcs_revision "7914d45e83d79266e2d81feba31cffb81245a6a6",
:pushed_at nil,
:added-at
#object[org.joda.time.DateTime 0x236a434b "2016-10-13T18:20:21.164Z"]},
:pusher-logins ["double16"],
:recent-builds
[{:outcome "no_tests",
:status "no_tests",
:build_num 2,
:vcs_revision "7f21e0906ac79df63805f24894ca733ea7465481",
:pushed_at
#object[org.joda.time.DateTime 0x51726c3b "2016-07-26T21:01:56.432Z"],
:added-at
#object[org.joda.time.DateTime 0x467adf4c "2016-07-26T21:03:31.564Z"]}
{:outcome "no_tests",
:status "no_tests",
:build_num 1,
:vcs_revision "7f21e0906ac79df63805f24894ca733ea7465481",
:pushed_at
#object[org.joda.time.DateTime 0x5ce6392d "2016-07-26T21:01:56.432Z"],
:added-at
#object[org.joda.time.DateTime 0x1a93851a "2016-07-26T21:02:19.683Z"]}
{:outcome "success",
:status "fixed",
:build_num 14,
:vcs_revision "7914d45e83d79266e2d81feba31cffb81245a6a6",
:pushed_at nil,
:added-at
#object[org.joda.time.DateTime 0x633b33ed "2016-10-13T18:20:21.164Z"]}
{:outcome "failed",
:status "failed",
:build_num 13,
:vcs_revision "7914d45e83d79266e2d81feba31cffb81245a6a6",
:pushed_at nil,
:added-at
#object[org.joda.time.DateTime 0x303c1274 "2016-09-22T21:07:55.609Z"]}
{:outcome "failed",
:status "failed",
:build_num 12,
:vcs_revision "7914d45e83d79266e2d81feba31cffb81245a6a6",
:pushed_at nil,
:added-at
#object[org.joda.time.DateTime 0x7fe03593 "2016-09-22T20:55:40.980Z"]}],
:running-builds []}
;; => nil
user>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment