Skip to content
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

Null pointer exception for Gcloudstepdownload #228

Open
selvakumar7991 opened this issue Nov 17, 2022 · 3 comments
Open

Null pointer exception for Gcloudstepdownload #228

selvakumar7991 opened this issue Nov 17, 2022 · 3 comments
Labels

Comments

@selvakumar7991
Copy link

Jenkins and plugins versions report

Environment
Paste the output here

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

Linux

Reproduction steps

java.lang.NullPointerException
13:24:37 at com.google.jenkins.plugins.storage.UploadModule.getStorageService(UploadModule.java:88)
13:24:37 at com.google.jenkins.plugins.storage.DownloadStep.resolveBucketPath(DownloadStep.java:391)
13:24:37 at com.google.jenkins.plugins.storage.DownloadStep.perform(DownloadStep.java:209)
13:24:37 at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
13:24:37 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:100)
13:24:37 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:70)
13:24:37 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
13:24:37 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
13:24:37 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
13:24:37 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
13:24:37 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
13:24:37 at java.lang.Thread.run(Thread.java:748)

Expected Results

no issue, download the object from the bucket

Actual Results

no issue, download the object from the bucket

Anything else?

stage('GCS access') {
steps {
script {
step([$class: 'DownloadStep', credentialsId: 'qa-automation-jobs-dev', bucketUri: 'gs://searchservice/payloads/*.csv',
localDirectory: 'home'])

            } // end of script
        } // end of steps

}

@selvakumar7991
Copy link
Author

Jenkins version : 2.289.1
Google Cloud Storage : 1.5.4.1

@selvakumar7991
Copy link
Author

CC:@
Craig Barber
craigdbarber

@jlightwing-flooid
Copy link

Just had this issue, and in my case it was the credential id that was wrong. I corrected that and it worked. Obviously the null pointer isn't great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants