Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove token botUser hack #483

Merged
merged 5 commits into from
Jan 21, 2019
Merged

Remove token botUser hack #483

merged 5 commits into from
Jan 21, 2019

Conversation

timja
Copy link
Member

@timja timja commented Jan 21, 2019

In preparation for removing the direct token support, I noticed that botUser is loaded conditionally from the global config if token is null, I assume this was previously overriding anyones job or step config if they set bot user to be something different to global and used credentials.

I think a more complete fix might be to create a slack credential type and then have the bot user on the credential, but that's a more involved changed and requires migration, more testing and some thought

The current fix will prevent setting it to false at the job level, functionality that is probably not needed and is pretty similar to what was there before but not gated with the is token set hack

Also:
Cleaned up logging, removed mostly wrong global config logging in
slackSend, replaced with values that are safe to go into the log.

Code simplification for getting config or descriptor

timja added 5 commits January 21, 2019 07:34
Cleanup logging, remove mostly wrong is global config logging in
slackSend, replace with values that are safe to go into the log.

Code simplification for getting config or descriptor
@timja timja merged commit 933c1f8 into jenkinsci:master Jan 21, 2019
@timja timja deleted the fix-bot-user-type branch January 21, 2019 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant