Skip to content
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

[JENKINS-71658] Update plugin dependencies #277

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,6 @@
<scope>import</scope>
<type>pom</type>
</dependency>
<!--
TODO script-security 1172.v35f6a_0b_8207e breaks
EnvInjectEvaluatedGroovyScriptTest#testWorkaroundSecurity86, so downgrade it to the
last working version along with anything that depends on the newer broken version
-->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>junit</artifactId>
<version>1.63</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>matrix-project</artifactId>
<version>771.v574584b_39e60</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>script-security</artifactId>
<version>1158.v7c1b_73a_69a_08</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-support</artifactId>
<version>820.vd1a_6cc65ef33</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import hudson.model.FreeStyleProject;
import edu.umd.cs.findbugs.annotations.NonNull;
import org.htmlunit.html.HtmlForm;
import org.jvnet.hudson.test.JenkinsRule;

/**
Expand All @@ -19,6 +20,9 @@ public class TestUtils {
*/
public static void saveConfigurationAs(@NonNull JenkinsRule jenkins, @NonNull FreeStyleProject project, @NonNull String userId) throws Exception {
JenkinsRule.WebClient w = jenkins.createWebClient().login(userId);
jenkins.submit(w.getPage(project, "configure").getFormByName("config"));
final HtmlForm formByName = w.getPage(project, "configure").getFormByName("config");
// Workaround for SECURITY-2450 in Script Security 1172.v35f6a_0b_8207e and newer
formByName.getInputsByName("oldScript").forEach(input -> input.setValue("different value to force behavior when modified"));
jenkins.submit(formByName);
}
}