That's a drawback of the cargo based integration testing where only a constant port number is used to run a test server. There is no guaranty that this port is already in use by this reasons:
- used by other service - previous build stuck - parallel running build jobs As consequence the build can fail. So, it is a minor issue and solution would be just to run build again in hope of a free port. This is not perfect. For OData2 we didn't use cargo but implemented a test server based on Jetty api. Running the server over api enables to use a dynamic port (if busy then inc port number) and ensures the runability of a test server. -- Stephan On 06.06.14 11:11, "Challen He" <[email protected]> wrote: >Hi, > >The error is: test service failed to start: >cargo-maven2-plugin:1.4.8:start failed: Port number 9080, looks >irrelevant to my change. > >Could anyone kindly teach me how to verify the build? Do I need >permission to trigger another Jenkins build? given that it passes on my >local machine. > >Thanks,-Challen > >>-----Original Message----- >>From: Apache Jenkins Server [mailto:[email protected]] >>Sent: 2014年6月6日 16:43 >>To: [email protected]; Challen He >>Subject: Build failed in Jenkins: olingo-odata4 #333 >> >>See <https://builds.apache.org/job/olingo-odata4/333/changes> >> >>Changes: >> >>[challenh] [OLINGO-314] pojogen plugin needs generate correct name for >>EDM >>comple type >> >>------------------------------------------ >>[...truncated 8733 lines...] >>4450/4680 KB >>4452/4680 KB >>4454/4680 KB >>4456/4680 KB >>4458/4680 KB >>4460/4680 KB >>4462/4680 KB >>4464/4680 KB >>4466/4680 KB >>4468/4680 KB >>4470/4680 KB >>4472/4680 KB >>4474/4680 KB >>4476/4680 KB >>4478/4680 KB >>4480/4680 KB >>4482/4680 KB >>4484/4680 KB >>4486/4680 KB >>4488/4680 KB >>4490/4680 KB >>4492/4680 KB >>4494/4680 KB >>4496/4680 KB >>4498/4680 KB >>4500/4680 KB >>4502/4680 KB >>4504/4680 KB >>4506/4680 KB >>4508/4680 KB >>4510/4680 KB >>4512/4680 KB >>4514/4680 KB >>4516/4680 KB >>4518/4680 KB >>4520/4680 KB >>4522/4680 KB >>4524/4680 KB >>4526/4680 KB >>4528/4680 KB >>4530/4680 KB >>4532/4680 KB >>4534/4680 KB >>4536/4680 KB >>4538/4680 KB >>4540/4680 KB >>4542/4680 KB >>4544/4680 KB >>4546/4680 KB >>4548/4680 KB >>4550/4680 KB >>4552/4680 KB >>4554/4680 KB >>4556/4680 KB >>4558/4680 KB >>4560/4680 KB >>4562/4680 KB >>4564/4680 KB >>4566/4680 KB >>4568/4680 KB >>4570/4680 KB >>4572/4680 KB >>4574/4680 KB >>4576/4680 KB >>4578/4680 KB >>4580/4680 KB >>4582/4680 KB >>4584/4680 KB >>4586/4680 KB >>4588/4680 KB >>4590/4680 KB >>4592/4680 KB >>4594/4680 KB >>4596/4680 KB >>4598/4680 KB >>4600/4680 KB >>4602/4680 KB >>4604/4680 KB >>4606/4680 KB >>4608/4680 KB >>4610/4680 KB >>4612/4680 KB >>4614/4680 KB >>4616/4680 KB >>4618/4680 KB >>4620/4680 KB >>4622/4680 KB >>4624/4680 KB >>4626/4680 KB >>4628/4680 KB >>4630/4680 KB >>4632/4680 KB >>4634/4680 KB >>4636/4680 KB >>4638/4680 KB >>4640/4680 KB >>4642/4680 KB >>4644/4680 KB >>4646/4680 KB >>4648/4680 KB >>4650/4680 KB >>4652/4680 KB >>4654/4680 KB >>4656/4680 KB >>4658/4680 KB >>4660/4680 KB >>4662/4680 KB >>4664/4680 KB >>4666/4680 KB >>4668/4680 KB >>4670/4680 KB >>4672/4680 KB >>4674/4680 KB >>4676/4680 KB >>4678/4680 KB >>4680/4680 KB >> >>Uploaded: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/0.1.0-SNAPSHOT/olingo-client-proxy-android >>-0.1. >>0-20140606.084242-28.jar (4680 KB at 3344.9 KB/sec) >>Uploading: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/0.1.0-SNAPSHOT/olingo-client-proxy-android >>-0.1. >>0-20140606.084242-28.pom >>2/4 KB >>4/4 KB >> >>Uploaded: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/0.1.0-SNAPSHOT/olingo-client-proxy-android >>-0.1. >>0-20140606.084242-28.pom (4 KB at 10.0 KB/sec) >>Downloading: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/maven-metadata.xml >>304/304 B >> >>Downloaded: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/maven-metadata.xml (304 B at 1.4 KB/sec) >>Uploading: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/0.1.0-SNAPSHOT/maven-metadata.xml >>797/797 B >> >>Uploaded: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/0.1.0-SNAPSHOT/maven-metadata.xml (797 B >>at >>2.5 KB/sec) >>Uploading: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/maven-metadata.xml >>304/304 B >> >>Uploaded: >>https://repository.apache.org/content/repositories/snapshots/org/apache/o >>lin >>go/olingo-client-proxy-android/maven-metadata.xml (304 B at 0.8 KB/sec) >>[INFO] >>[INFO] >>------------------------------------------------------------------------ >>[INFO] Building olingo-fit 0.1.0-SNAPSHOT [INFO] >>------------------------------------------------------------------------ >>[INFO] >>[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ olingo-fit --- >>[INFO] >>Deleting <https://builds.apache.org/job/olingo-odata4/ws/fit/target> >>[INFO] >>[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ >>olingo-fit --- >>[INFO] [INFO] --- maven-resources-plugin:2.6:resources >>(default-resources) @ >>olingo-fit --- [INFO] Using 'UTF-8' encoding to copy filtered resources. >>[INFO] Copying 336 resources >>[INFO] Copying 3 resources >>[INFO] >>[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ >>olingo-fit --- >>[INFO] Changes detected - recompiling the module! >>[INFO] Compiling 48 source files to >><https://builds.apache.org/job/olingo-odata4/ws/fit/target/classes> >>[INFO] >>[INFO] --- maven-resources-plugin:2.6:testResources >>(default-testResources) @ >>olingo-fit --- [INFO] Using 'UTF-8' encoding to copy filtered resources. >>[INFO] Copying 4 resources >>[INFO] Copying 3 resources >>[INFO] >>[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ >>olingo-fit --- [INFO] Changes detected - recompiling the module! >>[INFO] Compiling 477 source files to >><https://builds.apache.org/job/olingo-odata4/ws/fit/target/test-classes> >>[INFO] >>[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ olingo-fit >>--- [INFO] >>Surefire report directory: >><https://builds.apache.org/job/olingo-odata4/ws/fit/target/surefire-repor >>ts> >> >>------------------------------------------------------- >> T E S T S >>------------------------------------------------------- >> >>Results : >> >>Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >> >>[INFO] >>[INFO] --- apache-rat-plugin:0.10:check (rat-check) @ olingo-fit --- >>[INFO] 51 >>implicit excludes (use -debug for more details). >>[INFO] Exclude: **/META-INF/** >>[INFO] Exclude: **/*.txt >>[INFO] Exclude: **/*.ini >>[INFO] Exclude: **/*.bin >>[INFO] Exclude: **/MANIFEST.MF >>[INFO] Exclude: .gitignore >>[INFO] Exclude: .git/** >>[INFO] Exclude: bin/** >>[INFO] Exclude: **/*.local >>[INFO] Exclude: **/*.project >>[INFO] Exclude: **/*.classpath >>[INFO] Exclude: **/*.json >>[INFO] Exclude: **/*.batch >>[INFO] Exclude: **/NOTICE >>[INFO] Exclude: **/DEPENDENCIES >>[INFO] Exclude: **/nb-configuration.xml >>[INFO] Exclude: **/.externalToolBuilders/** [INFO] Exclude: >>**/maven-eclipse.xml [INFO] Exclude: **/ref/** [INFO] Exclude: >>**/server-ref/** [INFO] 716 resources included (use -debug for more >>details) >>[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 >>approved: 715 licence. >>[INFO] >>[INFO] --- maven-war-plugin:2.4:war (default-war) @ olingo-fit --- [INFO] >>Packaging webapp [INFO] Assembling webapp [olingo-fit] in >>[<https://builds.apache.org/job/olingo-odata4/ws/fit/target/olingo-fit-0. >>1.0-SNA >>PSHOT]> >>[INFO] Processing war project >>[INFO] Copying webapp webResources >>[<https://builds.apache.org/job/olingo-odata4/ws/fit/target/classes]> to >>[<https://builds.apache.org/job/olingo-odata4/ws/fit/target/olingo-fit-0. >>1.0-SNA >>PSHOT]> >>[INFO] Copying webapp resources >>[<https://builds.apache.org/job/olingo-odata4/ws/fit/src/main/webapp]> >>[INFO] Webapp assembled in [649 msecs] >>[INFO] Building war: >><https://builds.apache.org/job/olingo-odata4/ws/fit/target/olingo-fit-0.1 >>.0-SNA >>PSHOT.war> >>[INFO] >>[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ >>olingo-fit --- [INFO] [INFO] --- cargo-maven2-plugin:1.4.8:start >>(start-container) >>@ olingo-fit --- [INFO] >>------------------------------------------------------------------------ >>[INFO] Reactor Summary: >>[INFO] >>[INFO] olingo-parent ..................................... SUCCESS >>[15.309s] [INFO] >>olingo-lib ........................................ SUCCESS [2.255s] >>[INFO] >>olingo-commons-api ................................ SUCCESS [8.839s] >>[INFO] >>olingo-commons-core ............................... SUCCESS [15.083s] >>[INFO] >>olingo-client-api ................................. SUCCESS [6.081s] >>[INFO] >>olingo-client-core ................................ SUCCESS [13.726s] >>[INFO] >>olingo-server-api ................................. SUCCESS [3.328s] >>[INFO] >>olingo-server-core ................................ SUCCESS [10.415s] >>[INFO] >>olingo-server-tecsvc .............................. SUCCESS [6.188s] >>[INFO] >>olingo-server-test ................................ SUCCESS [7.054s] >>[INFO] >>olingo-ext ........................................ SUCCESS [2.302s] >>[INFO] >>olingo-client-core-android ........................ SUCCESS [15.211s] >>[INFO] >>olingo-client-proxy ............................... SUCCESS [5.400s] >>[INFO] >>pojogen-maven-plugin .............................. SUCCESS [35.319s] >>[INFO] >>olingo-client-proxy-android ....................... SUCCESS [9.943s] >>[INFO] >>olingo-fit ........................................ FAILURE [28.963s] >>[INFO] >>------------------------------------------------------------------------ >>[INFO] BUILD FAILURE >>[INFO] >>------------------------------------------------------------------------ >>[INFO] Total time: 3:06.028s >>[INFO] Finished at: Fri Jun 06 08:43:14 UTC 2014 [INFO] Final Memory: >>42M/400M [INFO] >>------------------------------------------------------------------------ >>[ERROR] Failed to execute goal >>org.codehaus.cargo:cargo-maven2-plugin:1.4.8:start (start-container) on >>project olingo-fit: Execution start-container of goal >>org.codehaus.cargo:cargo-maven2-plugin:1.4.8:start failed: Port number >>9080 >>(defined with the property cargo.servlet.port) is in use. Please free it >>on the >>system or set it to a different port in the container configuration. -> >>[Help 1] >>[ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven >>with the >>-e switch. >>[ERROR] Re-run Maven using the -X switch to enable full debug logging. >>[ERROR] >>[ERROR] For more information about the errors and possible solutions, >>please >>read the following articles: >>[ERROR] [Help 1] >>http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException >>[ERROR] >>[ERROR] After correcting the problems, you can resume the build with the >>command >>[ERROR] mvn <goals> -rf :olingo-fit >>Build step 'Invoke top-level Maven targets' marked build as failure
