~dannf/charms/trusty/jenkins/typo

« back to all changes in this revision

Viewing changes to hooks/addnode

  • Committer: James Page
  • Date: 2011-09-22 14:46:56 UTC
  • Revision ID: james.page@canonical.com-20110922144656-b0xf3lc4qrglklxx
Various feature implementations including using upstream archives

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
host=sys.argv[1]
7
7
executors=sys.argv[2]
8
8
labels=sys.argv[3]
 
9
username=sys.argv[4]
 
10
password=sys.argv[5]
9
11
 
10
 
l_jenkins = jenkins.Jenkins("http://localhost:8080/")
 
12
l_jenkins = jenkins.Jenkins("http://localhost:8080/",username,password)
11
13
 
12
14
if l_jenkins.node_exists(host):
13
15
    print "Node exists - not adding"