Skip to content

Commit

Permalink
Add missing symbol on descriptor (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesbusy authored Oct 1, 2024
1 parent 69708a7 commit e76ee8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@ Select *Set Jenkins user build variables* and reference the variables during the

```groovy
node {
wrap([$class: 'BuildUser']) {
withBuildUser {
def user = env.BUILD_USER_ID
}
}
```

or with declarative option:

```groovy
options {
withBuildUser()
}
```

## Changelog

Release notes are available in [GitHub Releases](https://github.com/jenkinsci/build-user-vars-plugin/releases) since July 2020 (build-user-vars plugin 1.6 and later).
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/jenkinsci/plugins/builduser/BuildUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import jenkins.branch.BranchIndexingCause;
import jenkins.model.Jenkins;
import jenkins.tasks.SimpleBuildWrapper;
import org.jenkinsci.Symbol;
import org.jenkinsci.plugins.builduser.varsetter.IUsernameSettable;
import org.jenkinsci.plugins.builduser.varsetter.impl.*;
import org.kohsuke.accmod.Restricted;
Expand Down Expand Up @@ -134,6 +135,7 @@ private static void handleOtherCausesOrLogWarningIfUnhandled(@NonNull Run<?, ?>
}

@Extension
@Symbol("withBuildUser")
public static class DescriptorImpl extends BuildWrapperDescriptor {
@Override
public boolean isApplicable(AbstractProject<?, ?> item) {
Expand Down

0 comments on commit e76ee8d

Please sign in to comment.