Skip to content

Conversation

@ramsessanchez
Copy link
Contributor

@ramsessanchez ramsessanchez commented Jun 25, 2020

I added the script 'getLatestVersion' to retrieve version in the Gradle.Properties file. The script was also included in the artifact so that it may later be accessed in the Java-Core release pipeline. This script is used to auto-tag the GH releases in the Java-Core release pipeline.
Also updated the validateMavenVersion script to take into account the case where we may not have published anything to either the Jcenter or Maven repos. This is more so a provision for any future scenarios which may occur.


#If the api calls return empty then this library cannot be compared to the online versions
#may proceed with the pull request
if(($mavenVersion -eq $null) -and ($bintrayVersion -eq $null))
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: should we use -or instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure here either. Initially I was thinking -or also, however I was think this would only lead to another error if there's a version conflict with either the Maven or Jcenter version and we allow it to proceed. With -and we only allow it to proceed if it has not been published to either repository.

@ramsessanchez ramsessanchez merged commit 5d03a69 into dev Jun 25, 2020
@ramsessanchez ramsessanchez deleted the rsh/getVersionScript branch June 25, 2020 22:25
@baywet baywet added this to the 1.1.0 milestone Aug 24, 2020
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.

3 participants