コード例 #1
0
    def init(self,
             pre_develop_repo_name,
             develop_repo_name,
             meta_repo_name,
             slug_prefix="company",
             arti_url=None,
             arti_user=None,
             arti_password=None):

        self.slug_prefix = slug_prefix
        self.arti_url = arti_url or "http://localhost:8090/artifactory"
        self.arti_user = arti_user or "admin"
        self.arti_password = arti_password or "password"
        self.art = Artifactory(self.arti_url, self.arti_user,
                               self.arti_password)

        self.develop_repo_name = develop_repo_name
        self.pre_develop_repo_name = pre_develop_repo_name
        self.meta_repo_name = meta_repo_name

        self.travis = TravisMock()
        self.github = GithubMock(self.travis)

        self.repo_develop = self.art.create_repo(develop_repo_name)
        self.repo_pre_develop = self.art.create_repo(pre_develop_repo_name)
        try:
            self.repo_meta = self.art.create_repo(meta_repo_name).as_meta()
        except:
            meta = self.art.get_repo(meta_repo_name)
            meta.remove()
            self.repo_meta = self.art.create_repo(meta_repo_name).as_meta()
        self.logger = JsonLogger()

        # Register a repo in travis that will be the one building single jobs
        self.register_build_repo()
コード例 #2
0
 def setUp(self):
     self.art = Artifactory(travis_env["ARTIFACTORY_URL"],
                            travis_env["ARTIFACTORY_USER"],
                            travis_env["ARTIFACTORY_PASSWORD"])
     try:
         self.repo_develop = self.art.create_repo("develop")
     except:
         pass
     self.travis = TravisMock()
     self.github = GithubMock(self.travis)
コード例 #3
0
 def setUp(self):
     self.art = Artifactory(travis_env["ARTIFACTORY_URL"],
                            travis_env["ARTIFACTORY_USER"],
                            travis_env["ARTIFACTORY_PASSWORD"])
     self.travis = TravisMock()
     self.github = GithubMock(self.travis)