diff --git a/doc/source/examples.rst b/doc/source/examples.rst index 8077fb6..05722c1 100644 --- a/doc/source/examples.rst +++ b/doc/source/examples.rst @@ -20,7 +20,7 @@ retrieve the Jenkins server version. server = jenkins.Jenkins('http://localhost:8080', username='myuser', password='mypassword') user = server.get_whoami() 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 Jenkins master running on 'localhost:8080'. For example, it may print