Closed Moeby closed 6 years ago
At the step 6 (Installation of plugins) there has been an installation failure of the "Pipeline":
Fehlermeldung beim Build nach Lint instalation:
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Solution: copy local.properties from D:\TBZ\M426 Methoden zu Softwareentwicklung Rollen Aufgaben Ergebnisse\wgapp\FlatsharePlanner\Flattie and paste it into C:\Users\Marvin.jenkins\workspace\flattie\Flattie
Hi!
So i did the setup and the configuration of jenkins, but my hosting service does not offer jenkins and other options are not free so the best solution is to have everyone set up a local jenkins themselves.
What needs to be done:
Setup Jenkins
Add the project
[x] Click on "New item" in the menu, give it a name and select a freestyle project
[x] Now you need to add some options to the configuration:
In the build step you need to add another option. Click on "advanced" for the just added build script
[ ] Save the configuration
Missing files
Install lint plugin
[x] Android studio is not using checkstyle to check for code correctness but lint. We need to add the plugin "Android Lint Plugin" which you can find here: http://localhost:8080/pluginManager/available . Check the box and then restart your jenkins (in cmd stop it and start it again).
[x] In your project configuration in jenkins you can now add a post-build step. We do this to visualize the lint results in jenkins itself:
[ ] No manually start a build again, if everything worked out you will find the android icon in your build overview which will display the results when clicked:
And that's it! now you can run the "Build now" option again in Jenkins and it should work. If it doesn't and you can't figure out why you can show me your problem in school