Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
How do you set crumb for Jenkins using Axios?

I have been trying to set the crumb for triggering a Jenkins job. But it doesn't seem to work or I am doing something wrong. Here is my code:

// Use the crumb in the post call
axios.post(`${url}/job/${job_name}/build?token=${token}`,
{}, 
{
    headers: {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Jenkins-Crumb": r.data.crumb
    }
}).then(r => console.log(r))
.catch(r => console.log(r))

I keep getting the 'No valid crumb' error, I am getting the crumb from the crumbIssuer API properly. Been trying for quite some time now. Do I need the token at all, if I am using a crumb? Do I need the username/password again if I am using a token/crumb?

Please help, stuck here.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!