Jenkins 之 pipeline注意点 --- No such DSL method 'pipeline' found among steps

在尝试按照Jenkins官方文档运行Pipeline HelloWorld时遇到错误:No such DSL method 'pipeline' found among steps。解决方案是检查并安装缺失的Pipeline插件,然后重启Jenkins服务以使更改生效。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在官网运行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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值