Skip to content

Commit

Permalink
Use generic env var to detect CI
Browse files Browse the repository at this point in the history
The CCUDME build runs on both GitHub Actions and TeamCity. This change will correctly configure Develocity in both environments.

Signed-off-by: Daz DeBoer <[email protected]>
  • Loading branch information
bigdaz authored Nov 15, 2024
1 parent bc1ec76 commit 3b63f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .mvn/develocity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<allowUntrusted>false</allowUntrusted>
</server>
<buildScan>
<backgroundBuildScanUpload>#{isFalse(env['GITHUB_ACTIONS'])}</backgroundBuildScanUpload>
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload>
<publishing>
<onlyIf>
<![CDATA[authenticated]]>
Expand All @@ -23,7 +23,7 @@
<enabled>true</enabled>
</local>
<remote>
<storeEnabled>#{isTrue(env['GITHUB_ACTIONS']) and isTrue(env['DEVELOCITY_ACCESS_KEY'])}</storeEnabled>
<storeEnabled>#{isTrue(env['CI']) and isTrue(env['DEVELOCITY_ACCESS_KEY'])}</storeEnabled>
</remote>
</buildCache>
</develocity>

0 comments on commit 3b63f41

Please sign in to comment.