Add the Jenkins logic to the repo (#2626)
Add the Jenkins logic to the repo (#2626)

* Add the Jenkins logic to the repo

* Add static code analysis and only collect metrics for master

* Added support for pull requests

* Put the pipeline in a closure so it can be loaded properly

* Unstashed the previously cheked out project

* Disable stashing and unstashing monkey examples for the moment

* Clean the workarea before unstashing

* Don't rely on stashing to pass the workarea around

* print the exception that makea a build fail

* Fun with comments

* Do checkout depending on whether it's a PR or not

* Groovify the script

* Import Callable

* Use absolute path for adb

* Forgot one

* Forgot another one

* Try to use Jenkins parallels instead of Groovy threading

* Sanitize the model name

* Trim command outputs

* No need to import Callable anymore

realm/realm-java,realm/realm-java,realm/realm-java,realm/realm-java,realm/realm-java,realm/realm-java,realm/realm-java