declarative pipeline and tools directive

How do we go about getting a new tool type defined for the tools directive?   I have a version of gradle defined in Global Tool Configuration.  However, when I try to use

tools {

     gradle 'gradle32'


I get the error message below. Is this a Gradle plugin issue or a pipeline model plugin issue or something else?


hudson.pluginsWorkflowScript: 4: Invalid tool type 'gradle'. Valid tool types: [ant, hudson.tasks.Ant$AntInstallation, org.jenkinsci.plugins.docker.commons.tools.DockerTool, git, hudson.plugins.git.GitTool, hudson.plugins.gradle.GradleInstallation, jdk, hudson.model.JDK, jgit, org.jenkinsci.plugins.gitclient.JGitTool, jgitapache, org.jenkinsci.plugins.gitclient.JGitApacheTool, maven, hudson.tasks.Maven$MavenInstallation, hudson.plugins.sonar.SonarRunnerInstallation, hudson.plugins.sonar.MsBuildSQRunnerInstallation]

1 comment

  • 1
    Brent Laster

    I just updated my plugins and see that "gradle" is now supported as a tool. Thanks.

Please sign in to leave a comment.