Service Virtualization

  • 1.  Error while deploying mar from Jenkins

    Posted May 03, 2018 09:50 AM

    Hi,

     

    I am using Rest Invoke API to deploy mar to DevTest VSE using Jenkins. Mar is placed in the stash repository.

     

    + curl  -u [DevTestUserName]:[Password]-F fileURI=https://HOST/basePath/filename.mar http://HOST:1505/api/Dcm/VSEs/VSE/actions/deployMar

     

    I am getting this error:


     Error 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" xmlns="http://www.ca.com/lisa/invoke/v2.0"><Id>1003</Id><Message>Not upported file protocol:https</Message><AdditionalInformation>
    com.itko.lisa.invoke.api.exception.BadRequestException: Not upported file protocol:https
    at com.itko.lisa.invoke.ParamterUtils.getInputStream(ParamterUtils.java:93)
    at com.itko.lisa.invoke.resource.VseResource.deployService(VseResource.java:1034)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)...<truncated>

     

    Is there anyway I can use pick a mar from GIT and deploy it via Jenkins

     

    Appreciate you response.



  • 2.  Re: Error while deploying mar from Jenkins

    Posted May 07, 2018 07:15 AM

    @sdetweil2  Could you help me with this?



  • 3.  Re: Error while deploying mar from Jenkins
    Best Answer

    Posted May 08, 2018 04:24 AM

    Below command worked

     

    + curl  -u [DevTestUserName]:[Password]-F "file=@filename.mar" http://HOST:1505/api/Dcm/VSEs/VSE/actions/deployMar