I have a requirement to deploy multiple artifacts in the deployment projects. currently i have 4 environments to deploy dev/qa/uat/prod. so my requirement is i have like 10 artifacts which i download using artifact download task, then i use scp task to send them to the hosts. I need a option to send the artifacts on choice i.e
scenario 1:
will send 3 artifacts
scenario 2:
will send 10
scenario 3:
will send 1
So, basically i should have an option to scp them according to my requirement,there is no fixed number of artifacts i want to send.
i can do this by using multiple scp tasks and enabling or disabling them as and when needed or i can even use a shell script to do this. But, it will be a burden if there are more files and even with the script i need to pass the artifact as an argument.
please help me