Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
hello: print Jenkins URL
Browse files Browse the repository at this point in the history
This makes it easier to debug when testing with multiple Jenkins master
environments.
  • Loading branch information
ktdreyer committed Jul 19, 2018
1 parent f69647f commit 65ea65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions rhcephpkg/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ def _run(self):
name = data['fullName'] # Our Jenkins instance gets this from LDAP
jenkins_version = jenkins.get_version()
print('Hello %s from Jenkins %s' % (name, jenkins_version))
print('Logged in to %s' % jenkins.url)
4 changes: 3 additions & 1 deletion rhcephpkg/tests/test_hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ def test_success(self, monkeypatch, capsys):
hello = Hello([])
hello._run()
out, _ = capsys.readouterr()
assert out == "Hello Ken from Jenkins 1.5\n"
expected = "Hello Ken from Jenkins 1.5\n" \
"Logged in to https://ceph-jenkins.example.com/\n"
assert out == expected

0 comments on commit 65ea65c

Please sign in to comment.