Hello !
I am running Jenkins in Docker container but getting the below error while running a pipeline job. The below pipeline snippet checks if maven is being used or not, it throws below error message.
Installed Plugins are,
- Docker plugin
- Docker pipeline
Additionally, I also configured docker on Jenkins UI, under tools section. Can someone suggest over this ?
Pipeline snippet:
pipeline {
agent {
docker {
image ‘maven:latest’
}
}
stages {
stage (‘Check’) {
steps {
sh ‘mvn -v’
}
}
}
}