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

Commit

Permalink
[maven-release-plugin] prepare release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
re-schneider committed Nov 23, 2016
1 parent 0fce732 commit 2767b4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ After every run, in addition of the diff view, you may access to an overview of
- Git client to checkout the code
- Maven 3.0.5+
- JDK 1.7 or 1.8
- SonarQube 4.5.4 (LTS)
- SonarQube 4.5.4 (LTS) or later
- Stash (BitBucket) REST API 1.0 (3.x, 4.x)

Note: these are the versions where the plugin has been tested. Other versions may or may not work, YMMV.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.sonar</groupId>
<artifactId>sonar-stash-plugin</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>sonar-plugin</packaging>
<description>Integration between Atlassian Stash (BitBucket) and SonarQube</description>
<name>Stash</name>
Expand Down
5 changes: 3 additions & 2 deletions src/test/java/org/sonar/plugins/stash/CompleteITCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ public void basicTest() throws Exception {
wireMock.verify(WireMock.getRequestedFor(WireMock.urlPathMatching(".*diff$")));
wireMock.verify(WireMock.postRequestedFor(WireMock.urlPathMatching(".*comments$")));

wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("Stash/[0-9]+")));
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("SonarQube/[0-9]+")));
// 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
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("^(.*)Stash/[0-9.]+(.*)$")));
wireMock.verify(WireMock.getRequestedFor(WireMock.anyUrl()).withHeader("User-Agent", WireMock.matching("^(.*)SonarQube/[0-9.]+(.*)$")));
}

private String repoPath(String project, String repo, String... parts) {
Expand Down

0 comments on commit 2767b4a

Please sign in to comment.