-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-67963] Add option to save bandwidth and resources, which are wasted unnecessarily #245
Conversation
For reference the job configuration i have used is attached also:
Following are the same tests but with feature disabled, in all cases the file is uploaded correctly. |
Thanks, tests look ok, except the output of each log shows 'SSH:Transferred 1 file(s)' - even when the file was skipped - a bug ? |
@gmcdonald Hi, no that seems to be a behavior in BPTransfer class of the parent plugin publish-over. To me there does not seem to a way to influence that count from the ssh plugin. |
@parvit in the top post of this PR, include such phrase in the bottom (or anywhere):
and it will link this PR to that issue's closure. |
Changed, I thought however that i did already link it with my first message. |
Merging this, though to note here as in the Issue that it would be much more useful if this was configurable at the job level rather than one big switch on/off for every job that only an Admin can configure - a possible future feature request, |
@gmcdonald can you tell, when the updated version (which would have this merged PR) will be released? the official page https://plugins.jenkins.io/publish-over-ssh/#documentation still shown 1.24 (which was "9 months ago") |
Hi @ttodua yes I am planning on doing a new release soon, just have a few bits to tidy up. |
@gmcdonald thanks for quick reply, how long it would take? passed several months and I have been hoping to get that released. any approximates? |
@parvit would you be able to make a new PR (I would make a small bounty for that too), so the plugin can have option to check/grab only those files which are presented as "changed/added" from github push action? i.e. from payload it's visible which files are changed on the last commit https://pastebin.com/raw/u8u0B4PB so plugin could download only affected files. what do you think (also @gmcdonald), maybe it will speed up the process, or not that much? |
Hi, thanks for reaching out to me.
I think it would make sense if you have that info so you can skip checking
the md5.
But would you ignore the other files as not changed or do we check them the
same?
What i mean is: would this new info be just a hint or the actual list to
upload?
Il Mar 15 Nov 2022, 07:55 T. Todua ***@***.***> ha scritto:
… @parvit <https://github.com/parvit> would you be able to make a new PR (I
would make a small bounty for that too), so the plugin can have option to
check/grab only those files which are presented as "changed/added" from
github push action? i.e. from payload it's visible which files are changed
on the last commit https://pastebin.com/raw/u8u0B4PB so plugin could
download only affected files. idk, maybe it will speed up the process, or
not at all?
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWGJD4HYDUM7MFTBGOQSWADWIMXUVANCNFSM5WWQOMAA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@gmcdonald sorry for bothering, may I ask if there is any way we could help you to push forward the release? |
1 similar comment
@gmcdonald sorry for bothering, may I ask if there is any way we could help you to push forward the release? |
@gmcdonald |
Hey @ttodua , and others, apologies, I have fallen behind on releases. Currently there is a bit of a lift to get back upto date on being compatible with current Jenkins versions and release practices. I will get back on this and let you know a timeline asap |
thanks for the heads up ! |
@gmcdonald if you have some thoughts on this. |
Hey @parvit, |
No i haven't, i was still waiting for your response to the comment of Nov 15 of last year. |
Hi @parvit , can you test it in pipeline? In my case, it's doesn't works. No md5 reference inside logs. Thanks, |
@parvit please drop me your mail (or contact me at |
Hi, i'm open to this but please know that the bountysource platform is not
usable anymore.
If you're open to discussing directly with me the bounty then please
confirm it and i'll send you my email.
Regards,
Il Dom 22 Ott 2023, 13:23 T. Todua ***@***.***> ha scritto:
… @parvit <https://github.com/parvit> please drop me your mail (or contact
me at toduatt@ gmail). I want you to open "issues" functionality on your
fork: https://github.com/parvit/publish-over-ssh-plugin/
and then there I would submit a new issue with bounty.
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWGJD4GDRTL55HHTAXC7ZQDYAT6ZXAVCNFSM5WWQOMAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGQYDMNZRGMYA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
[fixes #65]
It introduces the requested feature by which it is now possible to activate a configuration item under the SSH Host page (disabled by default) that will track the selected files for upload and check if it is really necessary to upload it again.
The tracking is done in a json file in job-specific folder and two values are tracked for every file:
The files are uploaded only if either:
As an optimization if the timestamp is not newer than the MD5 hash is not recomputed (which could be slow for big files).