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

Can I Deploy gradle task cannot check against the latest version of the main branch #1741

Closed
ealesjordan opened this issue Dec 7, 2023 · 0 comments · Fixed by #1742
Closed

Comments

@ealesjordan
Copy link
Contributor

Using the Pact Flow UI there is the ability to run the can i deploy check for a service against the latest version of the main branch:

image

However, there is no option to do this using the Gradle Plugin. When running the can I deploy task for a pacticipant like the following:

./gradlew  canideploy -Ppacticipant='******' -PpacticipantVersion='******'

I would expect that the above matrix would be returned and a successful check to occur. However, the check currently runs against the latest commit on any branch of the services that have a contract with this pacticipant.

It would be good to have a property that could be set when running the canideploy gradle task in a similar fashion to the environment or tag arguments. An example would be:

./gradlew  canideploy -Ppacticipant='******' -PpacticipantVersion='******' -PtoMainBranch=true

I have some code changes locally that I have tested that I will raise as a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant