Service Virtualization

 View Only
  • 1.  DevTest Integration with Jenkins using lisa invoke

    Posted Aug 08, 2017 07:13 AM

    I am trying the cURL to run my build remotely. Here is the URL

    curl --user 'admin:admin' -F file={filepath}/sample.mar
    http://{registry_url}/api/Dcm/VSEs/vse_name/actions/deployMar

    getting the below error message,

     

    <Error xmlns="http://www.ca.com/lisa/invoke/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ca.com/lisa/invoke/v2.0 Error.xsd" type="application/vnd.ca.lisaInvoke.error+xml">
    <Id>1003</Id><Message>Our audit file is either missing or we are not a model archive or are corrupt.</Message>
    <AdditionalInformation>&#xD; java.lang.IllegalArgumentException: Our audit file is either missing or we are not
    a model archive or are corrupt.      at com.itko.lisa.model.mar.ModelArchive.init(ModelArchive.java:258)      
    at com.itko.lisa.model.mar.ModelArchive.&lt;init&gt;(ModelArchive.java:242)
         at com.itko.lisa.invoke.internal.VseRetriever.deployService(VseRetriever.java:1162)      
    at com.itko.lisa.invoke.resource.VseResource.deployService(VseResource.java:1040)      
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)      
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      
    at java.lang.reflect.Method.invoke(Method.java:498)      
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)      
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)      at com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchProvider$TimedRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:30)      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)      at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)      at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)      at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)      at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)      at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)      at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)      at com.itko.lisa.invoke.AuthenFilter.doFilter(AuthenFilter.java:254)      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)

     

    Thanks in advance!!



  • 2.  Re: DevTest Integration with Jenkins using lisa invoke

    Posted Aug 08, 2017 08:23 AM

    Is "vse_name" in your URI really the name of your VSE Server?  

    OOTB, this value would be VSE unless you overrode the name of the VSE.

    Also, check out kurva01 (Vamsi's post) Jenkins Pipeline Integration with DevTest to see if it might help. There is an example of a cURL POST.



  • 3.  Re: DevTest Integration with Jenkins using lisa invoke

    Posted Aug 08, 2017 11:20 AM

    Thanks Joel.

    yes, I am using VSE server name as VSE in my URI. still getting the same error message.



  • 4.  Re: DevTest Integration with Jenkins using lisa invoke
    Best Answer

    Posted Aug 08, 2017 10:59 PM

    I am able to run it after adding '@' before the {filepath}.

    Thanks.



  • 5.  RE: Re: DevTest Integration with Jenkins using lisa invoke

    Posted Nov 06, 2019 11:50 AM
    Define {filepath} please. Is this under the Project or is this the absolute filepath for the marfile?