File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/test/java/org/jenkinsci/plugins/workflow/support/steps/build Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,17 @@ public void upstreamBuilds() throws Throwable {
287287 });
288288 }
289289
290+ @ Test
291+ @ Issue ("JENKINS-73421" )
292+ public void externalizableId () throws Throwable {
293+ sessions .then (j -> {
294+ WorkflowJob first = j .createProject (WorkflowJob .class , "first-job" );
295+ first .setDefinition (new CpsFlowDefinition ("echo currentBuild.getExternalizableId()'\n " , true ));
296+ WorkflowRun firstRun = j .buildAndAssertSuccess (first );
297+ j .assertLogContains (firstRun .getExternalizableId (), firstRun );
298+ });
299+ }
300+
290301 // Like org.hamcrest.text.MatchesPattern.matchesPattern(String) but doing a substring, not whole-string, match:
291302 private static Matcher <String > containsRegexp (final String rx ) {
292303 return new SubstringMatcher ("containing the regexp" , false , rx ) {
You can’t perform that action at this time.
0 commit comments