Shell script or Gradle script which I use for automation

I want to build an app on android studio if any customer submit the request the shell script automatically do that which is in our server now I want to ask whether I use gradle script or shell script for it