Business
Jobs
  • About Us
  • Solutions
    • Candidates
      Highly qualified candidates in 48h.
    • Assessments
      500+ technical and psychological assessments, plus anti-fraud system.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Pay in 15+ LATAM countries without setting up a local entity.
  • Pricing
  • Jobs

0

588
Views
Jenkins. Se especificó un tipo de agente "docker" no válido. Debe ser uno de [cualquiera, etiqueta, ninguno]

Mi JenkinsFile se parece a:

 pipeline { agent { docker { image 'node:12.16.2' args '-p 3000:3000' } } stages { stage('Build') { steps { sh 'node --version' sh 'npm install' sh 'npm run build' } } stage ('Deliver') { steps { sh 'readlink -f ./package.json' } } } }

Solía tener Jenkins localmente y esta configuración funcionaba, pero la implementé en un servidor remoto y recibí el siguiente error:

 WorkflowScript: 3: Invalid agent type "docker" specified. Must be one of [any, label, none] @ line 3, column 9. docker {

No pude encontrar una solución a este problema en Internet, por favor ayúdenme

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Tienes que instalar 2 plugins: Docker plugin y Docker Pipeline . Espero que ayude.

over 4 years ago · Santiago Trujillo Report

0

en lugar de agente { ventana acoplable { imagen 'nodo: 12.16.2' args '-p 3000: 3000' } }

pruebe el agente { cualquier { imagen 'nodo: 12.16.2' args '-p 3000: 3000' } }

eso funcionó para mí.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

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