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

Support fetching latest SNAPSHOT artifacts #284

Merged
merged 1 commit into from Jan 4, 2018

Conversation

alexjfisher
Copy link
Member

RFC/WIP: DO NOT MERGE

This works for me and fixes
#282

Feedback and some volunteers to test welcome.

@alexjfisher alexjfisher added the needs-feedback Further information is requested label May 25, 2017
@@ -72,24 +72,43 @@
}

if $url {
$file_url = $url
$sha1_url = regsubst($url, '/artifactory/', '/artifactory/api/storage/')
$maven2_data = archive::parse_artifactory_url($url)
Copy link
Member Author

Choose a reason for hiding this comment

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

if parse_artifactory_url fails to parse the url, it returns nil

$file_url = $url
$sha1_url = regsubst($url, '/artifactory/', '/artifactory/api/storage/')
$maven2_data = archive::parse_artifactory_url($url)
if $maven2_data and $maven2_data['folder_iteg_rev'] == 'SNAPSHOT'{
Copy link
Member Author

Choose a reason for hiding this comment

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

so if maven2_data is nil, the new code won't be run.

@bastelfreak
Copy link
Member

looks good to me. I would like to merge & release this after a rebase

@alexjfisher
Copy link
Member Author

I'd be fine letting it sit in master for a couple of weeks. There's nothing else waiting for a release I don't think.

@alexjfisher alexjfisher added enhancement New feature or request and removed needs-feedback Further information is requested labels Jan 4, 2018
@alexjfisher alexjfisher changed the title RFC: Support fetching latest SNAPSHOT artifacts Support fetching latest SNAPSHOT artifacts Jan 4, 2018
@bastelfreak bastelfreak merged commit e7060eb into voxpupuli:master Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants