File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed
src/main/java/io/jenkins/plugins/securepostscript Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >org.jenkins-ci.plugins</groupId >
6
6
<artifactId >plugin</artifactId >
7
- <version >4.6 </version >
7
+ <version >5.7 </version >
8
8
<relativePath />
9
9
</parent >
10
10
<groupId >io.jenkins.plugins</groupId >
14
14
<properties >
15
15
<revision >0.2</revision >
16
16
<changelist >-SNAPSHOT</changelist >
17
- <jenkins .version>2.176.4</jenkins .version>
18
- <java .level>8</java .level>
17
+ <!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
18
+ <jenkins .baseline>2.479</jenkins .baseline>
19
+ <jenkins .version>${jenkins.baseline} .1</jenkins .version>
19
20
</properties >
20
21
<name >Secure Post Script Plugin</name >
21
22
<url >https://github.com/jenkinsci/${project.artifactId} -plugin</url >
24
25
<dependencies >
25
26
<dependency >
26
27
<groupId >io.jenkins.tools.bom</groupId >
27
- <artifactId >bom-2.235 .x</artifactId >
28
- <version >11 </version >
28
+ <artifactId >bom-${jenkins.baseline} .x</artifactId >
29
+ <version >4136.vca_c3202a_7fd1 </version >
29
30
<scope >import</scope >
30
31
<type >pom</type >
31
32
</dependency >
39
40
</license >
40
41
</licenses >
41
42
42
- <developers >
43
- <developer >
44
- <id >geekchow</id >
45
- <name >Phil Zhou</name >
46
- </developer >
47
- </developers >
48
-
49
43
<scm >
50
- <connection >scm:git:git ://github.com/jenkinsci/${project.artifactId} -plugin.git</connection >
44
+ <connection >scm:git:https ://github.com/jenkinsci/${project.artifactId} -plugin.git</connection >
51
45
<
developerConnection >scm:git:
[email protected] :jenkinsci/
${project.artifactId} -plugin.git</
developerConnection >
52
46
<url >https://github.com/jenkinsci/${project.artifactId} -plugin</url >
53
47
<tag >secure-post-script-0.1-SNAPSHOT</tag >
Original file line number Diff line number Diff line change 9
9
import org .jenkinsci .plugins .scriptsecurity .sandbox .groovy .SecureGroovyScript ;
10
10
import org .kohsuke .stapler .DataBoundSetter ;
11
11
import org .kohsuke .stapler .QueryParameter ;
12
- import org .kohsuke .stapler .StaplerRequest ;
12
+ import org .kohsuke .stapler .StaplerRequest2 ;
13
13
14
14
import javax .annotation .CheckForNull ;
15
15
@@ -54,7 +54,7 @@ public String getRunCondition() {
54
54
}
55
55
56
56
@ Override
57
- public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
57
+ public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
58
58
this .runCondition = Result .fromString (json .getString ("runCondition" ));
59
59
save ();
60
60
return super .configure (req , json );
You can’t perform that action at this time.
0 commit comments