ajoberstar / reckon

Infer a project's version from your Git repository.
Apache License 2.0
185 stars 28 forks source link

Add possibility to pass to reckon custom origin via system or project props #132

Closed daggerok closed 4 years ago

daggerok commented 4 years ago

Hi,

Thank you for awesome plugin!

Is it possible to configure somehow different origin where reckon tag will be created and published? Currently I do workaround in my automation CI like so:

./gradlew reckonTagCreate -Preckon.stage=final
git push ssh://git@my-gitlab.com:10022/my-group/my-repo.git --tags
./gradlew -S -Pdeploy -Prelease artifactoryPublish --build-cache

I cannot use reckon tag push task in my gitlab ci, its failing with gitlab-ci auth error related to wrong not permitted auth token... But, I do have configured permitted ssh access to repo for gitlab-runner user, So I would love to customize missing git stuff on a fly, for example:

./gradlew reckonTagPush artifactoryPublish -Preckon.stage=final \
    -Preckon.origin=ssh://git@my-gitlab.com:10022/my-group/my-repo.git

Please, let me know if we can implement this. Thanks!


Regards, Max

ajoberstar commented 4 years ago

I think this is a duplicate of #89 effectively. Please reopen if you disagree.

daggerok commented 4 years ago

Hello,

Yes, looks like it's duplicate.

Have you done some investigations on that? Maybe I could contribute

As far as I see, you are using your groovy git implementation (grgit-core), so maybe you can quickly guide me what needs to be done?


Regards