Skip to content

Commit 315adc8

Browse files
committed
fix: dont publish test-classes bound mvn runs and tag them to be able to seperate them
1 parent 9f50775 commit 315adc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.mvn/gradle-enterprise.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
mvn gradle-enterprise:provision-access-key
99
https://docs.gradle.com/enterprise/maven-extension/#publishing_based_on_criteria
1010
-->
11-
<publish>ALWAYS</publish>
11+
<!-- only publish test runs when failure (no option to completely avoid it)-->
12+
<publish>#{basedir.contains('test-classes') ? 'ON_FAILURE' : 'ALWAYS'}</publish>
13+
<!-- tag which builds are tests vs real -->
14+
<tags>
15+
<tag>#{basedir.contains('test-classes') ? 'TEST-BUILD' : 'MAIN-BUILD'}</tag>
16+
</tags>
1217
<obfuscation>
1318
<!-- Don't share ip addresses-->
1419
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>

0 commit comments

Comments
 (0)