-
Notifications
You must be signed in to change notification settings - Fork 11
Switch to Manage permission and future Jenkins compatibility #126
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| buildPlugin(useContainerAgent: true, configurations: [ | ||
| [platform: 'linux', jdk: '11'], | ||
| [platform: 'linux', jdk: '17'], | ||
| [platform: 'linux', jdk: '21'] | ||
| ]) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ THE SOFTWARE. | |
| <parent> | ||
| <groupId>org.jenkins-ci.plugins</groupId> | ||
| <artifactId>plugin</artifactId> | ||
| <version>4.88</version> | ||
| <version>5.17</version> | ||
| <relativePath /> | ||
| </parent> | ||
|
|
||
|
|
@@ -94,7 +94,7 @@ THE SOFTWARE. | |
| <dependency> | ||
| <groupId>io.jenkins.tools.bom</groupId> | ||
| <artifactId>bom-${jenkins.baseline}.x</artifactId> | ||
| <version>3696.vb_b_4e2d1a_0542</version> | ||
| <version>4710.v016f0a_07e34d</version> | ||
| <type>pom</type> | ||
| <scope>import</scope> | ||
| </dependency> | ||
|
|
@@ -110,8 +110,8 @@ THE SOFTWARE. | |
|
|
||
| <properties> | ||
| <changelist>999999-SNAPSHOT</changelist> | ||
| <jenkins.baseline>2.452</jenkins.baseline> | ||
| <jenkins.version>${jenkins.baseline}.4</jenkins.version> | ||
| <jenkins.baseline>2.504</jenkins.baseline> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lowest LTS where the |
||
| <jenkins.version>${jenkins.baseline}.1</jenkins.version> | ||
| </properties> | ||
|
|
||
| </project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,7 @@ private static String getItemsVerbage(final int length) { | |
|
|
||
| @RequirePOST | ||
| public void doPurge(final StaplerRequest request, final StaplerResponse response) throws ServletException, IOException { | ||
| Jenkins.get().checkPermission(Jenkins.ADMINISTER); | ||
| Jenkins.get().checkPermission(Jenkins.MANAGE); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switch to |
||
| final Queue queue = Jenkins.get().getQueue(); | ||
|
|
||
| if (queue != null) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,10 +24,11 @@ | |
|
|
||
| <?jelly escape-by-default='false'?> | ||
| <j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout"> | ||
| <l:hasPermission permission="${app.ADMINISTER}"> | ||
| <l:hasAdministerOrManage> | ||
| <l:task icon="symbol-trash-outline plugin-ionicons-api" confirmationMessage="${%Purge the build queue?}" | ||
| href="purge-build-queue/purge/" post="true" requiresConfirmation="true" | ||
| title="${%Purge Build Queue}" permissions="${it.ADMINISTER}"> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Given this is already protected by the permission check in |
||
| destructive="true" | ||
| title="${%Purge Build Queue}"> | ||
| </l:task> | ||
| </l:hasPermission> | ||
| </l:hasAdministerOrManage> | ||
| </j:jelly> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowest bound of the bom