Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68083

After upgrade all plugins , pipeline input plugin does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • DEV/TEST/UAT

      Code

      stage("Setting Version") {
              steps {

                           script {           

                                  // Define Variable

                             def newVersion = getUpdatedVersion("${env.PROJECT_VERSION}")             

                             def USER_INPUT = input(                    message: "The Next version of app is :"newVersion" \n Please enter the Version U want to deploy with :",                                                                                   parameters: [    string(defaultValue: newVersion, name: 'input', description: 'Project Version'),                   

                                                                     ])

      Versions

      Jenkins 2.332.1
      Pipeline: Input StepVersion446.vf27b_0b_83500e
      Pipeline: DeclarativeVersion2.2064.v5eef7d0982b_e

      Pipeline: GroovyVersion2680.vf642ed4fa_d55

       

      ERROR

      ERROR: Execution failed
      java.lang.NoSuchMethodError: No such DSL method 'input' found among steps [acceptGitLabMR, addBadge, addErrorBadge, addGitLabMRComment, addHtmlBadge, addInfoBadge, addShortText, addWarningBadge, archive, bat, browserStackReportPublisher, browserstack, browserstackAppUploader, build, catchError, checkout, compareVersions, container, containerLog, createSummary, deleteDir, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerNode, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, findFiles, getContext, git, gitlabBuilds, gitlabCommitStatus, isUnix, junit, library, libraryResource, load, lock, mail, milestone, nexusArtifactUploader, nexusPolicyEvaluation, nexusPublisher, node, nodesByLabel, parallel, podTemplate, powershell, prependToFile, properties, publishChecks, publishHTML, publishIssues, pwd, pwsh, pybat, pysh, readCSV, readFile, readJSON, readManifest, readMavenPom, readProperties, readTrusted, readYaml, recordIssues, removeBadges, removeHtmlBadges, removeSummaries, resolveScm, retry, scanForIssues, script, sh, sha1, sha256, sleep, sshCommand, sshGet, sshPut, sshRemove, sshScript, sshagent, stage, stash, step, tar, tee, timeout, timestamps, tm, tool, touch, unarchive, unstable, unstash, untar, unzip, updateGitlabCommitStatus, validateDeclarativePipeline, verifySha1, verifySha256, waitForQualityGate, waitUntil, warnError, withChecks, withContext, withCredentials, withDockerContainer, withDockerRegistry, withDockerServer, withEnv, withGradle, withGroovy, withKubeConfig, withKubeCredentials, withMaven, withPythonEnv, wrap, writeCSV, writeFile, writeJSON, writeMavenPom, writeYaml, ws, xunit, zip] or symbols [AUnit, BoostTest, CTest, CUnit, Check, CppTest, CppUnit, Custom, FPCUnit, GenericTrigger, GitUsernamePassword, GoogleTest, JUnit, MSTest, MbUnit, NUnit2, NUnit3, PHPUnit, PVSStudio, QtTest, UnitTest, Valgrind, acuCobol, ajc, all, allBranchesSame, allOf, always, analysisParser, androidLintParser, ansibleLint, ant, antFromApache, antOutcome, antPath, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, armCc, artifactManager, artifactsPublisher, associateTag, attach, attachments, authorizationMatrix, axivion, axivionSuite, azureCLI, azureServicePrincipal, batchFile, bitbucket, bitbucketBranchDiscovery, bitbucketBuildStatusNotifications, bitbucketForkDiscovery, bitbucketPublicRepoPullRequestFilter, bitbucketPullRequestDiscovery, bitbucketServer, bitbucketSshCheckout, bitbucketTagDiscovery, bitbucketTrustEveryone, bitbucketTrustNobody, bitbucketTrustProject, bitbucketTrustTeam, bitbucketWebhookConfiguration, bitbucketWebhookRegistration, booleanParam, brakeman, branch, brokenBuildSuspects, brokenTestsSuspects, buckminster, buildButton, buildDescription, buildDiscarder, buildDiscarders, buildName, buildRetention, buildStatusNameCustomPart, buildUser, buildingTag, builtInNode, cadence, cargo, caseInsensitive, caseSensitive, ccm, certificate, changeRequest, changelog, changeset, checkStyle, checkoutToSubdirectory, choice, choiceParam, clair, clang, clangAnalyzer, clangTidy, cleanWs, clock, cmake, cobertura, codeAnalysis, codeChecker, codeNarc, command, concordionPublisher, configFile, configFileProvider, configMapVolume, containerEnvVar, containerLivenessProbe, containerTemplate, contentReplace, coolflux, cpd, cppCheck, cppLint, createTag, credentials, cron, crumb, cssLint, cucumber, culprits, dart, default, defaultFolderConfiguration, defaultView, deleteComponents, demand, dependenciesFingerprintPublisher, deploy, detekt, developers, diabC, disableConcurrentBuilds, disableResume, discoverReferenceBuild, docFx, docker, dockerCert, dockerLint, dockerServer, dockerTool, dockerfile, downstream, doxygen, drMemory, dscanner, dumb, dupFinder, durabilityHint, dynamicPVC, eclipse, email-ext, embUnit, emptyDirVolume, emptyDirWorkspaceVolume, envInject, envVar, envVars, envVarsFilter, environment, equals, erlc, errorProne, esLint, excludeCategory, excludeFile, excludeMessage, excludeModule, excludeNamespace, excludePackage, excludeType, executor, expression, extendedChoice, extendedEmailPublisher, failed, file, fileContentReplaceConfig, fileContentReplaceItemConfig, fileParam, filePath, findBugs, findbugsPublisher, fingerprint, fingerprints, flake8, flawfinder, flexSdk, frameOptions, freeStyle, freeStyleJob, fromDocker, fromScm, fromSource, fxcop, gcc, gcc3, gcc4, gendarme, ghsMulti, git, gitBranchDiscovery, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubExcludeArchivedRepositories, gitHubExcludeForkedRepositories, gitHubExcludePublicRepositories, gitHubForkDiscovery, gitHubIgnoreDraftPullRequestFilter, gitHubPullRequestDiscovery, gitHubSshCheckout, gitHubTagDiscovery, gitHubTopicsFilter, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitLabBranchDiscovery, gitLabBranchHeadAuthority, gitLabConnection, gitLabForkDiscovery, gitLabOriginDiscovery, gitLabTagDiscovery, gitLabTrustEveryone, gitLabTrustMembers, gitLabTrustNobody, gitLabTrustPermissions, gitTagDiscovery, gitUsernamePassword, github, githubProjectProperty, githubPush, gitlab, gitlabAvatar, gitlabPersonalAccessToken, gitlabSkipNotifications, glassfish2, glassfish3, glassfish4, globalConfigFiles, gnat, gnuFortran, goLint, goVet, gradle, groovy, groovyScript, gtester, hadoLint, headRegexFilter, headWildcardFilter, hostPathVolume, hostPathWorkspaceVolume, http, hyperlink, hyperlinkToModels, iar, iarCstat, ibLinter, ideaInspection, includeCategory, includeFile, includeMessage, includeModule, includeNamespace, includePackage, includeType, infer, inheriting, inheritingGlobal, installSource, intel, invalids, invokerPublisher, isRestartedRun, issues, istanbulCobertura, istanbulCoberturaAdapter, jacoco, jacocoAdapter, jacocoPublisher, java, javaDoc, javadoc, jboss3, jboss4, jboss5, jboss6, jboss7, jcReport, jdk, jdkInstaller, jgit, jgitapache, jgivenPublisher, jnlp, jobBuildDiscarder, jobName, jobNameRegex, jsHint, jsLint, junitParser, junitPublisher, junitTestResultStorage, klocWork, kotlin, ktLint, kubeconfig, kubernetes, label, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, legacySCM, list, local, location, logComment, logRotator, loggedInUsersCanDoAnything, mailer, manualApplication, masterBuild, maven, maven3Mojos, mavenConsole, mavenErrors, mavenGlobalConfig, mavenLinkerPublisher, mavenMojos, mavenWarnings, merge, metrowerksCodeWarrior, mineRepository, modelsim, modernSCM, moveComponents, mrTriggerComment, msBuild, myPy, myView, nagFortran, namedBranchesDifferent, never, newContainerPerStage, nexus, nfsVolume, nfsWorkspaceVolume, node, nodeProperties, nodejs, nodejsci, nonInheriting, none, not, oelintAdv, onFailure, openTasksPublisher, organizationFolder, otDockerLint, override, overrideIndexTriggers, owaspDependencyCheck, paneStatus, parallelsAlwaysFailFast, parameters, parasoftFindings, passed, password, pattern, pcLint, pep8, perforce, perlCritic, permanent, persistentVolumeClaim, persistentVolumeClaimWorkspaceVolume, php, phpCodeSniffer, phpStan, pipeline, pipeline-model, pipeline-model-docker, pipelineGraphPublisher, pipelineMaven, pipelineTriggers, pit, plainText, plugin, pmdParser, podAnnotation, podEnvVar, podLabel, pollSCM, portMapping, prefast, preserveStashes, prismConfiguration, projectNamingStrategy, protoLint, proxy, pruneTags, publishCoverage, puppetLint, pyDocStyle, pyLint, qacSourceCodeAnalyser, qtTranslation, queueItemAuthenticator, quietPeriod, rateLimit, rateLimitBuilds, recipients, recordIssues, requestor, resharperInspectCode, resourceRoot, retainOnlyVariables, rfLint, robocopy, ruboCop, run, runParam, sSHLauncher, sarif, scala, schedule, scmRetryCount, script, scriptApproval, scriptApprovalLink, search, secretEnvVar, secretVolume, security, selectedApplication, shell, simian, simpleBuildDiscarder, skipDefaultCheckout, skipStagesAfterUnstable, skipped, slave, snapshotDependencies, sonarQube, sourceFiles, sourceRegexFilter, sourceWildcardFilter, sphinxBuild, spotBugs, spotbugsPublisher, ssh, sshPublicKey, sshPublisher, sshPublisherDesc, sshTransfer, sshUserPrivateKey, standard, status, string, stringParam, styleCop, sunC, suppressAutomaticTriggering, swapSpace, swiftLint, tag, tagList, taskScanner, taskingVx, teamSlugFilter, text, textParam, tiCss, timestamper, timestamperConfig, timezone, tmpSpace, tnsdl, tomcat4, tomcat5, tomcat6, tomcat7, tomcat8, tomcat9, toolLocation, triggeredBy, trivy, tsLint, unsecured, untrusted, upstream, upstreamDevelopers, url, userSeed, usernameColonPassword, usernamePassword, viewsTabBar, warningsParsers, warningsPlugin, weather, withAnt, withSonarQubeEnv, workspace, x509ClientCert, xUnitDotNet, xlc, xmlLint, xvfb, yamlLint, yuiCompressor, zip, zptLint] or globals [currentBuild, docker, env, manager, params, pipeline, scm]
      at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:216)
      at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
      at jdk.internal.reflect.GeneratedMethodAccessor506.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)
      at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
      at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:158)
      at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161)
      at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165)
      at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
      at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
      at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
      at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
      at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
      at WorkflowScript.run(WorkflowScript:99)
      at __cps.transform__(Native Method)
      at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
      at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
      at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
      at jdk.internal.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
      at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
      at com.cloudbees.groovy.cps.Next.step(Next.java:83)
      at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
      at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)

            Unassigned Unassigned
            waleed_devops waleed atef
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: