We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ed24ff + 9f92758 commit 0a51e54Copy full SHA for 0a51e54
src/CodeClimate/Bundle/TestReporterBundle/Entity/CiInfo.php
@@ -29,6 +29,10 @@ public function toArray()
29
return $this->codeshipProperties();
30
}
31
32
+ if (isset($_SERVER["BUILDBOX"])) {
33
+ return $this->buildboxProperties();
34
+ }
35
+
36
return array();
37
38
@@ -91,4 +95,16 @@ protected function codeshipProperties()
91
95
"commit_sha" => $_SERVER["CI_COMMIT_ID"]
92
96
);
93
97
98
99
+ protected function buildboxProperties()
100
+ {
101
+ return array(
102
+ "name" => "buildbox",
103
+ "build_identifier" => $_SERVER["BUILDBOX_BUILD_ID"],
104
+ "build_url" => $_SERVER["BUILDBOX_BUILD_URL"],
105
+ "branch" => $_SERVER["BUILDBOX_BRANCH"],
106
+ "commit_sha" => $_SERVER["BUILDBOX_COMMIT"],
107
+ "pull_request" => $_SERVER["BUILDBOX_PULL_REQUEST"]
108
+ );
109
94
110
0 commit comments