java lang NoSuchMethodError No such DSL method pipeline found among steps

+1 vote

Hi Guys,

I am trying to run one Job using Jenkins Pipeline. But It is showing me the below error.

java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps [archive, bat, build, catchError, checkout, deleteDir, dir, dockerNode, echo, emailext, emailextrecipients, error, fileExists, getContext, git, input, isUnix, junit, load, lock, mail, milestone, node, parallel, powershell, properties, pwd, pwsh, readFile, readTrusted, resolveScm, retry, sh, sleep, sshagent, stage, stash, step, task, timeout, tm, tool, unarchive, unstable, unstash, waitUntil, warnError, withContext, withCredentials, withEnv, wrap, writeFile, ws] or symbols [all, always, apiToken, architecture, archiveArtifacts, artifactManager, attach, batchFile, booleanParam, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDiscarder, buildDiscarders, caseInsensitive, caseSensitive, certificate, choice, choiceParam, clock, command, credentials, cron, crumb, culprits, defaultFolderConfiguration, defaultView, demand, developers, disableConcurrentBuilds, disableResume, docker-image-build, docker-image-producer, dockerCert, dockerEnvVars, dockerSettings, dockerShell, downstream, dumb, durabilityHint, envVars, file, fileParam, filePath, fingerprint, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitBranchDiscovery, gitTagDiscovery, githubPush, headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, installSource, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobBuildDiscarder, jobName, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, list, local, location, logRotator, loggedInUsersCanDoAnything, mailer, masterBuild, maven, maven3Mojos, mavenErrors, mavenMojos, mavenWarnings, myView, nodeProperties, none, overrideIndexTriggers, paneStatus, parameters, password, pattern, permanent, pipelineTriggers, plainText, plugin, pollSCM, projectNamingStrategy, proxy, queueItemAuthenticator, quietPeriod, rateLimitBuilds, recipients, requestor, resourceRoot, run, runParam, sSHLauncher, schedule, scmRetryCount, scriptApproval, scriptApprovalLink, search, security, shell, simpleBuildDiscarder, slave, sourceRegexFilter, sourceWildcardFilter, ssh, sshPublicKey, sshUserPrivateKey, standard, status, string, stringParam, swapSpace, text, textParam, timezone, tmpSpace, toolLocation, unsecured, upstream, upstreamDevelopers, userSeed, usernameColonPassword, usernamePassword, viewsTabBar, weather, yadockerWrapper, zfs, zip] or globals [currentBuild, env, params, scm]
Jul 7, 2020 in Jenkins by akhtar
• 38,230 points
42,912 views

1 answer to this question.

0 votes

Hi@akhtar,

I think you did not install your Pipeline plugin properly in your Jenkins. Go to your manage Plugins and install the Pipeline Plugin once again. After successful installation restart your Jenkins and try to run once again.

answered Jul 7, 2020 by MD
• 95,440 points
thanks it solve and save hours

Related Questions In Jenkins

0 votes
1 answer

Error: ‘Jenkins pipeline: No such DSL method'

This is a simple mistake, just remove ...READ MORE

answered Aug 17, 2018 in Jenkins by Sophie may
• 10,610 points
22,868 views
0 votes
5 answers
+1 vote
3 answers

"No such file pom.xml" error in Jenkins

Can you please che ck the location ...READ MORE

answered May 16, 2019 in Jenkins by Samir
20,390 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,459 views
+2 votes
1 answer
0 votes
1 answer

java.lang.NoSuchMethodError: No such DSL method 'autoClean' found among steps

Hi@Nagarjun, It seems the plugin you are using ...READ MORE

answered Oct 19, 2020 in Jenkins by MD
• 95,440 points
1,898 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP