I'm trying to create a deploy plan which:
- Uploads a shared artifact to a remote server using an SCP task
- Executes an SSH task that runs a script on the remote server that takes as its argument the name of the file to install to the app server
I have everything working up until step #2, where I'm stuck trying to find a way to execute the deploy script.
Is there any way that I can refer to the file that was uploaded as part of the SCP task? If not, what good is it to SCP a file if we cannot refer to it in future tasks?
We're using Maven for build & dependency management and each successful build increments the POM number, so the name of the file to deploy isn't static.