Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda