Technical questionAccepted answer
Jenkins. Invalid agent type "docker" specified. Must be one of [any, label, none]
Zimovik007
Jun 8
0 views1
My JenkinsFile looks like:
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'
}
}
}
}
I used to have Jenkins locally and this configuration worked, but I deployed it to a remote server and get the following error:
WorkflowScript: 3: Invalid agent type "docker" specified. Must be one of [any, label, none] @ line 3, column 9.
docker {
I could not find a solution to this problem on the Internet, please help me
1 answer
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
Matthew SchuchardPermalink
Jun 8
This is probably due to the Docker Pipeline plugin not being installed.