Is there any way to call jenkins job using jenkins-cli without passing the file parameter?
I have one jenkins job which accepts following parameter (key1,key2,file-parameter) Here is my jenins-cli call to the project.
java -jar jenkins-cli.jar \
-s <url> build <jenkins-project> \
-p key1=value1 -p FILE_PARAMETER=filename
Here if I don't pass key2 the build get triggered but i want to trigger the build without passing the file parameter.
If I do so am getting following error - No default value for the parameter FILE_PARAMETER.