How to run Jenkins job with build parameter

33 views
Skip to first unread message

viral

unread,
Mar 12, 2015, 10:11:06 AM3/12/15
to jenkins...@googlegroups.com
Hi I'm new to jenkins and need to know how to use jenkins build parameter
plugin.

we have 4 different environments

1) Dev
2) UAT
3) Beta
4) prod

We using GIT and the way i setup all Jenkins test are with different views
in Jenkins for each and every environments however we have now 30 Jobs for
each environments and its hard to maintenance across all the environment if
we have to update any config values as we need to go each and every
individual jobs to update. I have config slicing plugin but that is not
available for most of the config values we use.

So if you can give me some idea of how to use that would be great.

Note:- Difference between all the environments are only the URLs however we
also need to make sure that if we use build parameter then results needs to
be accurate . Not like they will be confusing and we dont know which results
is for which environments .






--
View this message in context: http://jenkins-ci.361315.n4.nabble.com/How-to-run-Jenkins-job-with-build-parameter-tp4742469.html
Sent from the Jenkins users mailing list archive at Nabble.com.

Maciej Jaros

unread,
Mar 18, 2015, 6:55:09 AM3/18/15
to jenkins...@googlegroups.com

> Hi I'm new to jenkins and need to know how to use jenkins build parameter
> plugin.
>
> we have 4 different environments
>
> ...
>
> Note:- Difference between all the environments are only the URLs however we
> also need to make sure that if we use build parameter then results needs to
> be accurate . Not like they will be confusing and we dont know which results
> is for which environments .


If you the only difference is the URL then you could simply make changes
in one Job and copy config.xml to others changing the URL manually... Or
you could even use job name to figure out which URL to use.

Or you could use Build parameter as you mention and then expose its
value in the build description with Description Setter Plugin. Summary
will not be accurate, but you will be able to see which environment
failed in the build history.

Regards,
Nux.
Reply all
Reply to author
Forward
0 new messages