Skip to content

Commit

Permalink
DTSAM-379 canIDeploy Index 0 out of bounds for length 0 Issue - comma…
Browse files Browse the repository at this point in the history
…nd line git to get commit hash replaced with system env var substring (#1982)
  • Loading branch information
mikebrownccd authored Jul 4, 2024
1 parent fb785e2 commit ced8fc4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit ced8fc4

Please sign in to comment.