Is it possible to parse url parameters and then use it for build? Take the snapshot as example, I would like to parse HelloWorld into my parameters user_name when I hit the url \ https://\<jenkins-host>/job/<job-name>/build?<param-key>=<param-value>
-
Do I understand this correctly that you want to set the default value of a parameter in a parameterized project via an URL parameter?Gerold Broser– Gerold Broser2025-07-17 20:29:44 +00:00Commented Jul 17 at 20:29
-
@GeroldBroser Yes. I expect some solution that can parsing parameters string (HelloWorld in my case) from url and send string into my param when I build my parameterized project automatically.swchen– swchen2025-07-17 23:30:07 +00:00Commented Jul 17 at 23:30
-
The last part contradicts the title. There is "build with ... UI interface" vs. "build ... automatically" now.Gerold Broser– Gerold Broser2025-07-18 06:57:01 +00:00Commented Jul 18 at 6:57
Add a comment
|
1 Answer
For supplying default values for parameters in a parameterized project via the URL you can use the Build With Parameters plugin:
Allows the user to provide parameters for a build in the url, prompting for confirmation before triggering the job.
With that the URL:
http://localhost:8080/job/Parameterized_with_defaults_from_URL/parambuild/?Parameter=fromURL
1 Comment
swchen
Thanks for the help. This is what I need.

