diff --git a/build.gradle b/build.gradle index 0829fc9e5..4f3b9c0f8 100644 --- a/build.gradle +++ b/build.gradle @@ -593,7 +593,8 @@ dependencyManagement { project.ext { pacticipant = 'accessMgmt_orgRoleMapping' - pacticipantVersion = getCheckedOutGitCommitHash() + // DTSAM-379 canIDeploy Index 0 out of bounds for length 0 Issue + pacticipantVersion = System.env.GIT_COMMIT.substring(0,9) } task contract(type: Test) { @@ -633,10 +634,6 @@ task runProviderPactVerification(type: Test) { runProviderPactVerification.finalizedBy pactVerify -static def getCheckedOutGitCommitHash() { - 'git rev-parse --verify --short HEAD'.execute().text.trim() -} - pact { broker { pactBrokerUrl = System.getenv("PACT_BROKER_FULL_URL") ?: 'http://localhost:9292'