You should be able to access Jenkins through the previous URL on port 8080. For my case it is: http://192.158.1.59:8080
- Go in the plugins tab and select github plugin.
- Select install and restart jenkins afterward
Jenkins is now up and running but not configured yet.
- Go in the configuration tab
- Jenkins virtual appliance is shipped with Sun java 1.6. Let's set it in the JDK section:
- Select a name for the jdk
- Unset the "Install automatically" flag
- Set the JAVA_HOME path with /usr/lib/jvm/java
- Maven is available by default but set it to install it automatically in the Maven section
- In GitHub plugin:
- Set "Let Jenkins auto-manage hook URLs"
- Set your credentials to github
- Select Save.
Now, we have a jenkins virtual appliance fully functional but we still need to configure the project... We will now create a build and junit job
- Select "New Job".
- Set the name "yocto-meteo" and set the radio button: "Maven project". You should then see a big page where you can configure the job
- Select Git as the source code repository
- Enter the Git URL: https://github.com/jfontignie/yocto-meteo
- Select "Build when a change is pushed to GitHub. The build will be automatically performed every time submit something. It is very useful if you send an email when an issue is found.
- Select "Build periodically" and enter "0 3 * * *". It will perform a build every night at 3 AM.
- Select "Check the versioning tool" and enter: "*/5 * * * *" in order to check for new changes every 5 minutes
Congratulations, you have now a build environment and a source code repository. We can now really start the project.
Aucun commentaire:
Enregistrer un commentaire