I have few scripts built on Karate Framework model using Maven. Created Freestyle Jenkins job to execute developed codebase.
The command-line syntax used in the IntelliJ IDEA Terminal is different from the command line used in the Jenkins "Execute Windows batch command". I figured out env providing through the command line.
-DargLine="-Dkarate.env=qa" (windows command format) / -Dkarate.env="qa" (IntelliJ Terminal command format)
I am looking for windows command line format for -Dkarate.options="--tags @smoke" , Do you have any idea how to specify karate options in the command line when we run from the Jenkins windows batch command or through cmd option from the "pom.xml" folder.
Once above is clear, I will pass env, tags, and test name through Jenkins parameters. Do you have any idea? for ex: -Dtest=$testname ("testname" holds test name from the Jenkins parameter) like this my requirement is to pass environment value and tags also. I need the entire command line format which established through parameters in the Jenkins.