Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8561615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:32:23+00:00 2026-06-11T16:32:23+00:00

I am triggering a parametrized Jenkins job remotely using the Remote Access API like

  • 0

I am triggering a parametrized Jenkins job remotely using the Remote Access API like this:

url=http://<ci-host>/job/<jobname>/build
json="{\"parameter\": [{\"name\": \"A_NAME\", \"value\": \"a_value\"}]}"
curl -X POST $url -d token=zorn --data-urlencode json="$json"

I want Jenkins to use the configured default value for one of my parameters, but it seems to be expecting values for all of the parameters.

If I leave out a parameter, the job sees it as an empty string.

Is there a way to make it use the configured default value for a parameter?

EDIT:
The solution (as per Daniel S.) was to use buildWithParameters as follows:

url=http://<ci-host>/job/<jobname>/buildWithParameters
curl -s -X POST $url

ANOTHER EDIT:
But now the problem is that buildWithParameters does not work on a job with no parameters. So it cannot be used for a generic script to start all my jobs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:32:24+00:00Added an answer on June 11, 2026 at 4:32 pm

    Try to use buildWithParameters instead of build, i.e.

    http://<ci-host>/job/<jobname>/buildWithParameters
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently triggering Perl scripts using Jenkins/Hudson, however, I am struggling to find
I am triggering the fancybox to open onclick like this: $('.telefonosOtrosPaises').fancybox({ 'type' : 'iframe',
What is the correct syntax for triggering a like action via FB's js sdk?
I am triggering the transformation using a .NET code, unless I add EnableDocumentFunction property
I currently have a button triggering this: def spam(self,event): t = workingthread() t.start() Which
Link to jsfiddle: http://jsfiddle.net/crismanNoble/gqFdH/2/ Basically the svg keeps changing colors without ever triggering the
I am triggering an ant script (via cruise control), and would like to be
Apparently this line of code is triggering Object expected: var bPid = (b !=
I wanted to pass PHP variables to Javascript without triggering any new http request
I am triggering this query p my query starts here... @relevant_customers_for_total_spent = Customer.order(total_amount DESC).where('id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.