File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/test/java/org/jenkinsci/plugins/workflow/libs Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,14 @@ public class SCMSourceRetrieverTest {
259
259
WorkflowRun b3 = r .buildAndAssertSuccess (p3 );
260
260
r .assertLogContains ("something special" , b3 );
261
261
262
+ // Use a specified but missing branch
263
+ WorkflowJob p4 = r .jenkins .createProject (WorkflowJob .class , "p4" );
264
+ p4 .setDefinition (new CpsFlowDefinition ("@Library('branchylib@bogus') import myecho; myecho()" , true ));
265
+ WorkflowRun b4 = r .buildAndAssertStatus (Result .FAILURE , p4 );
266
+ r .assertLogContains ("ERROR: No version bogus found for library branchylib" , b4 );
267
+ r .assertLogContains ("org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:" , b4 );
268
+ r .assertLogContains ("WorkflowScript: Loading libraries failed" , b4 );
269
+
262
270
// TODO: create a job instantiated from Git (or fooled into
263
271
// thinking it is - injecting BRANCH_NAME envvar via Java)
264
272
// and check behaviors with BRANCH_NAME="master",
You can’t perform that action at this time.
0 commit comments