Skip to content

File Download fails - FATAL: Cannot invoke "String.startsWith(String)" because "rel" is null #143

Open
@rmkanda

Description

@rmkanda

Jenkins and plugins versions report

Jenkins: 2.479.1
OS: Linux - 6.1.112-124.190.amzn2023.x86_64
Java: 17.0.13 - Amazon.com Inc. (OpenJDK 64-Bit Server VM)
---
file-operations:321.vd98ef0161b_7e

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

stage('Download') {
      steps {
          script {
              sh "mkdir downloads"
              fileOperations([
                    fileDownloadOperation(url: 'https://...', targetLocation: 'downloads/')
                ])
          }
        }
      }

Expected Results

File should be downloaded

Actual Results

[Pipeline] sh
17:38:01 + mkdir downloads
[Pipeline] fileOperations
17:38:01 File Download Operation:
17:38:01 FATAL: Cannot invoke "String.startsWith(String)" because "rel" is null
17:38:01 FATAL: Cannot invoke "String.startsWith(String)" because "rel" is null
[Pipeline] }
[Pipeline] // script
[Pipeline] }

Anything else?

No response

Are you interested in contributing a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions