Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 2767b4a

Browse files
committed
[maven-release-plugin] prepare release 1.2.0
1 parent 0fce732 commit 2767b4a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ After every run, in addition of the diff view, you may access to an overview of
1919
- Git client to checkout the code
2020
- Maven 3.0.5+
2121
- JDK 1.7 or 1.8
22-
- SonarQube 4.5.4 (LTS)
22+
- SonarQube 4.5.4 (LTS) or later
2323
- Stash (BitBucket) REST API 1.0 (3.x, 4.x)
2424

2525
Note: these are the versions where the plugin has been tested. Other versions may or may not work, YMMV.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.sonar</groupId>
55
<artifactId>sonar-stash-plugin</artifactId>
6-
<version>1.2.0-SNAPSHOT</version>
6+
<version>1.2.0</version>
77
<packaging>sonar-plugin</packaging>
88
<description>Integration between Atlassian Stash (BitBucket) and SonarQube</description>
99
<name>Stash</name>

src/test/java/org/sonar/plugins/stash/CompleteITCase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ public void basicTest() throws Exception {
8585
wireMock.verify(WireMock.getRequestedFor(WireMock.urlPathMatching(".*diff$")));
8686
wireMock.verify(WireMock.postRequestedFor(WireMock.urlPathMatching(".*comments$")));
8787

88-
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("Stash/[0-9]+")));
89-
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("SonarQube/[0-9]+")));
88+
// Making sure we find the proper agent info in a string like: User-Agent: SonarQube/4.5.7 Stash/1.2.0 AHC/1.0
89+
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("^(.*)Stash/[0-9.]+(.*)$")));
90+
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("^(.*)SonarQube/[0-9.]+(.*)$")));
9091
}
9192

9293
private String repoPath(String project, String repo, String... parts) {

0 commit comments

Comments
 (0)