hi, I’m not sure if this is a pact jvm thing but w...
# pact-jvm
r
hi, I’m not sure if this is a pact jvm thing but we’re just starting out, after doing a verification and publishing the results, I can see the provider version in the broker but the provider branch is NA. In Gradle (Kotlin)
Copy code
systemProperty("pact.provider.version", gitHash)
    systemProperty("pact.provider.branch", gitBranch)
    systemProperty("pact.verifier.publishResults", System.getProperty("pact.verifier.publishResults"))
u
Just a silly question to get going. What is the value of
gitBranch
? I'm assuming not
N/A
?
r
yeah sorry those are fed from git commands:
Copy code
gitHash -> git rev-parse --verify --short HEAD
gitBranch -> git rev-parse --abbrev-ref HEAD
however, I still don’t see anything populated even if I just set that as a string e.g. ‘test-branch’
my deps:
Copy code
testImplementation("au.com.dius.pact.provider:junit5spring:4.5.3")
looks like I can set the branch if I leave out the version, version on the broker then shows as 0.0.0. Maybe I’m misunderstanding something. Is it suppose to be one or the other or a combination of version + branch?
ok, looks like something with how I’m executing the git cmds with gradle 🤦
turns out I wasn’t trimming the commit/branch values 🤦
u
Ah! The old chomp bug. Caught me out many times.