Tillu007
Tillu007

Reputation: 21

mvn: command not found

I'm trying to run a pipeline with jenkinsfile on a specific for which I don't have access to manage the path. But I'm having this error can any one know how to solve this one?

enter image description here

Upvotes: 2

Views: 3453

Answers (1)

StephenKing
StephenKing

Reputation: 37580

You need to install Maven on the build agent executing the job. An alternative by Jenkins is that it can install Maven for you. This can be configured in the Global Tool Configuration of the Jenkins Master.

If you are really only allowed to modify the Jenkinsfile, you could first download and unpack maven into some local directory and then call it from there.

Upvotes: 3

Related Questions