Skip to content

Commit 3cb7ea5

Browse files
authored
Merge branch 'master' into logging-exMTL
2 parents 92b74f1 + 6143db6 commit 3cb7ea5

File tree

7 files changed

+393
-247
lines changed

7 files changed

+393
-247
lines changed

plugin/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@
2020
},
2121
"readme": "../README.md",
2222
"devDependencies": {
23-
"@babel/cli": "^7.27.2",
24-
"@babel/core": "^7.27.4",
25-
"@babel/preset-env": "^7.27.2",
23+
"@babel/cli": "^7.28.0",
24+
"@babel/core": "^7.28.0",
25+
"@babel/preset-env": "^7.28.0",
2626
"@delucis/if-env": "^1.1.2",
2727
"@eslint/eslintrc": "^3.3.1",
28-
"@eslint/js": "^9.29.0",
28+
"@eslint/js": "^9.33.0",
2929
"autoprefixer": "^10.4.21",
3030
"babel-loader": "^10.0.0",
3131
"clean-webpack-plugin": "^4.0.0",
3232
"css-loader": "^7.1.2",
33-
"eslint": "^9.29.0",
33+
"eslint": "^9.33.0",
3434
"eslint-formatter-checkstyle": "^8.40.0",
3535
"eslint-plugin-only-warn": "^1.1.0",
36-
"globals": "^16.2.0",
37-
"less": "^4.3.0",
36+
"globals": "^16.3.0",
37+
"less": "^4.4.0",
3838
"less-loader": "^12.3.0",
39-
"mini-css-extract-plugin": "^2.9.2",
39+
"mini-css-extract-plugin": "^2.9.3",
4040
"postcss": "^8.5.6",
4141
"postcss-less": "^6.0.0",
4242
"postcss-loader": "^8.1.1",
4343
"style-loader": "^4.0.0",
44-
"webpack": "^5.99.9",
44+
"webpack": "^5.101.0",
4545
"webpack-cli": "^6.0.1",
4646
"webpack-fix-style-only-entries": "^0.6.1",
4747
"webpack-merge": "^6.0.1"

plugin/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
<maven.test.failure.ignore>false</maven.test.failure.ignore>
4949
<frontend.testFailureIgnore>${maven.test.failure.ignore}</frontend.testFailureIgnore>
5050
<useBeta>true</useBeta> <!-- FailureHandler -->
51+
<hpi.bundledArtifacts>diff4j,groovy-cps</hpi.bundledArtifacts>
52+
<hpi.strictBundledArtifacts>true</hpi.strictBundledArtifacts>
5153
</properties>
5254
<dependencyManagement>
5355
<dependencies>

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsBodySubContext.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ public int hashCode() {
5454
return 31 * base.hashCode() + node.hashCode();
5555
}
5656

57+
@Override
58+
public String toString() {
59+
return "CpsBodySubContext[" + base + ":" + node.getId()+ "]";
60+
}
61+
5762
// Delegation to 'base' from here
5863
//======================================
5964

60-
6165
@Override
6266
public void onFailure(Throwable t) {
6367
base.onFailure(t);

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,8 +1311,6 @@ void runInCpsVmThread(final FutureCallback<CpsThreadGroup> callback) {
13111311
}
13121312
// first we need to wait for programPromise to fullfil CpsThreadGroup, then we need to run in its runner, phew!
13131313
Futures.addCallback(programPromise, new FutureCallback<>() {
1314-
final Exception source = new Exception(); // call stack of this object captures who called this. useful during debugging.
1315-
13161314
@Override
13171315
public void onSuccess(final CpsThreadGroup g) {
13181316
g.runner.submit(new Runnable() {

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsStepContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public CpsBodyInvoker newBodyInvoker() {
296296
protected <T> T doGet(Class<T> key) throws IOException, InterruptedException {
297297
CpsThread t = getThreadSynchronously();
298298
if (t == null) {
299-
throw new IOException("cannot find current thread");
299+
throw new IOException("cannot find current thread in " + this);
300300
}
301301
return t.getContextVariable(key, this::getExecution, this::getNode);
302302
}
@@ -305,7 +305,7 @@ protected <T> T doGet(Class<T> key) throws IOException, InterruptedException {
305305
if (node == null) {
306306
node = getExecution().getNode(id);
307307
if (node == null) {
308-
throw new IOException("no node found for " + id);
308+
throw new IOException("no node found for " + id + " in " + this);
309309
}
310310
}
311311
return node;

0 commit comments

Comments
 (0)