Skip to content

Commit 4a01731

Browse files
authored
Merge branch 'master' into JENKINS-70695
2 parents 33d80ff + a3a6988 commit 4a01731

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1362
-689
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ updates:
1616
schedule:
1717
interval: "weekly"
1818
- package-ecosystem: "npm"
19-
directory: "/"
19+
directory: "/plugin"
2020
schedule:
2121
interval: "weekly"

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<extension>
33
<groupId>io.jenkins.tools.incrementals</groupId>
44
<artifactId>git-changelist-maven-extension</artifactId>
5-
<version>1.6</version>
5+
<version>1.7</version>
66
</extension>
77
</extensions>

Jenkinsfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
buildPlugin(useContainerAgent: true, configurations: [
2-
[ platform: "windows", jdk: "11" ],
3-
[ platform: "linux", jdk: "17" ]
1+
/*
2+
See the documentation for more options:
3+
4+
https://github.com/jenkins-infra/pipeline-library/
5+
6+
*/
7+
buildPlugin(
8+
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
9+
configurations: [
10+
[platform: 'linux', jdk: 21],
11+
[platform: 'windows', jdk: 17],
412
])

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ The executor widget only displays an entry for the “flyweight” executor on t
7878
* [Continuation, Next, and Env](doc/cps-model.md) and how we interpret Groovy program
7979
* [How interpreted program is represented](doc/block-tree.md)
8080
* [CPS + Sandbox](doc/sandbox.md)
81+
82+
## Development
83+
84+
When developing the editor, edit `plugin/package.json` to set `mvnbuild` to `yarn dev` instead of `yarn prod`.
85+
This will allow you to do in situ debugging of JavaScript in your browser.

doc/classloader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ which is not trusted.
2323
Scripts loaded in TCL, OTOH, does not live in the security sandbox. This
2424
classloader is meant to be used to load Groovy code packaged inside
2525
plugins and global libraries. Write access to these sources should be
26-
restricted to `RUN_SCRIPTS` permission.
26+
restricted to `ADMINISTER` permission.
2727

2828
## Persisting code & surviving restarts
2929
When a Groovy script is loaded via one of `GroovyShell.parse*()` and

lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</build>
7474

7575
<properties>
76-
<groovy-sandbox.version>1.32</groovy-sandbox.version>
76+
<groovy-sandbox.version>1.33</groovy-sandbox.version>
7777
<no-test-jar>false</no-test-jar>
7878
</properties>
7979
<dependencies>

lib/src/test/java/com/cloudbees/groovy/cps/CpsTransformerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ public void exceptionFromNonCpsCodeShouldBeCaughtByCatchBlockInCpsCode() throws
188188
"}\n");
189189
assertThat(message, anyOf(
190190
equalTo("String index out of range: -2"), // Before Java 14
191-
equalTo("begin 5, end 3, length 3"))); // Later versions
191+
equalTo("begin 5, end 3, length 3"), // Before Java 18
192+
equalTo("Range [5, 3) out of bounds for length 3"))); // Later versions
192193
}
193194

194195
/**

plugin/.eslintrc.js

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,16 @@ module.exports = {
55
root: true,
66
env: {
77
browser: true,
8-
es6: true
8+
es2022: true
99
},
1010
// Uses eslint default ruleset
1111
extends: "eslint:recommended",
12-
plugins: [
13-
// Keeps the default level to warn to avoid breaking the current
14-
// CI build environment
15-
"only-warn"
16-
],
1712
parserOptions: {
18-
ecmaVersion: 2018,
13+
ecmaVersion: 2022,
1914
sourceType: "module"
2015
},
2116
rules: {
22-
},
23-
globals: {
24-
Atomics: "readonly",
25-
SharedArrayBuffer: "readonly",
26-
27-
'__dirname': false,
28-
29-
// Allow jest globals used in tests
30-
jest: false,
31-
expect: false,
32-
it: false,
33-
describe: false,
34-
beforeEach: false,
35-
afterEach: false,
36-
beforeAll: false,
37-
afterAll: false,
17+
curly: "error",
3818
}
3919
};
4020

plugin/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "workflow-ui",
33
"version": "1.0.0",
44
"description": "Jenkins Pipeline UI",
5+
"private": true,
56
"author": "Tom Fennelly <[email protected]> (https://github.com/tfennelly)",
67
"license": "MIT",
78
"scripts": {
8-
"dev": "webpack --config webpack.config.js",
9-
"prod": "webpack --config webpack.config.js --mode=production",
10-
"start": "yarn dev -- --watch",
9+
"dev": "webpack --config webpack.dev.js",
10+
"prod": "webpack --config webpack.prod.js",
11+
"start": "yarn dev --watch",
1112
"lint:js": "eslint src/main/js --ext js",
1213
"mvnbuild": "yarn prod",
1314
"mvntest": "yarn lint:js"
@@ -25,27 +26,27 @@
2526
"babel-loader": "^9.0.1",
2627
"clean-webpack-plugin": "^4.0.0",
2728
"css-loader": "^5.0.0",
28-
"eslint": "^7.12.1",
29-
"eslint-plugin-only-warn": "^1.0.3",
29+
"eslint": "^8.41.0",
30+
"eslint-plugin-only-warn": "^1.1.0",
3031
"less": "^3.12.2",
3132
"less-loader": "^7.0.2",
3233
"mini-css-extract-plugin": "^1.2.1",
3334
"postcss": "^8.2.13",
3435
"postcss-less": "^4.0.0",
3536
"postcss-loader": "^4.0.4",
3637
"style-loader": "^2.0.0",
37-
"webpack": "5.74.0",
38-
"webpack-cli": "^4.10.0",
39-
"webpack-fix-style-only-entries": "^0.6.1"
38+
"webpack": "^5.76.3",
39+
"webpack-cli": "^5.0.1",
40+
"webpack-fix-style-only-entries": "^0.6.1",
41+
"webpack-merge": "^5.8.0"
4042
},
4143
"dependencies": {
4244
"ace-builds": "^1.15.0",
4345
"jquery": "^3.6.1",
44-
"jquery-ui": "^1.13.2",
45-
"raf": "^3.4.1"
46+
"jquery-ui": "^1.13.2"
4647
},
4748
"browserslist": [
4849
"defaults",
49-
"IE 11"
50+
"not IE 11"
5051
]
5152
}

plugin/pom.xml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@
4242
</licenses>
4343
<properties>
4444
<no-test-jar>false</no-test-jar>
45-
<node.version>18.13.0</node.version>
46-
<npm.version>8.19.3</npm.version>
45+
<node.version>18.15.0</node.version>
4746
<yarn.version>1.22.19</yarn.version>
4847
</properties>
4948
<dependencyManagement>
5049
<dependencies>
5150
<dependency>
5251
<groupId>io.jenkins.tools.bom</groupId>
53-
<artifactId>bom-2.361.x</artifactId>
54-
<version>1883.vcb_768a_7c3610</version>
52+
<artifactId>bom-2.387.x</artifactId>
53+
<version>2378.v3e03930028f2</version>
5554
<scope>import</scope>
5655
<type>pom</type>
5756
</dependency>
@@ -184,17 +183,6 @@
184183
</exclusion>
185184
</exclusions>
186185
</dependency>
187-
<dependency>
188-
<groupId>io.jenkins.plugins</groupId>
189-
<artifactId>theme-manager</artifactId>
190-
<optional>true</optional>
191-
<exclusions>
192-
<exclusion>
193-
<groupId>io.jenkins.blueocean</groupId>
194-
<artifactId>blueocean-web</artifactId>
195-
</exclusion>
196-
</exclusions>
197-
</dependency>
198186
<dependency>
199187
<groupId>org.jenkins-ci.plugins</groupId>
200188
<artifactId>scm-api</artifactId>
@@ -265,7 +253,7 @@
265253
<dependency>
266254
<groupId>org.testcontainers</groupId>
267255
<artifactId>testcontainers</artifactId>
268-
<version>1.18.0</version>
256+
<version>1.19.0</version>
269257
<scope>test</scope>
270258
<exclusions>
271259
<!-- Provided by Jenkins core -->

0 commit comments

Comments
 (0)