-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.289.2
NeoLoad Plugin 2.2.10
We are creating a pipeline project using declarative pipeline script.
Below is the script I am using:
pipeline {
agent any
stages {
stage('Run Neoload') {
steps
}
}
}
Am getting the below error:
Hello World
[Pipeline] neoloadRun
Running NeoLoad with executable : /Users/sa20099277/.jenkins/workspace/Common_Performance_Testing/Library/Python/3.8/bin/neoload
$ /Users/sa20099277/.jenkins/workspace/Common_Performance_Testing/Library/Python/3.8/bin/neoload -project /Users/sa20099277/neoload_projects/sample/sample.nlp -launch "scenario 1" -testResultName "$Date
(build 83)" -report /Users/sa20099277/.jenkins/workspace/Common_Performance_Testing/neoload-report/report.html,/Users/sa20099277/.jenkins/workspace/Common_Performance_Testing/neoload-report/report.xml -SLAJUnitResults /Users/sa20099277/.jenkins/workspace/Common_Performance_Testing/neoload-report/junit-sla-results.xml -noGUI
Usage: neoload [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
*Try 'neoload --help' for help.
Error: No such option: -p*
What I understood is its taking -project as -p. Other than that I am not using -p anywhere else.
Dear Sagar,
We can see into your pipeline that you try to use the NeoLoad CLI with the NeoLoadCMD parameters.
Indeed if you want to use the NeoLoad plugin for Jenkins you have to follow this documentation -> https://plugins.jenkins.io/neoload-jenkins-plugin/)
If you want to use the NeoLoad CLI into a pipeline you don't need to have the NeoLoad plugin.
Best regards,
NEOTYS
Technical Support