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

[JENKINS-38827] Track credentials use #490

Merged
merged 3 commits into from
Apr 19, 2017

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Apr 18, 2017

These were easy cases because CredentialsProvider.track() arguments were available in the method where credentials were added.

There are still cases where credentials are not tracked correctly by the plugin. Credential checks from the job definition page are not currently tracked. Other contexts (like pipeline) may also not be tracked by these changes.

I've resolved the issue shown in the attached output (circled in red) in 588d898. The earlier code was using the project that was available in the GitSCM object. I changed it to use project.lastBuild() instead. The tests in the credentials plugin were a great guide to understand and resolve my mistake.

unexpected-credential-tracking-message

These were easy cases because CredentialsProvider.track() arguments were
available in the method where credentials were added.

It is expected that there are still cases where credentials are not
tracked correctly by the plugin.  Credential checks from the job
definition page are probably not currently tracked.  Other contexts
(like pipeline) may also not be tracked by these changes.
@MarkEWaite MarkEWaite requested review from jbq and stephenc April 18, 2017 03:28
@MarkEWaite MarkEWaite changed the title [JENKINS-38827] Track credentials use in some relevant cases [JENKINS-38827] Track credentials use Apr 18, 2017
Tracking credentials at the build level shows the build which used those
credentials, and still retains the visual association with the project
which defined the build.
Extends testRepo with credentials.  Uses existing credentials arguments
in UserRemoteConfig.
@MarkEWaite MarkEWaite merged commit efeb022 into jenkinsci:master Apr 19, 2017
@MarkEWaite MarkEWaite deleted the track-credential-use branch April 19, 2017 16:00
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