Merge "Fixed a minor typo in example of Python-jenkins"
This commit is contained in:
commit
d149d0aed0
@ -20,7 +20,7 @@ retrieve the Jenkins server version.
|
|||||||
server = jenkins.Jenkins('http://localhost:8080', username='myuser', password='mypassword')
|
server = jenkins.Jenkins('http://localhost:8080', username='myuser', password='mypassword')
|
||||||
user = server.get_whoami()
|
user = server.get_whoami()
|
||||||
version = server.get_version()
|
version = server.get_version()
|
||||||
print('Hello %s from Jenkins %s' % (user['fullName'], jenkins_version))
|
print('Hello %s from Jenkins %s' % (user['fullName'], version))
|
||||||
|
|
||||||
The above code prints the the fullName attribute of the user and the version of
|
The above code prints the the fullName attribute of the user and the version of
|
||||||
the Jenkins master running on 'localhost:8080'. For example, it may print
|
the Jenkins master running on 'localhost:8080'. For example, it may print
|
||||||
|
Loading…
x
Reference in New Issue
Block a user