Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

Improve reliability of determining hostname#15

Merged
JohnLZeller merged 2 commits into
masterfrom
zeller/hostname
Sep 22, 2015
Merged

Improve reliability of determining hostname#15
JohnLZeller merged 2 commits into
masterfrom
zeller/hostname

Conversation

@JohnLZeller

Copy link
Copy Markdown
Contributor

As mentioned in #7, the hostname is not being pulled from the Jenkins host in a reliable fashion, and will often present as null. This update provides the ability to set a hostname from the configuration panel, and if that is unavailable, the plugin will search for it in the Jenkins hostname environment variable, then the Unix hostname via /bin/hostname -f, and finally the localhost hostname, before instead returning null. This also ensures that logging of success/failure in finding a hostname is done.

@JohnLZeller

Copy link
Copy Markdown
Contributor Author

Tested, and everything looks good

JohnLZeller added a commit that referenced this pull request Sep 22, 2015
Improve reliability of determining hostname
@JohnLZeller
JohnLZeller merged commit 6b036f1 into master Sep 22, 2015
@JohnLZeller
JohnLZeller deleted the zeller/hostname branch September 22, 2015 22:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant