Set up Jenkins - nthakur34/JenkinsGithub GitHub Wiki

Set-up Jenkins

Configure Global Security

To set up Jenkins security go to "Manage Jenkins", then "Configure Global Security". From here set the security settings as desired. For basic security, simply select "Enable security" and "Jenkins’ own user database". Then select the type of authorization. This allows users to be created with a certain degree of authority (Users located in "People" tab). For greater security, implement the methods shown here and here.

Install Plugins

There are plenty of plugins to choose from but for basic operation, only the "git plugin" is needed. Simply search for available plugins in the "Manage Plugins" section. Other useful plugins include the "xunit plugin" for xunit test results or "TAP plugin" for TAP test results which tend to be more comprehensive.

Configure Settings

head to "Manage Jenkins" >>> "Configure System". Under "Jenkins Location" input the System admin e-mail address. Under "Git" enter the "Path to Git executable" as the location of git.exe on your machine. If you aren't sure where it is, open up a command prompt window and type "git --version" then "where git.exe" to have the location returned to you.

Also it might be beneficial to avoid using folder or file names with spaces. There may be issues with using "C:'Program Files'\matlab" in your path over "C:\Progra1\matlab" or Progra2 for Program Files (x86). However, I haven't had any problems with spaces in Jenkins, rather on other applications such as Tomcat.

Next, under "Git Plugin", enter your user.name and user.email that should be configured already. After this, you're ready to create a Jenkins testing program!


Next: Create Jenkins Project