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

Unable to download S3 artifact from link

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: s3-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      S3 publisher plugin version - 0.10.11
      Jenkins ver. 2.28

      When trying to download an uploaded artifact from the link in the job details I get the following error:

      <Error>
      <script data-x-lastpass="">
      (function(){var c=0;if("undefined"!==typeof CustomEvent&&"function"===typeof window.dispatchEvent){var a=function(a){try{if("object"===typeof a&&(a=JSON.stringify(a)),"string"===typeof a)return window.dispatchEvent(new CustomEvent("lprequeststart",{detail:{data:a,requestID:++c}})),c}catch(f){}},b=function(a){try{window.dispatchEvent(new CustomEvent("lprequestend",{detail:a}))}catch(f){}};"undefined"!==typeof XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.send&&(XMLHttpRequest.prototype.send= function(c){return function(f){var d=this,e=a(f);e&&d.addEventListener("loadend",function(){b({requestID:e,statusCode:d.status})});return c.apply(d,arguments)}}(XMLHttpRequest.prototype.send));"function"===typeof fetch&&(fetch=function(c){return function(f,d){var e=a(d),g=c.apply(this,arguments);if(e){var h=function(a){b({requestID:e,statusCode:a&&a.status})};g.then(h)["catch"](h)}return g}}(fetch))}})(); (function(){if("undefined"!==typeof CustomEvent){var c=function(a){if(a.lpsubmit)return a;var b=function(){try{this.dispatchEvent(new CustomEvent("lpsubmit"))}catch(k){}return a.apply(this,arguments)};b.lpsubmit=!0;return b};window.addEventListener("DOMContentLoaded",function(){if(document&&document.forms&&0<document.forms.length)for(var a=0;a<document.forms.length;++a)document.forms[a].submit=c(document.forms[a].submit)},!0);document.createElement=function(a){return function(){var b=a.apply(this, arguments);b&&"FORM"===b.nodeName&&b.submit&&(b.submit=c(b.submit));return b}}(document.createElement)}})();
      </script>
      <Code>AuthorizationQueryParametersError</Code>
      <Message>
      Error parsing the X-Amz-Credential parameter; the region 'us-east-1' is wrong; expecting 'ap-southeast-2'
      </Message>
      <Region>ap-southeast-2</Region>
      <RequestId>F79E8M99EFE61C37</RequestId>
      <HostId>
      Nx+NDExosgamlWNtxpHgfC5Ft8zAxTmYnPPH3SdbzPJ4Nw6JyRwYr0NHK4OMkG9avo5W/9HHKvE=
      </HostId>
      </Error>
      

      The step configuration in the Jenkinsfile is:

      step([$class: 'S3BucketPublisher', 
              dontWaitForConcurrentBuildCompletion: false,
              profileName: 'profile',
              consoleLogLevel: 'INFO',
              pluginFailureResultConstraint: 'FAILURE',
              entries: [[
                  bucket: 'some-bucket/jenkins/artifacts/', 
                  excludedFile: '', 
                  flatten: true, 
                  gzipFiles: false, 
                  keepForever: false,
                  managedArtifacts: true, 
                  noUploadOnFailure: true, 
                  selectedRegion: 'ap-southeast-2', 
                  sourceFile: "**/${artefactName}",
                  storageClass: 'STANDARD', 
                  uploadFromSlave: true, 
                  useServerSideEncryption: false
              ]],
            ])
      

      The artifact gets uploaded normally and trying to download it from the AWS console works as expected.

        Attachments

          Activity

          sabbatinij Jacopo Sabbatini created issue -
          sabbatinij Jacopo Sabbatini made changes -
          Field Original Value New Value
          Description S3 publisher plugin version - 0.10.11
          Jenkins ver. 2.28

          When trying to download an uploaded artifact from the link in the job details I get the following error:
          <Error>
          <script data-x-lastpass="">
          (function(){var c=0;if("undefined"!==typeof CustomEvent&&"function"===typeof window.dispatchEvent){var a=function(a){try{if("object"===typeof a&&(a=JSON.stringify(a)),"string"===typeof a)return window.dispatchEvent(new CustomEvent("lprequeststart",{detail:{data:a,requestID:++c}})),c}catch(f){}},b=function(a){try{window.dispatchEvent(new CustomEvent("lprequestend",{detail:a}))}catch(f){}};"undefined"!==typeof XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.send&&(XMLHttpRequest.prototype.send= function(c){return function(f){var d=this,e=a(f);e&&d.addEventListener("loadend",function(){b({requestID:e,statusCode:d.status})});return c.apply(d,arguments)}}(XMLHttpRequest.prototype.send));"function"===typeof fetch&&(fetch=function(c){return function(f,d){var e=a(d),g=c.apply(this,arguments);if(e){var h=function(a){b({requestID:e,statusCode:a&&a.status})};g.then(h)["catch"](h)}return g}}(fetch))}})(); (function(){if("undefined"!==typeof CustomEvent){var c=function(a){if(a.lpsubmit)return a;var b=function(){try{this.dispatchEvent(new CustomEvent("lpsubmit"))}catch(k){}return a.apply(this,arguments)};b.lpsubmit=!0;return b};window.addEventListener("DOMContentLoaded",function(){if(document&&document.forms&&0<document.forms.length)for(var a=0;a<document.forms.length;++a)document.forms[a].submit=c(document.forms[a].submit)},!0);document.createElement=function(a){return function(){var b=a.apply(this, arguments);b&&"FORM"===b.nodeName&&b.submit&&(b.submit=c(b.submit));return b}}(document.createElement)}})();
          </script>
          <Code>AuthorizationQueryParametersError</Code>
          <Message>
          Error parsing the X-Amz-Credential parameter; the region 'us-east-1' is wrong; expecting 'ap-southeast-2'
          </Message>
          <Region>ap-southeast-2</Region>
          <RequestId>F79E8M99EFE61C37</RequestId>
          <HostId>
          Nx+NDExosgamlWNtxpHgfC5Ft8zAxTmYnPPH3SdbzPJ4Nw6JyRwYr0NHK4OMkG9avo5W/9HHKvE=
          </HostId>
          </Error>

          The step configuration in the Jenkinsfile is:
          step([$class: 'S3BucketPublisher',
                  dontWaitForConcurrentBuildCompletion: false,
                  profileName: 'profile',
                  consoleLogLevel: 'INFO',
                  pluginFailureResultConstraint: 'FAILURE',
                  entries: [[
                      bucket: 'some-bucket/jenkins/artifacts/',
                      excludedFile: '',
                      flatten: true,
                      gzipFiles: false,
                      keepForever: false,
                      managedArtifacts: true,
                      noUploadOnFailure: true,
                      selectedRegion: 'ap-southeast-2',
                      sourceFile: "**/${artefactName}",
                      storageClass: 'STANDARD',
                      uploadFromSlave: true,
                      useServerSideEncryption: false
                  ]],
                ])

          The artifact gets uploaded normally and trying to download it from the AWS console works as expected.
          S3 publisher plugin version - 0.10.11
          Jenkins ver. 2.28

          When trying to download an uploaded artifact from the link in the job details I get the following error:
          {code:xml}
          <Error>
          <script data-x-lastpass="">
          (function(){var c=0;if("undefined"!==typeof CustomEvent&&"function"===typeof window.dispatchEvent){var a=function(a){try{if("object"===typeof a&&(a=JSON.stringify(a)),"string"===typeof a)return window.dispatchEvent(new CustomEvent("lprequeststart",{detail:{data:a,requestID:++c}})),c}catch(f){}},b=function(a){try{window.dispatchEvent(new CustomEvent("lprequestend",{detail:a}))}catch(f){}};"undefined"!==typeof XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.send&&(XMLHttpRequest.prototype.send= function(c){return function(f){var d=this,e=a(f);e&&d.addEventListener("loadend",function(){b({requestID:e,statusCode:d.status})});return c.apply(d,arguments)}}(XMLHttpRequest.prototype.send));"function"===typeof fetch&&(fetch=function(c){return function(f,d){var e=a(d),g=c.apply(this,arguments);if(e){var h=function(a){b({requestID:e,statusCode:a&&a.status})};g.then(h)["catch"](h)}return g}}(fetch))}})(); (function(){if("undefined"!==typeof CustomEvent){var c=function(a){if(a.lpsubmit)return a;var b=function(){try{this.dispatchEvent(new CustomEvent("lpsubmit"))}catch(k){}return a.apply(this,arguments)};b.lpsubmit=!0;return b};window.addEventListener("DOMContentLoaded",function(){if(document&&document.forms&&0<document.forms.length)for(var a=0;a<document.forms.length;++a)document.forms[a].submit=c(document.forms[a].submit)},!0);document.createElement=function(a){return function(){var b=a.apply(this, arguments);b&&"FORM"===b.nodeName&&b.submit&&(b.submit=c(b.submit));return b}}(document.createElement)}})();
          </script>
          <Code>AuthorizationQueryParametersError</Code>
          <Message>
          Error parsing the X-Amz-Credential parameter; the region 'us-east-1' is wrong; expecting 'ap-southeast-2'
          </Message>
          <Region>ap-southeast-2</Region>
          <RequestId>F79E8M99EFE61C37</RequestId>
          <HostId>
          Nx+NDExosgamlWNtxpHgfC5Ft8zAxTmYnPPH3SdbzPJ4Nw6JyRwYr0NHK4OMkG9avo5W/9HHKvE=
          </HostId>
          </Error>
          {code}

          The step configuration in the Jenkinsfile is:
          {code:java}
          step([$class: 'S3BucketPublisher',
                  dontWaitForConcurrentBuildCompletion: false,
                  profileName: 'profile',
                  consoleLogLevel: 'INFO',
                  pluginFailureResultConstraint: 'FAILURE',
                  entries: [[
                      bucket: 'some-bucket/jenkins/artifacts/',
                      excludedFile: '',
                      flatten: true,
                      gzipFiles: false,
                      keepForever: false,
                      managedArtifacts: true,
                      noUploadOnFailure: true,
                      selectedRegion: 'ap-southeast-2',
                      sourceFile: "**/${artefactName}",
                      storageClass: 'STANDARD',
                      uploadFromSlave: true,
                      useServerSideEncryption: false
                  ]],
                ])
          {code}

          The artifact gets uploaded normally and trying to download it from the AWS console works as expected.
          sabbatinij Jacopo Sabbatini made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]

            People

            Assignee:
            jimilian Alexander A
            Reporter:
            sabbatinij Jacopo Sabbatini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: