daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from jenkinsapi.jenkins import Jenkins
  2.  
  3. class Miclase:
  4.         def __init__(self,url,user,pwd):
  5.             self.jenkins_url=url
  6.             self.username=user
  7.             self.password=pwd
  8.  
  9.         def get_server_instance(self):
  10. #           jenkins_url = 'http://pipeline.yaroscloud.com:8080'
  11.             server = Jenkins(jenkins_url, username , password )
  12.             return server
  13.        
  14.         if __name__ == '__main__':
  15.         #    print get_server_instance().version
  16.             version=get_server_instance(self).version
  17.             print version
  18.  
  19. objeto=Miclase('http://pipeline.yaroscloud.com:8080','jordy','S0p0rt33')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top