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

Is there a way to retrieve the path/filename of the generated rpm? #870

Closed
MojoJojo opened this issue Aug 21, 2016 · 2 comments
Closed

Is there a way to retrieve the path/filename of the generated rpm? #870

MojoJojo opened this issue Aug 21, 2016 · 2 comments

Comments

@MojoJojo
Copy link

Hi,

I would like to use the native packager plugin with another plugin that uploads the generated rpm file to AWS S3. Is there a way to access the name/path of the generated rpm in the build?

Thank you for your help and assistance.

@muuki88
Copy link
Contributor

muuki88 commented Aug 21, 2016

Hi,

Sure :) SBT task and settings can be used in any other task/setting you have.
As an example

s3Upload := {
   // now s3Upload depends on the the rpm:packageBin task and you have the resulting file
   val rpm = (packageBin in Rpm).value 
   // use it
}

You can inspect settings in order to get their return value with inspect rpm:packageBin.

@muuki88 muuki88 closed this as completed Aug 21, 2016
@MojoJojo
Copy link
Author

MojoJojo commented Aug 21, 2016

Yip. Figured it out..thank you for the awesome support! 👍

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