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

Failed classic upload step #111

Open
lhopki01 opened this issue Jun 2, 2020 · 1 comment
Open

Failed classic upload step #111

lhopki01 opened this issue Jun 2, 2020 · 1 comment

Comments

@lhopki01
Copy link

lhopki01 commented Jun 2, 2020

The build upload step always fails with this stacktrace.

java.io.IOException: Could not perform upload
[com.google.jenkins.plugins.storage.ClassicUploadStep.perform(ClassicUploadStep.java:185),
 org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80),
 org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67),
org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47),
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511),
 java.util.concurrent.FutureTask.run(FutureTask.java:266),
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149),
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624),
 java.lang.Thread.run(Thread.java:748)]

The stracktrace doesn't seem to contain any information that I can use to debug this.

I can confirm the service account is a storage admin and so has rights to the upload to this bucket.

google-storage-plugin version: 1.5.1
google-oauth-plugin version: 1.0.0

Do you know what is going wrong here?

@littleday
Copy link

I have seen a similar issue recently:
ERROR: [Google Cloud Storage Plugin] No artifacts found matching pattern: my_file.txt

In Jenkinsfile file, I have:
environment {
....
BUCKET = "gs://xxxx"
PATTERN = "my_file.txt"
}
steps {
step([
$class: 'ClassicUploadStep',
credentialsId: env.CREDENTIALS_ID,
bucket: "gs://${BUCKET}",
pattern: env.PATTERN])

Pattern cannot be found no matter using a filename directly or a relative path or absolute path.
Anyone can help?

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

No branches or pull requests

2 participants