pact-test Sync Repo

This commit is contained in:
Mali Bayhan 2021-12-09 16:20:02 -08:00
parent fff755dec7
commit cf4db6c3a2
2 changed files with 17 additions and 3 deletions

3
Jenkinsfile vendored
View File

@ -51,7 +51,10 @@ pipeline {
sh 'mvn sonar:sonar'
echo '############### MAVEN END #################'
}
sh 'mvn pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}'
}
// maven:end
}
}

17
pom.xml
View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.sonarqube</groupId>
@ -80,8 +79,20 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>au.com.dius</groupId>
<artifactId>pact-jvm-provider-maven_2.12</artifactId>
<version>3.5.24</version>
<configuration>
<pactBrokerUrl>http://cicd.bayhan.ca:9292</pactBrokerUrl>
<projectVersion>${pact.consumer.version}</projectVersion>
<tags>
<tag>${pact.tag}</tag>
</tags>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
</project>