sshget is showing the entire contents of the file in console output log

classic Classic list List threaded Threaded
6 messages Options
cw
Reply | Threaded
Open this post in threaded view
|

sshget is showing the entire contents of the file in console output log

cw
When executing the following in a scripted pipeline:

sshGet remote: soc_remote, from: "/srv/jboss/server/${MAL}/log/${sourcefile}", into: FileName, override: true

The file is downloaded successfully from the remote server into the local directory on the Jenkins server.  However, the console output shows the contents of that file in its entirety, and the logs files in the build folder also contains the contents of the file.  The file is embedded within the rest of the log entries, and is not usable.  Therefore when I am downloading large files with sshGet, I end up consuming twice the space I should be, since I have a log file roughly the size of the file, and then the file itself which was downloaded.  How can I turn this off so the log file only indicates success or failure, and is not also including the contents of the file?

Craig

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a2b01d9a-17a0-435b-9fc5-489d06bab016%40googlegroups.com.
cw
Reply | Threaded
Open this post in threaded view
|

Re: sshget is showing the entire contents of the file in console output log

cw
Does anyone have any ideas on this?  I am using Jenkins ver. 2.190.3 on Windows 2012 with ssh versions below. This is not only a space issue, but a security issue, since sometimes I am downloading files with sensitive information in them and don't want those details available in the jenkins logs.

ssh2.6.1true
ssh-agent1.17true
ssh-credentials1.18true
ssh-steps2.0.0true

On Tuesday, May 5, 2020 at 4:32:49 PM UTC-4, cw wrote:
When executing the following in a scripted pipeline:

sshGet remote: soc_remote, from: "/srv/jboss/server/${MAL}/log/${sourcefile}", into: FileName, override: true

The file is downloaded successfully from the remote server into the local directory on the Jenkins server.  However, the console output shows the contents of that file in its entirety, and the logs files in the build folder also contains the contents of the file.  The file is embedded within the rest of the log entries, and is not usable.  Therefore when I am downloading large files with sshGet, I end up consuming twice the space I should be, since I have a log file roughly the size of the file, and then the file itself which was downloaded.  How can I turn this off so the log file only indicates success or failure, and is not also including the contents of the file?

Craig

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: sshget is showing the entire contents of the file in console output log

slide
This sounds like a bug in the plugin, I would file an issue in Jira.

On Thu, May 7, 2020 at 6:02 AM cw <[hidden email]> wrote:
Does anyone have any ideas on this?  I am using Jenkins ver. 2.190.3 on Windows 2012 with ssh versions below. This is not only a space issue, but a security issue, since sometimes I am downloading files with sensitive information in them and don't want those details available in the jenkins logs.

ssh2.6.1true
ssh-agent1.17true
ssh-credentials1.18true
ssh-steps2.0.0true

On Tuesday, May 5, 2020 at 4:32:49 PM UTC-4, cw wrote:
When executing the following in a scripted pipeline:

sshGet remote: soc_remote, from: "/srv/jboss/server/${MAL}/log/${sourcefile}", into: FileName, override: true

The file is downloaded successfully from the remote server into the local directory on the Jenkins server.  However, the console output shows the contents of that file in its entirety, and the logs files in the build folder also contains the contents of the file.  The file is embedded within the rest of the log entries, and is not usable.  Therefore when I am downloading large files with sshGet, I end up consuming twice the space I should be, since I have a log file roughly the size of the file, and then the file itself which was downloaded.  How can I turn this off so the log file only indicates success or failure, and is not also including the contents of the file?

Craig

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdcRG00DdjP4gGEfGQu2V73GGCFczxv9bO1j%2BiDYnj0xA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: sshget is showing the entire contents of the file in console output log

vince bailey
Hi All,

Setup accounts in jenkins for the credential and encript the files wit a password and save the password in a password vault.

-- 
Regards,

Vince Bailey

Live long and prosper !!!







On 7 May 2020, at 17:15, Slide <[hidden email]> wrote:

This sounds like a bug in the plugin, I would file an issue in Jira.

On Thu, May 7, 2020 at 6:02 AM cw <[hidden email]> wrote:
Does anyone have any ideas on this?  I am using Jenkins ver. 2.190.3 on Windows 2012 with ssh versions below. This is not only a space issue, but a security issue, since sometimes I am downloading files with sensitive information in them and don't want those details available in the jenkins logs.

ssh2.6.1true
ssh-agent1.17true
ssh-credentials1.18true
ssh-steps2.0.0true

On Tuesday, May 5, 2020 at 4:32:49 PM UTC-4, cw wrote:
When executing the following in a scripted pipeline:

sshGet remote: soc_remote, from: "/srv/jboss/server/${MAL}/log/${sourcefile}", into: FileName, override: true

The file is downloaded successfully from the remote server into the local directory on the Jenkins server.  However, the console output shows the contents of that file in its entirety, and the logs files in the build folder also contains the contents of the file.  The file is embedded within the rest of the log entries, and is not usable.  Therefore when I am downloading large files with sshGet, I end up consuming twice the space I should be, since I have a log file roughly the size of the file, and then the file itself which was downloaded.  How can I turn this off so the log file only indicates success or failure, and is not also including the contents of the file?

Craig

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com.


--

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdcRG00DdjP4gGEfGQu2V73GGCFczxv9bO1j%2BiDYnj0xA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9BA2766C-7376-4176-8D45-CB5B4A838B30%40dns-direct.com.
cw
Reply | Threaded
Open this post in threaded view
|

Re: sshget is showing the entire contents of the file in console output log

cw
In reply to this post by slide
Thanks, I opened Jira ticket JENKINS-62208.

Craig

On Thursday, May 7, 2020 at 12:15:40 PM UTC-4, slide wrote:
This sounds like a bug in the plugin, I would file an issue in Jira.

On Thu, May 7, 2020 at 6:02 AM cw <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_gJpaaBNBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">craigwe...@...> wrote:
Does anyone have any ideas on this?  I am using Jenkins ver. 2.190.3 on Windows 2012 with ssh versions below. This is not only a space issue, but a security issue, since sometimes I am downloading files with sensitive information in them and don't want those details available in the jenkins logs.

ssh2.6.1true
ssh-agent1.17true
ssh-credentials1.18true
ssh-steps2.0.0true

On Tuesday, May 5, 2020 at 4:32:49 PM UTC-4, cw wrote:
When executing the following in a scripted pipeline:

sshGet remote: soc_remote, from: "/srv/jboss/server/${MAL}/log/${sourcefile}", into: FileName, override: true

The file is downloaded successfully from the remote server into the local directory on the Jenkins server.  However, the console output shows the contents of that file in its entirety, and the logs files in the build folder also contains the contents of the file.  The file is embedded within the rest of the log entries, and is not usable.  Therefore when I am downloading large files with sshGet, I end up consuming twice the space I should be, since I have a log file roughly the size of the file, and then the file itself which was downloaded.  How can I turn this off so the log file only indicates success or failure, and is not also including the contents of the file?

Craig

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="_gJpaaBNBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com.


--
Website: <a href="http://earl-of-code.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;">http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/801fbb8f-cddc-4680-8acd-61bee25ecb67%40googlegroups.com.
cw
Reply | Threaded
Open this post in threaded view
|

Re: sshget is showing the entire contents of the file in console output log

cw
From the jira ticket:

I found a bug in the code, going to fix it soon to not to print the file in scp mode.

I was using this code:

soc_remote.fileTransfer = 'scp'

and for now i just removed that line, which apparently sets it back to the default of sftp, which does not have the bug. I am working again, in case anyone else runs across this.

Craig

On Thursday, May 7, 2020 at 2:25:00 PM UTC-4, cw wrote:
Thanks, I opened Jira ticket JENKINS-62208.

Craig

On Thursday, May 7, 2020 at 12:15:40 PM UTC-4, slide wrote:
This sounds like a bug in the plugin, I would file an issue in Jira.

On Thu, May 7, 2020 at 6:02 AM cw <[hidden email]> wrote:
Does anyone have any ideas on this?  I am using Jenkins ver. 2.190.3 on Windows 2012 with ssh versions below. This is not only a space issue, but a security issue, since sometimes I am downloading files with sensitive information in them and don't want those details available in the jenkins logs.

ssh2.6.1true
ssh-agent1.17true
ssh-credentials1.18true
ssh-steps2.0.0true

On Tuesday, May 5, 2020 at 4:32:49 PM UTC-4, cw wrote:
When executing the following in a scripted pipeline:

sshGet remote: soc_remote, from: "/srv/jboss/server/${MAL}/log/${sourcefile}", into: FileName, override: true

The file is downloaded successfully from the remote server into the local directory on the Jenkins server.  However, the console output shows the contents of that file in its entirety, and the logs files in the build folder also contains the contents of the file.  The file is embedded within the rest of the log entries, and is not usable.  Therefore when I am downloading large files with sshGet, I end up consuming twice the space I should be, since I have a log file roughly the size of the file, and then the file itself which was downloaded.  How can I turn this off so the log file only indicates success or failure, and is not also including the contents of the file?

Craig

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/54a9a55c-dd0b-4dda-9f46-2eb032281c5c%40googlegroups.com.


--
Website: <a href="http://earl-of-code.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fearl-of-code.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6n4PgqhQTRQjanfDfEls_aRabFg&#39;;return true;">http://earl-of-code.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/85b3ae3d-20f4-48b2-9a24-38e03114c548%40googlegroups.com.