Can anyone please help me to understand whats wrong in the command and attached pom files, as a result of which, I cam getting the following error ?
00:50:02 Request prepared for the server 00:50:02 ************************** 00:50:02 POST http://10.12.162.6:8080/v1/organizations/xxxx/sharedflows?action=import&name=SF-ErrorHandling 00:50:02 accept: application/json 00:50:02 accept-encoding: gzip 00:50:02 authorization: Basic [Not shown in log] 00:50:02 content-type: application/octet-stream 00:50:02 [Request body contains data, not shown] 00:50:02 00:50:22 [ERROR] 00:50:22 00:50:22 00:50:22 * * * * * * * * * * * 00:50:22 00:50:22 This deployment could have failed for a variety of reasons. 00:50:22 00:50:22 00:50:22 00:50:22 * * * * * * * * * * * 00:50:22 00:50:22 00:50:22 00:50:22 [INFO] ------------------------------------------------------------------------ 00:50:22 [INFO] BUILD FAILURE 00:50:22 [INFO] ------------------------------------------------------------------------ 00:50:22 [INFO] Total time: 21.953 s 00:50:22 [INFO] Finished at: 2017-07-30T00:50:22+05:30 00:50:22 [INFO] Final Memory: 9M/30M 00:50:22 [INFO] ------------------------------------------------------------------------ 00:50:22 [ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5:deploy (deploy-bundle-step) on project SF-ErrorHandling: MojoExecutionException: connect timed out -> [Help 1] 00:50:22 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5:deploy (deploy-bundle-step) on project SF-ErrorHandling: 00:50:22 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) 00:50:22 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) 00:50:22 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) 00:50:22 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) 00:50:22 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) 00:50:22 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 00:50:22 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) 00:50:22 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) 00:50:22 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) 00:50:22 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) 00:50:22 at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main(Maven35Launcher.java:130) 00:50:22 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:50:22 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 00:50:22 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 00:50:22 at java.lang.reflect.Method.invoke(Method.java:498) 00:50:22 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 00:50:22 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 00:50:22 at jenkins.maven3.agent.Maven35Main.launch(Maven35Main.java:176) 00:50:22 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:50:22 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 00:50:22 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 00:50:22 at java.lang.reflect.Method.invoke(Method.java:498) 00:50:22 at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) 00:50:22 at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) 00:50:22 at hudson.remoting.UserRequest.perform(UserRequest.java:153) 00:50:22 at hudson.remoting.UserRequest.perform(UserRequest.java:50) 00:50:22 at hudson.remoting.Request$2.run(Request.java:336) 00:50:22 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) 00:50:22 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 00:50:22 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 00:50:22 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 00:50:22 at java.lang.Thread.run(Thread.java:748) 00:50:22 Caused by: org.apache.maven.plugin.MojoExecutionException: 00:50:22 at io.apigee.buildTools.enterprise4g.mavenplugin.DeployMojo.processHelpfulErrorMessage(DeployMojo.java:385) 00:50:22 at io.apigee.buildTools.enterprise4g.mavenplugin.DeployMojo.execute(DeployMojo.java:370) 00:50:22 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) 00:50:22 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 00:50:22 ... 31 more 00:50:22 Caused by: java.net.SocketTimeoutException: connect timed out 00:50:22 at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) 00:50:22 at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) 00:50:22 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 00:50:22 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 00:50:22 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 00:50:22 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 00:50:22 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 00:50:22 at java.net.Socket.connect(Socket.java:589) 00:50:22 at sun.net.NetworkClient.doConnect(NetworkClient.java:175) 00:50:22 at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) 00:50:22 at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) 00:50:22 at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) 00:50:22 at sun.net.www.http.HttpClient.New(HttpClient.java:339) 00:50:22 at sun.net.www.http.HttpClient.New(HttpClient.java:357) 00:50:22 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202) 00:50:22 at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138) 00:50:22 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032) 00:50:22 at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966) 00:50:22 at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316) 00:50:22 at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291) 00:50:22 at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:79) 00:50:22 at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:895) 00:50:22 at io.apigee.buildTools.enterprise4g.rest.RestUtil.executeAPI(RestUtil.java:854) 00:50:22 at io.apigee.buildTools.enterprise4g.rest.RestUtil.uploadBundle(RestUtil.java:453) 00:50:22 at io.apigee.buildTools.enterprise4g.rest.RestUtil.uploadBundle(RestUtil.java:418) 00:50:22 at io.apigee.buildTools.enterprise4g.mavenplugin.DeployMojo.doImport(DeployMojo.java:159) 00:50:22 at io.apigee.buildTools.enterprise4g.mavenplugin.DeployMojo.execute(DeployMojo.java:339) 00:50:22 [JENKINS] Archiving C:\Program Files (x86)\Jenkins\workspace\Deploy SharedFlow\APIProxies\sharedflow\SF-ErrorHandling\pom.xml to Apigeeks/SF-ErrorHandling/1.0/SF-ErrorHandling-1.0.pom 00:50:22 ... 33 more 00:50:22 [ERROR] 00:50:22 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 00:50:22 [ERROR] 00:50:22 [ERROR] For more information about the errors and possible solutions, please read the following articles: 00:50:22 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 00:50:22 channel stopped 00:50:23 Finished: FAILURE
I have created a Jenkins Job, with
1. Root Pom:
APIProxies\sharedflow\SF-ErrorHandling\pom.xml
2. Goals and Option :clean install -Dusername=xxxx -Dpassword=yyyy -Dorg=ABCD-trial -P test -X
The POM files are attached (Changed the file extension from .xml to .txt to support upload)
Hi @MEGHDEEP
I see a connect time out in the first line of the error stack trace. May be you can try to check if the management api url is reachable from your Jenkins environment.
A couple of things to check:
1) it doesn't look like you are referencing the deploy plugin - make sure to add that with at least version 1.1.5
2) you'll need to include the following property in your profiles for a shared flow:
<apigee.apitype>sharedflow</apigee.apitype>
Take a look at the sample parent pom here for reference: https://github.com/apigee/apigee-deploy-maven-plugin/blob/master/samples/security-sharedflow/src/sha...
Yes - looks like you have not shared the correct pom as the mvn logs shows 1.1.5 but the files you attached are showing 1.1.4 and no entries that states its a shared flow
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |