在官网运行pipeline的hello world时,按照官网流程,构建 流水线 项目走完之后,发现报错,走不通。异常log如下:
Started by user admin Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] End of Pipeline java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps [acceptGitLabMR, addGitLabMRComment, build, checkout, findFiles, git, gitlabBuilds, gitlabCommitStatus, junit, load, nodesByLabel, parallel, properties, readCSV, readJSON, readManifest, readMavenPom, readProperties, readTrusted, readYaml, resolveScm, setGitHubPullRequestStatus, sha1, tee, tm, touch, unzip, updateGitlabCommitStatus, withCredentials, writeCSV, writeJSON, writeMavenPom, writeYaml, zip] or symbols [Number, Open, all, allowRunOnStatus, always, apiToken, architecture, archiveArtifacts, artifactManager, asIsGITScm, authorizationMatrix, batchFile, booleanParam, branchCreated, branches, buildButton, buildDiscarder, caseInsensitive, caseSensitive, certificate, choice, choiceParam, clock, close, cloud, command, commentPattern, commit, commitChanged, commitMessagePattern, created, credentials, cron, crumb, defaultView, deleted, demand, description, disableConcurrentBuilds, disableResume, docker-image-build, docker-image-producer, dockerCert, dockerEnvVars, dockerSettings, dockerShell, downloadSettings, downstream, dumb, durabilityHint, envVars, file, fileParam, filePath, fingerprint, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitHub, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubEvents, gitHubForkDiscovery, gitHubPRStatus, gitHubPlugin, gitHubTagDiscovery, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitLabConnection, github, githubAccessToken, githubBranches, githubPRAddLabels, githubPRClosePublisher, githubPRComment, githubPRMessage, githubPRRemoveLabels, githubPRStatusPublisher, githubPlugin, g