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

Make Upload and Download Steps into Custom Steps #104

Open
jphartley opened this issue Nov 22, 2019 · 2 comments
Open

Make Upload and Download Steps into Custom Steps #104

jphartley opened this issue Nov 22, 2019 · 2 comments

Comments

@jphartley
Copy link

The Google Cloud Storage Plugin offers a build step to upload and download files to and from Google Storage during a build. The current integration of the plugin with Pipeline syntax is sub-optimal since it uses a generic step instead of a custom named step

step([
  $class: 'ClassicUploadStep', 
  credentialsId: env.CREDENTIALS_ID,  
  bucket: "gs://${env.BUCKET}",
  pattern: env.PATTERN
]) 

This should be relatively straightforward to fix simply by annotating the descriptor of the step with @Symbol('nameOfStep'). This will modify it so that a generic step isn't required and it will then also have the benefit that it will immediately start working for declarative pipelines.

@batmat
Copy link
Member

batmat commented Nov 24, 2019

cc @craigdbarber for visibility, thanks!

@craigdbarber
Copy link
Contributor

Thanks for the feedback. We already are using this annotation:


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

3 participants