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
Support fetching latest SNAPSHOT artifacts #284
Conversation
@@ -72,24 +72,43 @@ | |||
} | |||
|
|||
if $url { | |||
$file_url = $url | |||
$sha1_url = regsubst($url, '/artifactory/', '/artifactory/api/storage/') | |||
$maven2_data = archive::parse_artifactory_url($url) |
There was a problem hiding this comment.
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'{ |
There was a problem hiding this comment.
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.
looks good to me. I would like to merge & release this after a rebase |
fe73c56
to
2358b23
Compare
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. |
RFC/WIP: DO NOT MERGE
This works for me and fixes
#282
Feedback and some volunteers to test welcome.