0

I am trying to achieve git clone, git commit, git push operations for multiple projects using this git repo code "Multiproject Git - Gradle Script " .

This code works perfectly with Git Clone operation, But somehow it doesn't work when I do commit or push. it accepts git commit and push commands via gradle without any error(shows success message) but when I clone repo again to verify contents , it comes empty.

I tried using direct commands on my git url, it works fine. but with this script I am not able to achieve same.

I am sure that git clone is working fine, the way it should work. but git commit or git push is not sending any files from local cloned repo to remote repo.

If any one can help.

Thanks in advance.

RKosamia
  • 181
  • 7
  • What happens when you run the script? What errors do you get? – Code-Apprentice May 17 '17 at 22:50
  • No error at all.check output image – RKosamia May 17 '17 at 23:10
  • You should copy and paste the output here rather than a screenshot. For one thing, I see "BUILD FAILED" but the error for this is hidden. Or is that unrelated? Which is then another reason to just paste the text directly. It is much easier to show only the related information that way. – Code-Apprentice May 17 '17 at 23:52
  • "BUILD FAILED" is unrelated. first I ran clone task, then gitCommmit, and then gitPush . all were successful. Think-2:multiproject-git-gradle rk$ gradle maybeClone :AnkAndroid_maybeClone :maybeClone BUILD SUCCESSFUL Total time: 1.088 secs Think-2:multiproject-git-gradle rk$ gradle gitCommit ... :AnkAndroid_gitCommit AnkAndroid : committing changes :gitCommit BUILD SUCCESSFUL Total time: 0.961 secs Think-2:multiproject-git-gradle rk$ gradle gitPush ... AnkAndroid : pushing master to origin :gitPush BUILD SUCCESSFUL – RKosamia May 18 '17 at 15:54
  • I am confused. If the script runs successfully, then what is the problem? – Code-Apprentice May 18 '17 at 16:19
  • That's the question. script runs successfully but it is doesn't works the way it should. it doesn't upload any file to git server with git push operation. – RKosamia May 18 '17 at 17:50

0 Answers0