lockable-resources-plugin
lockable-resources-plugin copied to clipboard
Add 'reason' field in the lock() step
resolves #426
Testing done
Reason field in the settings page, when adding a Lockable Resource:
Reason field viewed from the Lockable resource page:
Proposed upgrade guidelines
N/A
Localizations
- [x] English
- [ ] German
- [ ] French
- [ ] Slovak
- [ ] Czech
- [ ] ...
Submitter checklist
- [x] The Jira / Github issue, if it exists, is well-described.
- [x] The changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developers, depending on the change) and are in the imperative mood (see examples).
- The changelog generator for plugins uses the pull request title as the changelog entry.
- Fill in the Proposed upgrade guidelines section only if there are breaking changes or changes that may require extra steps from users during the upgrade.
- [x] There is automated testing or an explanation that explains why this change has no tests.
- [ ] New public functions for internal use only are annotated with
@NoExternalUse
. In case it is used by non java code theUsed by {@code <panel>.jelly}
Javadocs are annotated.
- [ ] New or substantially changed JavaScript is not defined inline and does not call
eval
to ease the future introduction of Content Security Policy (CSP) directives (see documentation). - [ ] For dependency updates, there are links to external changelogs and, if possible, full differentials.
- [ ] For new APIs and extension points, there is a link to at least one consumer.
- [ ] Any localizations are transferred to *.properties files.
- [ ] Changes in the interface are documented also as examples.
Maintainer checklist
Before the changes are marked as ready-for-merge
:
- [ ] There is at least one (1) approval for the pull request and no outstanding requests for change.
- [ ] Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
- [ ] Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
- [ ] Proper changelog labels are set so that the changelog can be generated automatically. See also release-drafter-labels.
- [ ] If the change needs additional upgrade steps from users, the
upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example). - [ ] java code changes are tested by automated test.
Issue that I'm still trying to solve (Labels shifting to the Reason column in the Lockable Resources page): https://github.com/jenkinsci/lockable-resources-plugin/issues/426#issuecomment-1589499306
Issue that I'm still trying to solve (Labels shifting to the Reason column in the Lockable Resources page): #426 (comment)
you need to add the <td>..</td>
object here
https://github.com/jenkinsci/lockable-resources-plugin/blob/b7dbca5095700381c5e7ceb58160c10f68cb3fdd/src/main/resources/org/jenkins/plugins/lockableresources/actions/LockableResourcesRootAction/tableResources/table.jelly#LL211C1-L211C1
Issue that I'm still trying to solve (Labels shifting to the Reason column in the Lockable Resources page): #426 (comment)
you need to add the
<td>..</td>
object here https://github.com/jenkinsci/lockable-resources-plugin/blob/b7dbca5095700381c5e7ceb58160c10f68cb3fdd/src/main/resources/org/jenkins/plugins/lockableresources/actions/LockableResourcesRootAction/tableResources/table.jelly#LL211C1-L211C1
It worked! I have also added a couple of things inside <td>..</td>
so it could display the reason in the column
@Massakera can you merge it pls? https://github.com/Massakera/lockable-resources-plugin/pull/1 I will continue here, also when you has no more time. Thx
@Massakera can you merge it pls? Massakera#1 I will continue here, also when you has no more time. Thx
Sure! Thanks for the help!