aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-12-01 13:46:36 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-12-01 13:46:36 +0100
commit29d4aa57e2301cd0822465bad3b458cbecbe61c5 (patch)
treeeec0e1b28acd45ce0f6aa0d34c907819dc3e05c6 /server/sonar-web/pom.xml
parentc9632d8ffeb9c9a8354ac8503142b69d57a60476 (diff)
downloadsonarqube-29d4aa57e2301cd0822465bad3b458cbecbe61c5.tar.gz
sonarqube-29d4aa57e2301cd0822465bad3b458cbecbe61c5.zip
Use an available port for JS tests
Diffstat (limited to 'server/sonar-web/pom.xml')
-rw-r--r--server/sonar-web/pom.xml20
1 files changed, 19 insertions, 1 deletions
diff --git a/server/sonar-web/pom.xml b/server/sonar-web/pom.xml
index 27efe591792..a7d263fd129 100644
--- a/server/sonar-web/pom.xml
+++ b/server/sonar-web/pom.xml
@@ -108,6 +108,24 @@
</executions>
</plugin>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>reserve-network-port</id>
+ <goals>
+ <goal>reserve-network-port</goal>
+ </goals>
+ <phase>process-resources</phase>
+ <configuration>
+ <portNames>
+ <portName>jsTestPort</portName>
+ </portNames>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
@@ -139,7 +157,7 @@
<goal>grunt</goal>
</goals>
<configuration>
- <arguments>${gruntTask}</arguments>
+ <arguments>${gruntTask} --port=${jsTestPort}</arguments>
</configuration>
</execution>
</executions>