Jenkins Projects (aka Jobs)
From Gcube Wiki
Revision as of 05:00, 31 May 2019 by Manuele.simi (Talk | contribs)
gCube Template Project
The easiest way to create a new project is to clone the gCubeTemplate project.
1. In the Jenkins interface, select New Item from the options on the left panel:
2. In the new item page, assign a name to the project
3. Scroll down until the bottom of the page and use the last option to create the new item from other existing. Insert gCubeTemplate as input (it should auto-complete).
and confirm with OK.
4. In the new project page, you need to:
- uncheck the "disable project" checkbox
- provide URL to the Git repo to build
Example
Source Code Management
Under the project settings page "Source Code Management":
- set option to "Git",
- provide URL to your repo (e.g. https://code-repo.d4science.org/gCubeSystem/gxRest.git),
- set the credentials to git.gcube,
- specify */master as branch to build,
- and in "Poll triggers" section check "Poll SCM" option with no schedule defined. This setup basically tells Jenkins to poll your Gitea repo only when requested via a webhook.
Back to the CI guide.