I prepared my sla profile yaml file and trying to apply in my jenkins pipeline code. But i am unable to apply sla to the project. What is the command to apply sla in jenkins
You would pass it in using the -project argument, ie. NeoloadCmd -project "C;\proj\proj.nlp" "C:\sla.yaml"
I am passing the following command in neoload pipeline
neoloadRun executable: '<path>/NeoLoadCmd',project: "${WORKSPACE}/<project>" , commandLineOption:"-project \"${WORKSPACE}/SLA_Profile.yaml\" -loadGenerators \"${WORKSPACE}/neoload.yaml\" -exitCodeFailIgnore", scenario: "$SCENARIO"
here the sla is not being applied.
if I follow the command given above, i am removing project: "${WORKSPACE}/<project>" and replacing it with commandLineOption:"-project ${WORKSPACE}/<project>" \"${WORKSPACE}/SLA_Profile.yaml\"the error i am getting is project not found. Can you please help on this
I hadn't realised you were using pipeline as code too, your command is correct however you appear to be esaping the " with the \. I don't think this is needed ie. SLA_Profile.yaml\" should just be SLA_Profile.yaml". Remove them all from the command
this worked but the sla is not getting applied to the transaction scenario
how to do this? do we need to apply to the same yaml file where we defined our SLA
can you please give me an update to me
It sounds like the issue is now with the yaml file.
Neil answered
Sadasivuni answered
Sadasivuni answered
Neil answered
Sadasivuni answered
Neil answered
Sadasivuni posted a new question