Steps to reproduce:
1. Open the attached user's project "BuildTesting_BugReport.zip"
2. Call BuildScript.BuildAndroid(Debug)()Method. This can be done via Building>Android in the Toolbar
3. Check Console Window, DirectoryNotFoundException exception is thrown
Expected results: build is successful
Actual results: build fails with DirectoryNotFoundException exception
Reproducible with: 2020.3.36f1, 2021.3.6f1, 2022.1.9f1, 2022.2.0b1, 2023.1.0a3
Could not test on 2021.1.28f1, 2021.2.18f1 due to gradle build errors
Notes:
-Forum-Thread for this bug can be found here: https://forum.unity.com/threads/unity-2021-not-outputting-mapping-txt-in-ci-environment.1283150
-Only reproducible on Android
-A workaround is to have a folder already created prior to building, It just needs to match the output-folder in your Build script