MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

Jenkins Error: no known implementation of class hudson.model.ParameterDefinition is named ChoiceParameter

Uncategorized

Error

java.lang.UnsupportedOperationException: no known implementation of class hudson.model.ParameterDefinition is named ChoiceParameter
	at org.jenkinsci.plugins.structs.describable.DescribableModel.resolveClass(DescribableModel.java:549)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:473)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerceList(DescribableModel.java:585)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:458)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:409)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:329)
Caused: java.lang.IllegalArgumentException: Could not instantiate {parameterDefinitions=[{$class=ChoiceParameter, choiceType=PT_SINGLE_SELECT, description=Select Build Type, name=build_type, randomName=choice-parameter-5631314439613978, script={$class=GroovyScript, fallbackScript={classpath=[], sandbox=true, script=return['Could not get build type']}, script={classpath=[], sandbox=true, script=

Solution

INSTALL THESE PLUGINS

To use the ChoiceParameter in a Jenkins pipeline, you need to install the “Extended Choice Parameter” plugin. This plugin provides additional parameter types, including the choice parameter.

To install the “Extended Choice Parameter” plugin in Jenkins, follow these steps:

  1. Access the Jenkins web interface.
  2. Click on “Manage Jenkins” on the left sidebar.
  3. Select “Manage Plugins” from the dropdown menu.
  4. In the “Available” tab, search for “Extended Choice Parameter” in the search box.
  5. Check the checkbox next to the “Extended Choice Parameter” plugin.
  6. Click on the “Install without restart” button.

After the plugin is installed, you should be able to use the ChoiceParameter in your Jenkins pipeline by specifying the parameter type as “Choice Parameter” and providing the necessary configuration.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x