Continuous integration is there any job naming conventions in the jenkins

user2750116 picture user2750116 · Apr 6, 2016 · Viewed 7.9k times · Source

I would like to know if we have any job naming conventions exist in the continuous integration. we are using Jenkins for Ci , please suggest .

naming conventions should be something like this , environment, service, purpose build or deploy etc.

any other suggestions are appreciated.

Answer

Thomas Hirsch picture Thomas Hirsch · Nov 22, 2016

I am using a convention that goes like this:

<primary purpose of the job | uppercase>_<(GitHub) project name>_<branch name / additional info>

So jobs would be named like

BUILD_my-project
DEPLOY_my-project_staging
TEST_my-project_staging
UTILITY_install-helpful-tool_staging
INFRA_run-job-dsl

To make things easier to maintain, especially when using the JobDSL I prefer to not have separate display names for jobs, at the cost of having both hyphens and underscores in job names.