jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
117 stars 150 forks source link

skip `excludes` from downloading from github #328

Open ttodua opened 1 year ago

ttodua commented 1 year 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 1 year ago

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