Пример #1
0
    def get_credentials(self):
        """
        Return credentials
        """
        if int(self.version[0:1]) == 1:
            url = '%s/credential-store/domain/_/' % self.baseurl
        else:
            url = '%s/credentials/store/system/domain/_/' % self.baseurl

        return Credentials(url, self)
Пример #2
0
    def get_credentials(self):
        """
        Return credentials
        """

        if 'credentials' not in self.plugins:
            raise JenkinsAPIException('Credentials plugin not installed')

        if int(self.plugins['credentials'].version[0:1]) == 1:
            url = '%s/credential-store/domain/_/' % self.baseurl
            return Credentials(url, self)
        else:
            url = '%s/credentials/store/system/domain/_/' % self.baseurl
            return Credentials2x(url, self)
Пример #3
0
 def get_credentials(self):
     """
     Return credentials
     """
     url = '%s/credential-store/domain/_/' % self.baseurl
     return Credentials(url, self)