griddynamics / mpl

[IT-36925] Jenkins Shared Modular Pipeline Library
https://blog.griddynamics.com/developing-a-modular-pipeline-library-to-improve-devops-collaboration/
Apache License 2.0
156 stars 97 forks source link

Pipeline fails after latest changes #62

Closed marcelaraujo closed 4 years ago

marcelaraujo commented 4 years ago
hudson.remoting.ProxyException: com.griddynamics.devops.mpl.MPLModuleException: Found error during execution of the module 'library:jenkins-mpl-library/resources/com/griddynamics/devops/mpl/modules/Build/Build.groovy#null':
com.griddynamics.devops.mpl.MPLModuleException: Found error during execution of the module 'library:jenkins-mpl-library/resources/com/griddynamics/devops/mpl/modules/Build/MavenBuild.groovy#null':
hudson.AbortException: No tool named Maven 3 found
    at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:162)
    at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:133)
    at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

My Jenkinsfile

def call(body) {
    MPLModulesPath('org/jenkins/pipeline/modules')
    ...
}
sparshev commented 4 years ago

Hi @marcelaraujo ,

Did you read the exception? Also please check the first example here: https://github.com/griddynamics/mpl/wiki/MPL-Build-example

marcelaraujo commented 4 years ago

Yeah, I did. This issue happens because in your repository has a default path module.

Please, ignore this issue.