Skip to content

Commit

Permalink
Require Jenkins 2.440.3 or newer (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite authored Aug 28, 2024
1 parent 41b124e commit cdac6ae
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 29 deletions.
30 changes: 4 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<jenkins.version>2.387.3</jenkins.version>
<jenkins.version>2.440.3</jenkins.version>
<spotbugs.effort>Max</spotbugs.effort>
<hpi.compatibleSinceVersion>4.0</hpi.compatibleSinceVersion>
</properties>
Expand Down Expand Up @@ -68,8 +68,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.387.x</artifactId>
<version>2543.vfb_1a_5fb_9496d</version>
<artifactId>bom-2.440.x</artifactId>
<version>3289.v3ff9637cd241</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand All @@ -81,12 +81,6 @@
<groupId>org.jenkins-ci.main</groupId>
<artifactId>maven-plugin</artifactId>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand All @@ -105,16 +99,6 @@
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>token-macro</artifactId>
Expand All @@ -133,12 +117,6 @@
<artifactId>job-dsl</artifactId>
<version>1.87</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand All @@ -150,7 +128,7 @@
<optional>true</optional>
</dependency>
<dependency>
<!-- TODO: it is something insane, no? -->
<!-- Needed for Job DSL test -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>parameterized-trigger</artifactId>
<scope>test</scope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public abstract class PromotionCondition implements ExtensionPoint, Describable<
* @deprecated
*/
@CheckForNull
@Deprecated
public PromotionBadge isMet(AbstractBuild<?,?> build) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdac6ae

Please sign in to comment.