Difference between revisions of "CI"

From OpenMBD
Jump to: navigation, search
Line 4: Line 4:
  
  
How to set-up Jenkins to build and test HANtune?
+
 
 +
== How to set-up Jenkins to build and test HANtune? ==
 +
 
  
 
In order to install Jenkins, first the executable will need to be downloaded from the site of [https://jenkins.io/index.html| Jenkins]
 
In order to install Jenkins, first the executable will need to be downloaded from the site of [https://jenkins.io/index.html| Jenkins]
Line 13: Line 15:
  
 
Press the download button. A pop-up menu will appear. From the menu select LTS Release (2.73.1) and click on the arrow, select Windows.
 
Press the download button. A pop-up menu will appear. From the menu select LTS Release (2.73.1) and click on the arrow, select Windows.
 +
  
 
[[File:LTSRelease.png|400px]]
 
[[File:LTSRelease.png|400px]]
 +
  
 
Then unzip the file that where downloaded and then click the executable.  
 
Then unzip the file that where downloaded and then click the executable.  
Line 39: Line 43:
  
 
After this, Manage Jenkins needs to be clicked. A menu will show up and is going to look like the picture below.
 
After this, Manage Jenkins needs to be clicked. A menu will show up and is going to look like the picture below.
 +
 +
 +
[[File:ManageJenkins.png|400px]]
 +
 +
 +
From the list the button Manage Plugins needs to be selected. The following plugins will need to be installed:
 +
 +
* Locale Plugin;
 +
* Multijob Plugin;
 +
* Shared Workspace;
 +
* TestComplete support plug-in;
 +
* SonarQube Scanner support for Jenkins.
 +
In order to install the plugins from the menu (see picture below) the button Available needs to be selected.
 +
 +
 +
[[File:availablejenkins.png|400px]]
 +
 +
 +
After Available was selected, in the search box it needs to be typed the name of the plugin that it is desired by the user to be install. In this case for example the MultijobPlugin. After the name of the plugin is typed the menu will look like the picture below.
 +
 +
 +
[[File:exampleplugin.png|400px]]
 +
 +
 +
The box needs to be clicked and then ‘Install without restart’ needs to be pressed.
 +
Then there will appear another menu for example like the picture below.
 +
 +
 +
[[File:plugins.png|400px]]
 +
 +
 +
The option restart “Jenkins when…” will need to be selected. Then the same procedure will need to be repeated for all the plugins listed in the list above. In case it doesn’t restart automatically a refresh of the page is necessary.
 +
 +
 +
After the plugins are installed the following programs will need to be installed on the PC:
 +
 +
* Apache Ant 1.9.7
 +
* TestExecute 12 
 +
* SonarQube 5.6.6
 +
* SonarQube Scanner 3.0.3.778
 +
 +
 +
How to install Apache Ant 1.9.7?
 +
 +
In order to install Apache-ant-1.9.7 the program needs to be downloaded from the following [http://webscripts.softpedia.com/Apache-Ant/download/| site].
 +
 +
On the page, click on the External Mirror (source) and the download will start.
 +
 +
The following [https://ant.apache.org/manual/install.html| link] will explain how Apache Ant can be installed.
 +
 +
How to install SonarQube LTS (5.6.6) and SonarQube Scanner (3.0.3.778)?
 +
 +
SonarQube can be downloaded [https://www.sonarqube.org/downloads/| here]
 +
 +
SonarQube Scanner can be downloaded from the [https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner| following link]
 +
 +
By clicking on Windows 64 bit, the download wil start.
  
  

Revision as of 10:22, 30 October 2017

Info about our CI and Test Automation server to be posted here.

All subpages need to be subpages of www.openmbd.com/wiki/CI (e.g. www.openmbd.com/wiki/CI/Jenkins or www.openmbd.com/wiki/CI/SonarQube, etc.)


How to set-up Jenkins to build and test HANtune?

In order to install Jenkins, first the executable will need to be downloaded from the site of Jenkins


Jenkins homepage.png


Press the download button. A pop-up menu will appear. From the menu select LTS Release (2.73.1) and click on the arrow, select Windows.


LTSRelease.png


Then unzip the file that where downloaded and then click the executable. The installation process is going to start. Then follow the installation wizard. Choose the path where you want to install Jenkins. After the installation is over, open the webbrowser and type localhost:8080. It will direct to page as shown on the picture below.


GettingStartedJenkins.png


Here will be asked to enter the password located in the C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword(this is an example)

Once finded the password, copy and paste it under Administrator password. Then press continue. After this press install suggested plugins.


Suggestedplugins.png


After the suggested plugins are installed a window will appear where the username, the password, full name, and email address must be set. After all this information was filled in click Save and finish. In the next window that will appear press Start using Jenkins. After this the Jenkins Dashboard will appear and will be similar with the picture below.


Jenkins.png


After this, Manage Jenkins needs to be clicked. A menu will show up and is going to look like the picture below.


ManageJenkins.png


From the list the button Manage Plugins needs to be selected. The following plugins will need to be installed:

  • Locale Plugin;
  • Multijob Plugin;
  • Shared Workspace;
  • TestComplete support plug-in;
  • SonarQube Scanner support for Jenkins.

In order to install the plugins from the menu (see picture below) the button Available needs to be selected.


Availablejenkins.png


After Available was selected, in the search box it needs to be typed the name of the plugin that it is desired by the user to be install. In this case for example the MultijobPlugin. After the name of the plugin is typed the menu will look like the picture below.


Exampleplugin.png


The box needs to be clicked and then ‘Install without restart’ needs to be pressed. Then there will appear another menu for example like the picture below.


Plugins.png


The option restart “Jenkins when…” will need to be selected. Then the same procedure will need to be repeated for all the plugins listed in the list above. In case it doesn’t restart automatically a refresh of the page is necessary.


After the plugins are installed the following programs will need to be installed on the PC:

  • Apache Ant 1.9.7
  • TestExecute 12
  • SonarQube 5.6.6
  • SonarQube Scanner 3.0.3.778


How to install Apache Ant 1.9.7?

In order to install Apache-ant-1.9.7 the program needs to be downloaded from the following site.

On the page, click on the External Mirror (source) and the download will start.

The following link will explain how Apache Ant can be installed.

How to install SonarQube LTS (5.6.6) and SonarQube Scanner (3.0.3.778)?

SonarQube can be downloaded here

SonarQube Scanner can be downloaded from the following link

By clicking on Windows 64 bit, the download wil start.



Sonar web port.jpg


openmbd.com/wiki/CI/Jenkins openmbd.com/wiki/CI/SonarQube