First time using gradle and I’m trying to write a task that zips up a directory on a server. The compressed archive that results would be the output of the artifact creation. I want to run the transformation on the server as well so it would just be ‘tar -czf archive.tgz archive/’
I’m assuming i would use an SSH command to execute this.
What types of gradle configurations would I use for this. Essentially it’s
INPUT: directory of files on a remote server TRANSFORMATION: tar and gzip the directory OUTPUT: gzipped archive file of the directory.
Is there a gradle way of executing on a remote server ? The remote server does not have gradle installed so it would just be a shell. Also would i want to use any of the gradle workflows to support the input/output?