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 OS/architecture classifier to distributions #37881

Merged
merged 9 commits into from
Jan 29, 2019

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Jan 25, 2019

This commit adds classifiers to the distributions indicating the
OS (for archives) and platform. The current OSes are for windows, darwin (ie
macos) and linux. This change will allow future OS/architecture specific
changes to the distributions. Note the docs using distribution links
have been updated, but will be reworked in a followup to make OS
specific instructions for the archives.

This commit adds classifiers to the distributions indicating the
OS (for archives) and platform. The current OSes are for windows, darwin (ie
macos) and linux. This change will allow future OS/architecture specific
changes to the distributions. Note the docs using distribution links
have been updated, but will be reworked in a followup to make OS
specific instructions for the archives.
@rjernst rjernst added >enhancement :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v7.0.0 labels Jan 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst
Copy link
Member Author

rjernst commented Jan 25, 2019

@elasticmachine test this please

@rjernst
Copy link
Member Author

rjernst commented Jan 26, 2019

@elasticmachine run elasticsearch-ci/1

@rjernst rjernst requested a review from jasontedor January 26, 2019 09:51
Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

Looks good. Just one request on not abbreviating some variable names; no need for another round.

@@ -216,9 +233,15 @@ bwcVersions.forPreviousUnreleased { VersionCollection.UnreleasedVersionInfo unre
String artifactFileName = artifactFile.name
String artifactName = artifactFileName.contains('oss') ? 'elasticsearch-oss' : 'elasticsearch'
String suffix = artifactFile.toString()[-3..-1]
int archNdx = artifactFileName.indexOf('x86_64')
Copy link
Member

Choose a reason for hiding this comment

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

Maybe Index instead of Ndx please?

String classifier = ""
String extension = projectName
if (bwcVersion.onOrAfter('7.0.0') && (projectName.contains('zip') || projectName.contains('tar'))) {
int ndx = projectName.indexOf('-')
Copy link
Member

Choose a reason for hiding this comment

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

index please. 🙏

int archNdx = artifactFileName.indexOf('x86_64')
String classifier = ''
if (archNdx != -1) {
int osNdx = artifactFileName.lastIndexOf('-', archNdx - 2)
Copy link
Member

Choose a reason for hiding this comment

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

Index instead of Ndx.

@rjernst
Copy link
Member Author

rjernst commented Jan 28, 2019

@elasticmachine run elasticsearch-ci/1
@elasticmachine run elasticsearch-ci/default-distro

@rjernst
Copy link
Member Author

rjernst commented Jan 29, 2019

@elasticmachine run elasticsearch-ci/1
@elasticmachine run elasticsearch-ci/default-distro

2 similar comments
@rjernst
Copy link
Member Author

rjernst commented Jan 29, 2019

@elasticmachine run elasticsearch-ci/1
@elasticmachine run elasticsearch-ci/default-distro

@rjernst
Copy link
Member Author

rjernst commented Jan 29, 2019

@elasticmachine run elasticsearch-ci/1
@elasticmachine run elasticsearch-ci/default-distro

@rjernst
Copy link
Member Author

rjernst commented Jan 29, 2019

@elasticmachine run elasticsearch-ci/1

1 similar comment
@rjernst
Copy link
Member Author

rjernst commented Jan 29, 2019

@elasticmachine run elasticsearch-ci/1

@rjernst rjernst merged commit 8e5f9c4 into elastic:master Jan 29, 2019
@rjernst rjernst deleted the bundle_jdk3 branch January 29, 2019 19:18
tvernum added a commit to tvernum/elasticsearch that referenced this pull request Jan 30, 2019
tvernum added a commit that referenced this pull request Jan 30, 2019
The distribution now includes a platform specific classifier that the
docker build wasn't taking into account.

Relates: #37881
danielmitterdorfer added a commit to elastic/rally-teams that referenced this pull request Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants