File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/CodeClimate/Bundle/TestReporterBundle/Entity Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ public function toArray()
2929 return $ this ->codeshipProperties ();
3030 }
3131
32+ if (isset ($ _SERVER ["BUILDBOX " ])) {
33+ return $ this ->buildboxProperties ();
34+ }
35+
3236 return array ();
3337 }
3438
@@ -91,4 +95,16 @@ protected function codeshipProperties()
9195 "commit_sha " => $ _SERVER ["CI_COMMIT_ID " ]
9296 );
9397 }
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+ }
94110}
You can’t perform that action at this time.
0 commit comments