Add releng/builder update notes 72/70672/2
authorSam Hague <shague@redhat.com>
Mon, 9 Apr 2018 16:10:21 +0000 (09:10 -0700)
committerSam Hague <shague@redhat.com>
Mon, 9 Apr 2018 16:14:12 +0000 (09:14 -0700)
Change-Id: I08b4d735ce6a32b8da3fac356eb34cd19e714245
Signed-off-by: Sam Hague <shague@redhat.com>
docs/jenkins.rst

index 464bb7cf307a5c4dc4cf2f8d2946aeea01ed6dc1..6c1c38bd68ab98957d9044ae0e94217ff72bdd57 100644 (file)
@@ -539,6 +539,29 @@ To install from a tag, like 1.4.0:
     $ cat jjb/requirements.txt
     -e git+https://git.openstack.org/openstack-infra/jenkins-job-builder@1.4.0#egg=jenkins-job-builder
 
+Updating releng/builder repo or global-jjb
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Follow these steps to update the releng/builder repo. The repo uses a submodule from
+a global-jjb repo so that common source can be shared across different projects. This
+requires updating the releng/builder repo periodically to pick up the changes. New
+versions of jjb could also require updating the releng/builder repo. Follow the
+previous steps earlier for updating jenkins-jobs using the
+`builder/jjb/requirements.txt <odl-jjb-requirements.txt_>`_ file. Ensure that the
+version listed in the file is the currently supported version, otherwise install a
+different version or simply upgrade using `pip install --upgrade jenkins-job-builder`.
+
+The example below assumes the user has cloned releng/builder to `~/git/releng/builder`.
+Update the repo, update the submodules and then submit a test to verify it works.
+
+.. code-block:: bash
+
+    cd ~/git/releng/builder
+    git checkout master
+    git pull
+    git submodule update --init --recursive
+    jenkins-jobs --conf jenkins.ini test jjb/ netvirt-csit-1node-openstack-queens-upstream-stateful-fluorine
+
 Installing JJB Manually
 -----------------------