diff --git a/pom.xml b/pom.xml index db8a341..0bc2396 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.jenkins-ci.plugins plugin - 4.55 + 4.56 @@ -13,11 +13,11 @@ ${changelist} View Job Filters https://github.com/jenkinsci/${project.artifactId}-plugin - - scm:git:git://github.com/${gitHubRepo}.git - scm:git:git@github.com:${gitHubRepo}.git - https://github.com/${gitHubRepo} + + scm:git:https://github.com/${gitHubRepo} + scm:git:https://github.com/${gitHubRepo} ${scmTag} + https://github.com/${gitHubRepo} @@ -40,9 +40,9 @@ pom - org.jenkins-ci.main - maven-plugin - 3.5 + commons-net + commons-net + 3.9.0 @@ -72,30 +72,14 @@ true - org.jenkins-ci.plugins - m2-extra-steps - 1.1.8 + org.jenkins-ci.main + maven-plugin + 3.21 true - org.apache.maven.wagon - wagon-ssh - - - org.apache.maven.wagon - wagon-http - - - org.apache.commons - commons-lang3 - - - commons-io - commons-io - - - org.apache.maven.wagon - wagon-webdav-jackrabbit + javax.annotation + javax.annotation-api @@ -187,7 +171,7 @@ org.apache.maven.plugins maven-invoker-plugin - 3.1.0 + 3.4.0 integration-test-install diff --git a/src/main/java/hudson/views/MavenExtraStepsValuesHelper.java b/src/main/java/hudson/views/MavenExtraStepsValuesHelper.java deleted file mode 100644 index 531dcea..0000000 --- a/src/main/java/hudson/views/MavenExtraStepsValuesHelper.java +++ /dev/null @@ -1,40 +0,0 @@ -package hudson.views; - -import hudson.maven.MavenModuleSet; -import hudson.model.TopLevelItem; -import hudson.plugins.m2extrasteps.M2ExtraStepsWrapper; -import hudson.tasks.BuildWrapper; -import hudson.views.PluginHelperUtils.PluginHelperTestable; - -import java.util.ArrayList; -import java.util.List; - -/** - * Looks for maven extra steps plugin. - * - * @author jacob.robertson - */ -public class MavenExtraStepsValuesHelper implements PluginHelperTestable { - - public List getValues(TopLevelItem item) { - List values = new ArrayList(); - if (item instanceof MavenModuleSet) { - MavenModuleSet set = (MavenModuleSet) item; - - for (BuildWrapper wrapper : set.getBuildWrappers()) { - if (wrapper instanceof M2ExtraStepsWrapper) { - M2ExtraStepsWrapper mwrap = (M2ExtraStepsWrapper) wrapper; - MavenValuesHelper.addValues(values, mwrap - .getPreBuildSteps()); - MavenValuesHelper.addValues(values, mwrap - .getPostBuildSteps()); - } - } - } - return values; - } - @SuppressWarnings("unchecked") - public Class getPluginTesterClass() { - return M2ExtraStepsWrapper.class; - } -} diff --git a/src/main/java/hudson/views/MavenValuesHelper.java b/src/main/java/hudson/views/MavenValuesHelper.java index 825963a..8275431 100644 --- a/src/main/java/hudson/views/MavenValuesHelper.java +++ b/src/main/java/hudson/views/MavenValuesHelper.java @@ -15,7 +15,6 @@ public class MavenValuesHelper { * If I add any more helpers, switch to a better design first. */ public static final MavenProjectValuesHelper MODULESET_HELPER = buildMavenProjectValuesHelper(); - public static final MavenExtraStepsValuesHelper EXTRASTEPS_HELPER = buildMavenExtraStepsValuesHelper(); public static final MatrixProjectBuildersHelper MATRIX_PROJECT_HELPER = buildMatrixProjectBuildersHelper(); @SuppressWarnings({ "unchecked" }) @@ -33,10 +32,6 @@ public static List getValues(TopLevelItem item) { List more = MODULESET_HELPER.getValues(item); values.addAll(more); } - if (EXTRASTEPS_HELPER != null) { - List more = EXTRASTEPS_HELPER.getValues(item); - values.addAll(more); - } return values; } @@ -81,15 +76,6 @@ private static MavenProjectValuesHelper buildMavenProjectValuesHelper() { } } - private static MavenExtraStepsValuesHelper buildMavenExtraStepsValuesHelper() { - try { - return PluginHelperUtils.validateAndThrow(new MavenExtraStepsValuesHelper()); - } catch (Throwable t) { - // necessary maven plugins not installed - return null; - } - } - private static MatrixProjectBuildersHelper buildMatrixProjectBuildersHelper() { try { return PluginHelperUtils.validateAndThrow(new MatrixProjectBuildersHelper()); diff --git a/src/main/resources/hudson/views/AbstractBuildTrendFilter/config.jelly b/src/main/resources/hudson/views/AbstractBuildTrendFilter/config.jelly index d40467b..93d0857 100644 --- a/src/main/resources/hudson/views/AbstractBuildTrendFilter/config.jelly +++ b/src/main/resources/hudson/views/AbstractBuildTrendFilter/config.jelly @@ -3,14 +3,14 @@ xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project"> - - - - + +
+ +
diff --git a/src/main/resources/hudson/views/AbstractIncludeExcludeJobFilter/config.jelly b/src/main/resources/hudson/views/AbstractIncludeExcludeJobFilter/config.jelly index a915854..f737b62 100644 --- a/src/main/resources/hudson/views/AbstractIncludeExcludeJobFilter/config.jelly +++ b/src/main/resources/hudson/views/AbstractIncludeExcludeJobFilter/config.jelly @@ -3,11 +3,13 @@ xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project"> - +
+ +
\ No newline at end of file diff --git a/src/main/resources/hudson/views/BuildStatusFilter/config.jelly b/src/main/resources/hudson/views/BuildStatusFilter/config.jelly index 7e59404..42839a1 100644 --- a/src/main/resources/hudson/views/BuildStatusFilter/config.jelly +++ b/src/main/resources/hudson/views/BuildStatusFilter/config.jelly @@ -3,9 +3,15 @@ xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project"> - ${%Currently Building} - ${%Never Built} - ${%In Build Queue} +
+ +
+
+ +
+
+ +
\ No newline at end of file diff --git a/src/main/resources/hudson/views/JobStatusFilter/config.jelly b/src/main/resources/hudson/views/JobStatusFilter/config.jelly index 24e6cec..c666912 100644 --- a/src/main/resources/hudson/views/JobStatusFilter/config.jelly +++ b/src/main/resources/hudson/views/JobStatusFilter/config.jelly @@ -3,11 +3,21 @@ xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project"> - ${%Stable} - ${%Failed} - ${%Unstable} - ${%Aborted} - ${%Disabled} +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
\ No newline at end of file diff --git a/src/main/resources/hudson/views/MostRecentJobsFilter/config.jelly b/src/main/resources/hudson/views/MostRecentJobsFilter/config.jelly index 34b50b3..8c1e057 100644 --- a/src/main/resources/hudson/views/MostRecentJobsFilter/config.jelly +++ b/src/main/resources/hudson/views/MostRecentJobsFilter/config.jelly @@ -5,7 +5,7 @@ - + \ No newline at end of file diff --git a/src/main/resources/hudson/views/ParameterFilter/config.jelly b/src/main/resources/hudson/views/ParameterFilter/config.jelly index 6b7e2b1..94d55fe 100644 --- a/src/main/resources/hudson/views/ParameterFilter/config.jelly +++ b/src/main/resources/hudson/views/ParameterFilter/config.jelly @@ -9,15 +9,16 @@ - ${%Match the configured default values instead of the actual value from last successful build} + - ${%Match against this many previous builds} (${%blank or 0 for all}): - - + +
+ +
- ${%Match against builds in progress} + diff --git a/src/main/resources/hudson/views/RegExJobFilter/config.jelly b/src/main/resources/hudson/views/RegExJobFilter/config.jelly index 2e149b0..0a0c723 100644 --- a/src/main/resources/hudson/views/RegExJobFilter/config.jelly +++ b/src/main/resources/hudson/views/RegExJobFilter/config.jelly @@ -7,21 +7,31 @@
- +
+ +
- ${%Name} - ${%Full name} - ${%Display name} - ${%Full display name} +
+ +
+
+ +
+
+ +
+
+ +
diff --git a/src/main/resources/hudson/views/SecurityFilter/config.jelly b/src/main/resources/hudson/views/SecurityFilter/config.jelly index e85b55c..6534853 100644 --- a/src/main/resources/hudson/views/SecurityFilter/config.jelly +++ b/src/main/resources/hudson/views/SecurityFilter/config.jelly @@ -3,14 +3,21 @@ xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project"> - -
- ${%Configure}
- ${%Build}
- ${%Workspace} +
+ +
+
+ +
+
+ +
+
+ +
\ No newline at end of file diff --git a/src/main/resources/hudson/views/UpstreamDownstreamJobsFilter/config.jelly b/src/main/resources/hudson/views/UpstreamDownstreamJobsFilter/config.jelly index ffd0632..512374e 100644 --- a/src/main/resources/hudson/views/UpstreamDownstreamJobsFilter/config.jelly +++ b/src/main/resources/hudson/views/UpstreamDownstreamJobsFilter/config.jelly @@ -4,10 +4,18 @@ xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project"> - ${%Include downstream jobs}
- ${%Include upstream jobs}
- ${%Include upstream/downstream jobs recursively}
- ${%Do not show source jobs} +
+ +
+
+ +
+
+ +
+
+ +
\ No newline at end of file diff --git a/src/main/resources/hudson/views/UserRelevanceFilter/config.jelly b/src/main/resources/hudson/views/UserRelevanceFilter/config.jelly index f323d99..907eeff 100644 --- a/src/main/resources/hudson/views/UserRelevanceFilter/config.jelly +++ b/src/main/resources/hudson/views/UserRelevanceFilter/config.jelly @@ -4,46 +4,66 @@ xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
- ${"%Search for current user's id"}
- ${"%Search for current user's full name"}
+
+ +
+
+ +
-
- ${%Ignore case}
- ${%Ignore whitespace}
- ${%Ignore non-alphanumeric}
+
+
+ +
+
+ +
+
+ +
- ${%Match jobs where user is email recipient}
- ${%Match jobs with builds "started by" user}
- ${%Match jobs with builds where user is source code committer}
+
+ +
+
+ +
+
+ +
- +
+ +