How to create a custom Jenkins "New item" type

38 views
Skip to first unread message

Manata

unread,
Mar 13, 2015, 10:06:26 AM3/13/15
to jenkin...@googlegroups.com
Hi All,

I've just started working with Jenkins plugin development and have some
questions:
How to create a custom Jenkins "New item" type which should have some
predefined build parameters ?
Could you please provide a tutorial or an example how to do such things.

I am thinking of the following solutions:
- develop a custom job type which will have build parameters predefined
inside it
- develop a parametrized job custom build parameter type which will get more
than one value during the build setep

I have tried to create parametrized job custom build type for my plugin but
in my case I need to define more than one build parameter which as I see is
not possible because Jenkins's buildWithParameters function gets only one
value from my type regarding of this:
https://gitorious.org/jenkinsci/jenkins/source/bbdf5c21153c7e9d60d6ed158d32aa8852f00501:core/src/main/java/hudson/model/ParametersDefinitionProperty.java

Thanks,
Mane H



--
View this message in context: http://jenkins-ci.361315.n4.nabble.com/How-to-create-a-custom-Jenkins-New-item-type-tp4742798.html
Sent from the Jenkins dev mailing list archive at Nabble.com.
Reply all
Reply to author
Forward
0 new messages