Difference between revisions of "Jenkins Projects (aka Jobs)"
From Gcube Wiki
Manuele.simi (Talk | contribs) |
Manuele.simi (Talk | contribs) |
||
Line 3: | Line 3: | ||
Git plugin: | Git plugin: | ||
* Enable "Clean before checkout" to ensure reproducible builds | * Enable "Clean before checkout" to ensure reproducible builds | ||
+ | |||
+ | = 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 [[Gitea/Jenkins:_Setting_up_Webhooks#Webhook_on_the_Gitea_repository|webhook]]. | ||
+ | |||
+ | [[File:JenkinsSourceCodeManagement.png|1000px]] | ||
+ | |||
''Back to the [[Continuous_Integration_procedure_(2019) | CI guide]].'' | ''Back to the [[Continuous_Integration_procedure_(2019) | CI guide]].'' |
Revision as of 20:09, 29 May 2019
....
Git plugin:
- Enable "Clean before checkout" to ensure reproducible builds
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.