diff --git a/pom.xml b/pom.xml
index efc277c5..e6b5f204 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
999999-SNAPSHOT
jenkinsci/${project.artifactId}-plugin
- 2.387.3
+ 2.440.3
Max
4.0
@@ -68,8 +68,8 @@
io.jenkins.tools.bom
- bom-2.387.x
- 2543.vfb_1a_5fb_9496d
+ bom-2.440.x
+ 3289.v3ff9637cd241
import
pom
@@ -81,12 +81,6 @@
org.jenkins-ci.main
maven-plugin
true
-
-
- commons-net
- commons-net
-
-
org.jenkins-ci.plugins
@@ -105,16 +99,6 @@
org.jenkins-ci.plugins
structs
-
- org.hamcrest
- hamcrest
- test
-
-
- org.mockito
- mockito-core
- test
-
org.jenkins-ci.plugins
token-macro
@@ -133,12 +117,6 @@
job-dsl
1.87
true
-
-
- org.codehaus.groovy
- groovy-all
-
-
org.jenkins-ci.plugins
@@ -150,7 +128,7 @@
true
-
+
org.jenkins-ci.plugins
parameterized-trigger
test
diff --git a/src/main/java/hudson/plugins/promoted_builds/PromotionCondition.java b/src/main/java/hudson/plugins/promoted_builds/PromotionCondition.java
index 9c995baa..bbaf815a 100644
--- a/src/main/java/hudson/plugins/promoted_builds/PromotionCondition.java
+++ b/src/main/java/hudson/plugins/promoted_builds/PromotionCondition.java
@@ -29,6 +29,7 @@ public abstract class PromotionCondition implements ExtensionPoint, Describable<
* @deprecated
*/
@CheckForNull
+ @Deprecated
public PromotionBadge isMet(AbstractBuild,?> build) {
return null;
}
diff --git a/src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java b/src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
index 5c4a2a2e..1f8e0b6b 100644
--- a/src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
+++ b/src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
@@ -467,6 +467,7 @@ public void promote(AbstractBuild,?> build, Cause cause, PromotionBadge... bad
* @deprecated
* Use {@link #promote2(AbstractBuild, Cause, Status)}
*/
+ @Deprecated
public void promote(AbstractBuild,?> build, Cause cause, Status qualification) throws IOException {
promote2(build,cause,qualification);
}
diff --git a/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java b/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java
index 4393fbb2..37a6bb5d 100644
--- a/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java
+++ b/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java
@@ -153,6 +153,7 @@ private static String getExpandedJobs(@CheckForNull String jobs, @CheckForNull E
/**
* @deprecated use {@link #contains(hudson.model.ItemGroup, hudson.model.AbstractProject, hudson.EnvVars)}
*/
+ @Deprecated
public boolean contains(ItemGroup ctx, AbstractProject,?> job){
return contains(ctx, job, null);
}
@@ -181,6 +182,7 @@ public boolean contains(ItemGroup ctx, AbstractProject,?> job, EnvVars environ
* Short-cut for {@code getJobList().contains(job)}.
* @deprecated use {@link #contains(hudson.model.ItemGroup, hudson.model.AbstractProject)}
*/
+ @Deprecated
public boolean contains(AbstractProject,?> job) {
return contains(Jenkins.get(), job);
}
diff --git a/src/test/java/hudson/plugins/promoted_builds/PromotedBuildRebuildParameterProviderTest.java b/src/test/java/hudson/plugins/promoted_builds/PromotedBuildRebuildParameterProviderTest.java
index 54c9aada..704726ee 100644
--- a/src/test/java/hudson/plugins/promoted_builds/PromotedBuildRebuildParameterProviderTest.java
+++ b/src/test/java/hudson/plugins/promoted_builds/PromotedBuildRebuildParameterProviderTest.java
@@ -82,9 +82,9 @@ public void testRebuild() throws Exception {
// rebuild it
JenkinsRule.WebClient wc = j.createWebClient();
- HtmlPage page = wc.getPage(b2, "rebuild");
- HtmlForm form = page.getFormByName("config");
- j.submit(form);
+ HtmlPage buildPage = wc.getPage(b2);
+ HtmlPage rebuildConfigPage = buildPage.getAnchorByText("Rebuild").click();
+ j.submit(rebuildConfigPage.getFormByName("config"));
j.waitUntilNoActivity();
// validate presence of parameter