]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
GitbuilderProject: respect branch in config 893/head
authorZack Cerza <zack@redhat.com>
Wed, 29 Jun 2016 22:56:26 +0000 (16:56 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 29 Jun 2016 22:56:26 +0000 (16:56 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/packaging.py

index 03b9ba1f342cd142d2b7b63b024a048e3377569a..d253bbb8f50cba11f02d623de3da70d6c593d782 100644 (file)
@@ -473,6 +473,7 @@ class GitbuilderProject(object):
         self.flavor = self.job_config.get("flavor")
         self.codename = self.job_config.get("codename")
         self.os_version = self._get_version()
+        self.branch = self.job_config.get("branch")
         self.ref = self.job_config.get("ref")
         self.distro = self._get_distro(
             distro=self.os_type,
@@ -644,6 +645,7 @@ class GitbuilderProject(object):
                                                 self.job_config, 'sha1')
         else:
             sha1 = self.sha1
+            branch = self.branch
 
         if tag:
             uri = 'ref/' + tag