Open TteamMBK opened 1 month ago
Hi @TteamMBK, the error usually indicates that the called program returned exit code 1. In your case, gradlew returned exit code 1 and probably there is some error during the execution. Could you please share a full log with diagnostic logs enabled?
error logs.txt Here is the txt file of logs
Based on the logs I see that the task :eventoffers:kaptReleaseKotlin was failed with exception
2024-05-21T10:24:54.6902360Z e: java.lang.IllegalStateException: failed to analyze: com.sun.tools.javac.code.ClassFinder$BadClassFile: bad class file: %fileName% (/io/realm/MutableRealmInteger.class)
2024-05-21T10:24:54.6927810Z unable to access file: java.nio.file.ClosedFileSystemException
2024-05-21T10:24:54.7167060Z Please remove or make sure it appears in the correct subdirectory of the classpath.
I also see that in the pipeline jdk version is 1.11 but in the yml you set 1.8. Is your project should be built via 1.11 and gradle 6.5? Are you able to build it locally with same setup?
Hi @DmitriiBobreshev
I tried your suggestion and changed jdk version in YML file from 1.8 to 1.11, then pushed code and run pipeline. but still (Android prod) pipeline got failed.
Yes, we are able to build our project locally.
@TteamMBK, Thanks for the answer, from what we see, the task wasn't changed but the images chagned recently, specifically version of kotlin was changed from 1.9.23 to 1.9.24 on almost all images. Could you please try to test it with new version of Kotlin and create an issue in runner-images repository?
Could you please elaborate a bit-
@TteamMBK,
@DmitriiBobreshev
For #1. We changed the version of pipeline same as of our Android studio but still getting the same error
Task name
Azure Devops Pipeline Failed
Breaking task version
No response
Last working task version
No response
Regression Description
While running the pipeline in azure devops for Android application, there was an issue due to which the pipeline failed - "The process '/Users/runner/work/1/s/gradlew' failed with exit code 1" Here is the iscreenshot![image](https://github.com/microsoft/azure-pipelines-tasks/assets/170402216/3c0870da-f532-43f1-baee-305a7d144e72)
What can be done to mitigate the above issue as sometimes when we are running the pipeline, pipeline is successful but sometimes it is getting the error as mentioned above. Recently it has started failing a lot and success rate is a bit low which is causing problem as it is much more time consuming.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 11
Relevant log output
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
SUCCESSFUL RUN
Repro steps