Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62222

log file spammed with a warning message

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • s3-plugin
    • None
    • Jenkins version 2.233, operating system Ubuntu 18.04. Plugins installed: s3-plugin 0.11.5, AWS Credentials Plugin, Github Pull Request Builder.

    Description

      Hi,

      Jenkins Freestyle Project.

      Running a post-build step to upload files to S3 with the s3-plugin version 0.11.5. 

      Specify S3 source, destination, profile.  Standard usage of the plugin.

      About 6000 files are uploaded.   
      In the jenkins log /var/log/jenkins/jenkins.log are about 6000 warning messages:

      2020-05-07 21:04:54.461+0000 [id=801] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/

      The text of that warning is apparently found in jenkins/core/src/main/java/hudson/util/Secret.java

      As far as I am aware, the s3-plugin is being used in the standard way.  Nothing has been customized.  Just uploading files to S3 after the build finishes.   Glad to provide more information if that's helpful.  This problem has been reproduced on two different Jenkins servers, so it seems consistent.  You may try.

      The goal would be to solve the error, or at least not spam the log file with thousands of warnings.

      Thanks.

       

       

      Attachments

        Activity

          girishkg Girish KG added a comment -

          This exist in 2.303.3 LTS as well
          +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          ainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:07.483+0000 [id=41473] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:12.065+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:15.534+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:20.141+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:23.295+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:27.835+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:30.994+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:34.966+0000 [id=41832] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:38.425+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:42.987+0000 [id=41521] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:46.463+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:51.022+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:54.504+0000 [id=41473] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:19:59.074+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:02.561+0000 [id=42537] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:07.184+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:10.693+0000 [id=42537] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:15.060+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:18.555+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:23.211+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:26.688+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:31.092+0000 [id=41521] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:34.584+0000 [id=42537] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:39.197+0000 [id=42244] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:42.664+0000 [id=41832] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:47.265+0000 [id=42244] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          2021-12-01 04:20:50.719+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

          girishkg Girish KG added a comment - This exist in 2.303.3 LTS as well +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:07.483+0000 [id=41473] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:12.065+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:15.534+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:20.141+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:23.295+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:27.835+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:30.994+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:34.966+0000 [id=41832] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:38.425+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:42.987+0000 [id=41521] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:46.463+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:51.022+0000 [id=37482] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:54.504+0000 [id=41473] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:19:59.074+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:02.561+0000 [id=42537] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:07.184+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:10.693+0000 [id=42537] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:15.060+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:18.555+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:23.211+0000 [id=42405] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:26.688+0000 [id=41212] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:31.092+0000 [id=41521] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:34.584+0000 [id=42537] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:39.197+0000 [id=42244] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:42.664+0000 [id=41832] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:47.265+0000 [id=42244] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ 2021-12-01 04:20:50.719+0000 [id=42403] WARNING hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from org.codehaus.groovy.runtime.InvokerHelper.format(InvokerHelper.java:630). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

          People

            jimilian Alexander A
            sdarwin Sam Darwin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: