Thank you Daniel! Do you know if there is a way to pass a file parameter 
this way?


On Thursday, January 10, 2019 at 1:51:03 AM UTC-8, Daniel Butler wrote:
>
> Hi Vicki,
>
> According to https://wiki.jenkins.io/display/JENKINS/Parameterized+Build, 
> for buildWithParameters you should use URL query params to pass the values.
>
>  
>
> To use your example:
>
> curl -v https://jenkins/job/JobName/buildWithParameters?targ_env=dev 
>  --user userName:userToken
>
>  
>
>  
>
> Regards,
>
> Daniel
>
>  
>
> *From: *Vicki Kozel <javascript:>
> *Sent: *10 January 2019 03:37
> *To: *Jenkins Users <javascript:>
> *Subject: *CLI command to start jenkins job with default and 
> overridenparameters
>
>  
>
> Hello,
>
> I am having trouble with combining default and overriden parameters when 
> invoking jenkins jobs through remote CLI command.  
>
>  
>
> It  looks like the following invocation passes command line parameters to 
> a job just fine, but ignores the default parameters:
>
> curl -v https://jenkins/job/JobName/build -F json='{"parameter": 
> [{"name": "targ_env", "value": "dev"}]}' --user userName:userToken
>
>  
>
>  
>
> and the invocation on buildWithParameters api does the opposite - ignores 
> the passed parameters and sets all the defaults correctly:
>
>  
>
> curl -v https://jenkins/job/JobName/buildWithParameters -F 
> json='{"parameter": [{"name": "targ_env", "value": "dev"}]}' --user 
> userName:userToken
>
>  
>
> Is there an API that can combine two sets of parameters?
>
>  
>
> Thank you!!
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/27053cad-e82f-4053-b76c-ebfdf5781877%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/27053cad-e82f-4053-b76c-ebfdf5781877%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/288e425a-37e4-4ad0-a26f-3ae3aa37a20f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to