Jenkins/epics7.rst~
author Heinz Junkes <junkes@fhi-berlin.mpg.de>
Fri, 19 Jan 2018 16:05:31 +0100
changeset 10 f7c1eb1e5733
parent 5 3476542c437b
permissions -rw-r--r--
Add services docu

Create a job for epics-base-7.0
'''''''''''''''''''''''''''''''

At first you have to install the TAP-plugin. Go to *Manage Jenkins*->*Manage Plugins* and install the *TAP Plugin*

To create a job, click *New Item* and select *Freestyle project*, Enter a name and click *OK*.
If you want the change the installation directory(default is ) of epics-base click on the *Advanced..*-Button 
in the *General*-tab check *Use custom workspace* and enter a Directory path e.g. ``/opt/EPICS/${JOB_NAME}``.
If you choose to do this make shure the *Jenkins* user has the appropriate permission in that directory.
To do that enter the following into the terminal::

	sudo useradd -a -G root jenkins
	sudo chmod --recursive a+rwx /opt/EPICS/epics-base

You also have to set you epics environment variables accordingly.

| Now setup the git configuration inside the *Source Code Management*-tab
| Select *Git* and enter the *Repository URL* ``https://git.launchpad.net/epics-base``.
| Add the Branch Specifier ``core/master``
| Add with *Additional Behaviours* **Advanced sub-modules behaviours** and select *Recursively update submodules*
In the *Build Triggers*-tab select *Build periodically* and enter the desired build schedule, e.g::

	H 1 * * *

to update every Day roughly around 1am.

Now add a *build step* in the *Build*-tab, select *Execute shell* and enter::

	make clean uninstall
	make
	make --no-print-directory -j4 tapfiles
	make -s test-results

to build epics-base and make tests.

Now add a *post-build action* **Publish TAP Results** and enter::
	
	**/O.*/*.tap

You can uncheck *Verbose* if wanted.

| You can add another *post-build action* to send a *Editable Email Notification*