@@ -415,7 +415,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
415
415
// by having some checkouts (and so list of SCMs).
416
416
417
417
// Do not let caller-provided BRANCH_NAME interfere here
418
- assumeFalse ("An externally provided BRANCH_NAME envvar interferes with tested logic" ,
418
+ assumeFalse ("SKIP by pre-test assumption: " +
419
+ "An externally provided BRANCH_NAME envvar interferes with tested logic" ,
419
420
System .getenv ("BRANCH_NAME" ) != null );
420
421
421
422
sampleRepo1ContentMasterFeature ();
@@ -687,7 +688,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
687
688
System .out .println ("MBP source 0: " + mbp .getSourcesList ().get (0 ).getSource ().toString ());
688
689
System .out .println ("MBP source 1: " + mbp .getSourcesList ().get (1 ).getSource ().toString ());
689
690
System .out .println ("Jobs generated by MBP: " + mbp .getItems ().toString ());
690
- assumeFalse ("MBP should have generated 'feature' and 'featurette' pipeline job" , mbp .getItems ().size () != 2 );
691
+ assumeFalse ("SKIP by pre-test assumption: " +
692
+ "MBP should have generated 'feature' and 'featurette' pipeline job" , mbp .getItems ().size () != 2 );
691
693
692
694
// In case of MBP with "Single repository and branch"
693
695
// it only defines one job (per single-branch source),
@@ -775,7 +777,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
775
777
System .out .println ("MBP source 0: " + mbp .getSourcesList ().get (0 ).getSource ().toString ());
776
778
System .out .println ("MBP source 1: " + mbp .getSourcesList ().get (1 ).getSource ().toString ());
777
779
System .out .println ("Jobs generated by MBP: " + mbp .getItems ().toString ());
778
- assumeFalse ("MBP should have generated 'feature' and 'featurette' pipeline job" , mbp .getItems ().size () != 2 );
780
+ assumeFalse ("SKIP by pre-test assumption: " +
781
+ "MBP should have generated 'feature' and 'featurette' pipeline job" , mbp .getItems ().size () != 2 );
779
782
780
783
// In case of MBP with "Single repository and branch"
781
784
// it only defines one job (per single-branch source),
@@ -867,7 +870,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
867
870
// a simple "Pipeline" job with static SCM source,
868
871
// and that even lc.setAllowVersionOverride(false)
869
872
// does not intervene here.
870
- assumeFalse ("An externally provided BRANCH_NAME envvar interferes with tested logic" ,
873
+ assumeFalse ("SKIP by pre-test assumption: " +
874
+ "An externally provided BRANCH_NAME envvar interferes with tested logic" ,
871
875
System .getenv ("BRANCH_NAME" ) != null );
872
876
873
877
sampleRepo1ContentMasterFeature ();
@@ -917,7 +921,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
917
921
// "unexpected" log message (so far expected due
918
922
// to the bug being hunted), but counts the faults
919
923
// and asserts in the end whether there were none.
920
- assumeFalse ("An externally provided BRANCH_NAME envvar interferes with tested logic" ,
924
+ assumeFalse ("SKIP by pre-test assumption: " +
925
+ "An externally provided BRANCH_NAME envvar interferes with tested logic" ,
921
926
System .getenv ("BRANCH_NAME" ) != null );
922
927
923
928
sampleRepo1ContentMasterFeatureStable ();
@@ -1034,7 +1039,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
1034
1039
// TODO: If this behavior does change, extend
1035
1040
// the test to also try ${env.VARNAME} confusion.
1036
1041
1037
- assumeFalse ("An externally provided BRANCH_NAME envvar interferes with tested logic" ,
1042
+ assumeFalse ("SKIP by pre-test assumption: " +
1043
+ "An externally provided BRANCH_NAME envvar interferes with tested logic" ,
1038
1044
System .getenv ("BRANCH_NAME" ) != null );
1039
1045
1040
1046
sampleRepo1ContentMasterFeature ();
@@ -1079,7 +1085,9 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
1079
1085
r .assertLogContains ("was not a constant; did you mean to use the" , b1 );
1080
1086
r .assertLogContains ("step instead?" , b1 );
1081
1087
// assertions survived, skip the test
1082
- assumeFalse ("LibraryDecorator forbids use of double-quotes for @Library annotation" , true );
1088
+ // not exactly "pre-test" but oh well
1089
+ assumeFalse ("SKIP by pre-test assumption: " +
1090
+ "LibraryDecorator forbids use of double-quotes for @Library annotation" , true );
1083
1091
} catch (AssertionError x ) {
1084
1092
// Chosen library version should not be "whatever"
1085
1093
// causing fallback to "master", but "feature" per
@@ -1095,7 +1103,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
1095
1103
// Test that lightweight checkouts from SCM allow
1096
1104
// @Library('branchylib@${BRANCH_NAME}') to see
1097
1105
// sufficient SCM context to determine the branch.
1098
- assumeFalse ("An externally provided BRANCH_NAME envvar interferes with tested logic" ,
1106
+ assumeFalse ("SKIP by pre-test assumption: " +
1107
+ "An externally provided BRANCH_NAME envvar interferes with tested logic" ,
1099
1108
System .getenv ("BRANCH_NAME" ) != null );
1100
1109
1101
1110
sampleRepo1ContentMasterFeature ();
@@ -1136,7 +1145,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
1136
1145
// is resolved with the TEST_VAR_NAME="feature" in environment.
1137
1146
1138
1147
// Do not let caller-provided BRANCH_NAME interfere here
1139
- assumeFalse ("An externally provided TEST_VAR_NAME envvar interferes with tested logic" ,
1148
+ assumeFalse ("SKIP by pre-test assumption: " +
1149
+ "An externally provided TEST_VAR_NAME envvar interferes with tested logic" ,
1140
1150
System .getenv ("TEST_VAR_NAME" ) != null );
1141
1151
1142
1152
sampleRepo1ContentMasterFeatureStable ();
@@ -1203,7 +1213,8 @@ private void sampleRepo2ContentUniqueMasterFeatureBogus_staticStrings(String sub
1203
1213
ecOrig .add (ec );
1204
1214
}
1205
1215
ecList .removeAll (ecOrig );
1206
- assumeFalse ("EnvironmentContributor.all() should be empty now" , !ecList .isEmpty ());
1216
+ assumeFalse ("SKIP by pre-test assumption: " +
1217
+ "EnvironmentContributor.all() should be empty now" , !ecList .isEmpty ());
1207
1218
1208
1219
ecList .add (new EnvironmentContributor () {
1209
1220
@ Override public void buildEnvironmentFor (Run run , EnvVars ev , TaskListener tl ) throws IOException , InterruptedException {
@@ -1655,7 +1666,8 @@ public static class BasicSCMSource extends SCMSource {
1655
1666
1656
1667
@ Issue ("SECURITY-2463" )
1657
1668
@ Test public void checkoutDirectoriesAreNotReusedByDifferentScms () throws Exception {
1658
- assumeFalse ("checkoutDirectoriesAreNotReusedByDifferentScms() is " +
1669
+ assumeFalse ("SKIP by pre-test assumption: " +
1670
+ "checkoutDirectoriesAreNotReusedByDifferentScms() is " +
1659
1671
"skipped on Windows: Checkout hook is not cross-platform" ,
1660
1672
Functions .isWindows ());
1661
1673
sampleRepo .init ();
0 commit comments