]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
doc: add "naming conventions" section 20/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 13 Nov 2014 19:19:12 +0000 (12:19 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 13 Nov 2014 19:29:49 +0000 (12:29 -0700)
README.rst

index ce0d0a87140669bb7a19b29d2463ba71a0279367..2ce73ad31d555d5b7584f1d540f00713d0db3639 100644 (file)
@@ -124,3 +124,32 @@ sanity-check before merging the changes to master.
 
 You can install the Jenkins Job Builder package locally (``pip install
 jenkins-job-builder``) and then run ``jenkins-jobs test my_configuration.yml``
+
+Job Naming Conventions
+----------------------
+Each Jenkins job has two names:
+
+1. The main name for a job. This is the ``name:`` parameter in YAML.
+
+2. The human-friendly "display name" for a job. This is the ``display-name:``
+   parameter in YAML.
+
+For regular jobs, we name the Jenkins job after the git repository name. For
+example, the "ceph-deploy" package is at https://github.com/ceph/ceph-deploy,
+so the job name is "ceph-deploy".
+
+For Pull Request jobs, we use a similar convention for both the internal job
+name and the human readable "display name". For example, if the git repository
+is "ceph-deploy", then we name the Jenkins job ``ceph-deploy-pull-requests``.
+The ``display-name`` is set to ``ceph-deploy: Pull Requests``. In other words,
+to determine a ``display-name`` for a job that handles pull requests, simply
+append ``: Pull Requests`` to the ``name`` value.
+
+In other words, for building pull requests to ceph-deploy, the Jenkins job YAML
+will have the following settings:
+
+* Git repo: https://github.com/ceph/ceph-deploy
+
+* Jenkins job ``name``: ``ceph-deploy-pull-requests``
+
+* Jenkins job ``display-name``: ``ceph-deploy: Pull Requests``