Unanswered question

How to pass sla profile in jenkins pipeline

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

Sadasivuni V.
Sadasivuni V.

Sadasivuni V.

Level
1
317 / 750
points

Answers

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

You would pass it in using the -project argument, ie. NeoloadCmd -project "C;\proj\proj.nlp" "C:\sla.yaml"

Sadasivuni V.
Sadasivuni V.

Sadasivuni V.

Level
1
317 / 750
points

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

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

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

Sadasivuni V.
Sadasivuni V.

Sadasivuni V.

Level
1
317 / 750
points

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

Sadasivuni V.
Sadasivuni V.

Sadasivuni V.

Level
1
317 / 750
points

can you please give me an update to me

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

It sounds like the issue is now with the yaml file.