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

Add the support to specify the version of the binaries #251

Merged
merged 2 commits into from
Mar 22, 2018

Conversation

houshengbo
Copy link

This PR changes the task name from release to releaseBinaries in
order to make it consistent in the release process. It also adds
packageVersion as a parameter to specify the version of the binaries
to be released.

Partially-closes: apache/openwhisk-release#9

This PR changes the task name from release to releaseBinaries in
order to make it consistent in the release process. It also adds
packageVersion as a parameter to specify the version of the binaries
to be released.

Partially-closes: apache/openwhisk-release#9
@houshengbo
Copy link
Author

@jonpspri Please help me review this PR, thanks.

Copy link
Contributor

@jonpspri jonpspri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Net-net this will work, but my preference would be to set the version as a project extension attribute, not part of the OpenWhiskPlatforms object.

build.gradle Outdated
@@ -61,6 +61,7 @@ class OpenWhiskPlatform {
The 'zipFileName' property is the root file name to use for archives.
*/
static String zipFileName
static String packageVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this belongs a project extension rather than an attribute of OpenWhiskPlatform. Platform really is intended to deal solely with the process/os aspects of the build and is less volatile than version.

Additional thought on why this is important — I think it would be a Bad Idea (but possible and implicitly supported) to build different version numbers for different architectures if we set the packageVersion for each platform.

That means taking off the OpenWhisk. and p. below.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx. Done.

build.gradle Outdated
@@ -121,6 +122,10 @@ OpenWhiskPlatform.zipFileName =
System.env['zip_file_name'] ?:
(rootProject.findProperty('zipFileName') ?: 'OpenWhisk_CLI')

OpenWhiskPlatform.packageVersion =
System.env['packageVersion'] ?:
(rootProject.findProperty('packageVersion') ?: 'latest')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per my comment above, this can become project.ext.packageVersion =. Also, I’m not sure I’d use an environment variable because it hides the “I’m building a release now” from the command line. If we have a variable set in a Travis build, we should pass it on the command line as the build parameter (as you provide here).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I remove the configuration as a system env.

@houshengbo
Copy link
Author

@jonpspri Thank you. I have changed this PR based on the comments.

@jonpspri
Copy link
Contributor

LGTM

@dubee dubee merged commit 79d8862 into apache:master Mar 22, 2018
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

Successfully merging this pull request may close these issues.

Package the binaries of each repo in need
3 participants