Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "OM2M/testpage123"

(Created page with "__TOC__ = Configure Jenkins = * In this tutorial, you will learn how to: ** Configure normal jobs using Jenkins to build your project manually or periodically. ** Configure j...")
 
(Blanked the page)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
__TOC__
 
  
= Configure Jenkins =
 
* In this tutorial, you will learn how to:
 
** Configure normal jobs using Jenkins to build your project manually or periodically.
 
** Configure jobs linked with Gerrit to automatically build received contributions before merging them to mainstream.
 
 
== Configure Normal jobs ==
 
# Log in to OSM portal, click on "Tools" on the menu bar, then select "Jenkins".
 
# Click on "New Item" in the sidebar menu.
 
# Enter an "Item name" (e.g. job-test), select "Freestyle project", then click Ok.
 
# In the first section, enter a job name and a description.
 
# In "Source Code Management" section, select "Git", then enter your git cloning URL in the "Repository URL" field. If your repository is not public, then enter your username and password in the "Credentials" field. You can also enter your branches to build in "Branches to build" field (default is */master).
 
# In "Build Triggers" section, to build your project periodically chose "Build periodically", then enter a schedule in the "Schedule" field using the Cron syntax (e.g "H 22 * * * " to build every night between 10h00 PM and 11h00PM"). It is recommended to not chose a strict date to avoid performance loss.
 
# In "Build" section, select "Add Build step", chose "Execute Shell script",Then enter you command in the "Command field". You can define several build steps depending to your need.
 
# In "Post-build Actions", you can configure some actions to execute after the build, if needed, such as executing other building other project, perform a particular scan, or send an email notification.
 
# Click on the "Save" button. Your job is now created and configured. You can find it in the jobs lists.
 
# To test your job, it is recommended that you launch it manually. In the Jenkins main page, select your job by clicking on its name, then click on "Build now". You should see your job scheduled and executed in the "Build History" box. If you want to see the console output, select the build, then click on "Console Output" in the sidebar menu.
 
 
== Configure Gerrit jobs ==
 

Latest revision as of 15:03, 3 April 2016

Back to the top