~cprov/britney/boottesting-jenkins-links

« back to all changes in this revision

Viewing changes to britney.py

  • Committer: Celso Providelo
  • Date: 2015-02-10 19:51:44 UTC
  • Revision ID: celso.providelo@canonical.com-20150210195144-mlrdosyhfcghfbxf
Adding links to the boottest jobs (results) in the public and the private servers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1942
1942
            if not self.options.dry_run:
1943
1943
                boottest.submit()
1944
1944
                boottest.collect()
 
1945
            # Boottest Jenkins views location.
 
1946
            jenkins_public = "https://jenkins.qa.ubuntu.com/job"
 
1947
            jenkins_private = (
 
1948
                "http://d-jenkins.ubuntu-ci:8080/view/%s/view/BootTest/job" %
 
1949
                self.options.series.title())
1945
1950
            # Update excuses from the boottest context.
1946
1951
            for excuse in boottest_excuses:
1947
1952
                status = boottest.get_status(excuse.name, excuse.ver[1])
1948
1953
                label = BootTest.EXCUSE_LABELS.get(status, 'UNKNOWN STATUS')
1949
 
                excuse.addhtml("Boottest result: %s" % (label))
 
1954
                public_url = "%s/%s-boottest-%s/lastBuild" % (
 
1955
                    jenkins_public, self.options.series,
 
1956
                    excuse.name.replace("+", "-"))
 
1957
                private_url = "%s/%s-boottest-%s/lastBuild" % (
 
1958
                    jenkins_private, self.options.series,
 
1959
                    excuse.name.replace("+", "-"))
 
1960
                excuse.addhtml(
 
1961
                    "Boottest result: %s (Jenkins: <a href=\"%s\">public</a>"
 
1962
                    ", <a href=\"%s\">private</a>)" % (
 
1963
                        label, public_url, private_url))
1950
1964
                # Allows hints to force boottest failures/attempts
1951
1965
                # to be ignored.
1952
1966
                hints = self.hints.search('force', package=excuse.name)