Skip to content

Commit

Permalink
[JENKINS-71658] Update plugin dependencies (#277)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Beck <[email protected]>
  • Loading branch information
daniel-beck and daniel-beck authored Jul 27, 2023
1 parent b04a174 commit 66a774b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
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);
}
}

0 comments on commit 66a774b

Please sign in to comment.