We are testing an upgrade to TeamCity 10 and a bunch of our builds are throwing this error and I'm not entirely sure how to track it down.
Error: Could not find or load main class "-Djava.io.tmpdir=.home.linuxadmin.buildAgent.temp.buildTmp"
This is the entire build log.
[14:56:08]Collecting changes in 1 VCS root
[14:56:33]Clearing temporary directory: /home/linuxadmin/buildAgent/temp/buildTmp
[14:56:33]Publishing internal artifacts
[14:56:33]Checkout directory: /home/linuxadmin/buildAgent/work/633e02c7e346144e
[14:56:33]Updating sources: server side checkout
[14:56:34]Resolving artifact dependencies
[14:56:34]Step 1/1: Create Update (Gradle)
[14:56:34][Step 1/1] Starting: bash /home/linuxadmin/buildAgent/work/633e02c7e346144e/gradlew --init-script /home/linuxadmin/buildAgent/plugins/gradle-runner/scripts/init.gradle -PproductVersion=6.5 -PsuDrvVersion=+ -PfacAppVersion=+ -PivuSalVersion=+ -Dorg.gradle.daemon=false -s clean :superset:buildAll
[14:56:34][Step 1/1] in directory: /home/linuxadmin/buildAgent/work/633e02c7e346144e
[14:56:34][Step 1/1] Error: Could not find or load main class "-Djava.io.tmpdir=.home.linuxadmin.buildAgent.temp.buildTmp"
[14:56:34][Step 1/1] Process exited with code 1
[14:56:34][Step 1/1] Step Create Update (Gradle) failed
[14:56:34]Publishing internal artifacts