Please help out 

java.lang.NoSuchMethodError: No such DSL method 'when' found among steps 
[archive, bat, build, catchError, checkout, deleteDir, dir, 
dockerFingerprintFrom, dockerFingerprintRun, echo, emailext, 
emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, 
getContext, git, input, isUnix, junit, library, libraryResource, load, lock, 
mail, milestone, node, parallel, powershell, properties, pwd, pwsh, readFile, 
readTrusted, resolveScm, retry, script, sh, sleep, stage, stash, step, svn, 
timeout, timestamps, tm, tool, unarchive, unstable, unstash, 
validateDeclarativePipeline, waitForQualityGate, waitUntil, warnError, 
withContext, withCredentials, withDockerContainer, withDockerRegistry, 
withDockerServer, withEnv, withGradle, wrap, writeFile, ws] or symbols [all, 
allOf, always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, 
architecture, archiveArtifacts, artifactManager, audit-trail, 
authorizationMatrix, batchFile, booleanParam, branch, brokenBuildSuspects, 
brokenTestsSuspects, buildButton, buildDiscarder, buildDiscarders, buildingTag, 
caseInsensitive, caseSensitive, certificate, changeRequest, changelog, 
changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, 
command, credentials, cron, crumb, culprits, defaultFolderConfiguration, 
defaultView, demand, developers, disableConcurrentBuilds, disableResume, 
docker, dockerCert, dockerfile, downstream, dumb, durabilityHint, envVars, 
environment, equals, expression, file, fileParam, filePath, fingerprint, 
frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, 
gitBranchDiscovery, gitHubBranchDiscovery, gitHubBranchHeadAuthority, 
gitHubExcludeArchivedRepositories, gitHubForkDiscovery, 
gitHubPullRequestDiscovery, gitHubSshCheckout, gitHubTagDiscovery, 
gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, 
gitHubTrustPermissions, gitTagDiscovery, github, githubPush, gradle, 
headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, 
inheritingGlobal, installSource, isRestartedRun, jdk, jdkInstaller, jgit, 
jgitapache, jnlp, jobBuildDiscarder, jobName, label, lastDuration, lastFailure, 
lastGrantedAuthorities, lastStable, lastSuccess, legacy, legacySCM, list, 
local, location, logRotator, loggedInUsersCanDoAnything, mailer, masterBuild, 
maven, maven3Mojos, mavenErrors, mavenMojos, mavenWarnings, modernSCM, myView, 
newContainerPerStage, node, nodeProperties, nonInheriting, none, not, 
overrideIndexTriggers, paneStatus, parallelsAlwaysFailFast, parameters, 
password, pattern, permanent, pipeline-model, pipeline-model-docker, 
pipelineTriggers, plainText, plugin, pollSCM, preserveStashes, 
projectNamingStrategy, proxy, queueItemAuthenticator, quietPeriod, 
rateLimitBuilds, recipients, requestor, resourceRoot, run, runParam, 
sSHLauncher, schedule, scmRetryCount, scriptApproval, scriptApprovalLink, 
search, security, shell, simpleBuildDiscarder, skipDefaultCheckout, 
skipStagesAfterUnstable, slave, sourceRegexFilter, sourceWildcardFilter, ssh, 
sshUserPrivateKey, stackTrace, standard, status, string, stringParam, 
swapSpace, tag, teamSlugFilter, text, textParam, timezone, tmpSpace, 
toolLocation, triggeredBy, unsecured, upstream, upstreamDevelopers, userSeed, 
usernameColonPassword, usernamePassword, viewsTabBar, weather, withAnt, 
withSonarQubeEnv, zfs, zip] or globals [currentBuild, docker, env, params, 
pipeline, scm]
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:202)
        at 
org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
        at sun.reflect.GeneratedMethodAccessor518.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
        at 
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
        at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)
        at 
org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:2

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bb911145-3aac-43d9-a976-1f12f4d336b3%40googlegroups.com.

Reply via email to