jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
113 stars 151 forks source link

skip `excludes` from downloading from github #328

Open ttodua opened 8 months ago

ttodua commented 8 months ago

There is "excludes" field (https://www.jenkins.io/doc/pipeline/steps/publish-over-ssh/#sshpublisher-send-build-artifacts-over-ssh) in Jenkinfile- https://pastebin.com/TsFZzKjM so, does this plugin download whole repo from github and then filters out the files according to "excludes" from sending to ssh?

Is it possible that the plugin didn't even download those "excludes" list from github (thus, instead of downloading whole repo from github, it downloaded other files except "excludes"). would that speed up the whole process or not?

I ask that because we might have some lot files under "excludes" and maybe skipping them from downloading github repo could speed-up development (though I had doubt that in such case, instead of downloading repo .zip, the individual download might take longer?? please mention your thoughts).

parvit commented 8 months ago

@ttodua Do you mean that the plugin should treat a git repo as a special case and honor the .gitignore files ?