当我在jenkins中运行多分支管道代码时,出现以下Jenkinsfile
以下错误:
pipeline {
agent none
// ...
java.lang.NoSuchMethodError:在步骤[归档,bat,build,catchError,checkout,deleteDir,dir,echo,emailext,emailextrecipients,错误,fileExists,getContext,git,输入, isUnix,libraryResource,负载,邮件,里程碑,节点,并行,属性,pwd,readFile,readTrusted,重试,sh,睡眠,阶段,存储,步骤,svn,超时,时间戳,工具,未归档,取消存储,waitUntil,withContext, withCredentials,withEnv,wrap,writeFile,ws]或符号[所有,始终,ant,antFromApache,antOutcome,antTarget,apiToken,体系结构,archiveArtifacts,artifactManager,batchFile,booleanParam,buildButton,buildDiscarder,caseInsensitive,caseSensitive,select,choiceParam,clock ,云,命令,cron,面包屑,defaultView,需求,disableConcurrentBuilds,downloadSettings,下游,哑,envVars,文件,fileParam,filePath,指纹,frameOptions,freeStyle,freeStyleJob,git,超链接,超链接ToModels,installSource,jdk,jdkInstaller,jgit j gitapache,jnlp,jobName,junit,lastDuration,lastFailure,lastGrantedAuthorities,lastStable,lastSuccess,legacy,list,local,location,logRotator,loginInUsersCanDoAnything,masterBuild,maven,maven3Mojos,mavenErrors,mavenMojos,maven NonProperty,mavenWarningPros, overlayIndexTriggers,panelStatus,参数,密码,模式,pipelineTriggers,plainText,插件,projectNamingStrategy,代理,queueItemAuthenticator,quietPeriod,run,runParam,schedule,scm,scmRetryCount,search,security,shell,slave,stackTrace,standard,state,string, stringParam,swapSpace,text,textParam,tmpSpace,toolLocation,不安全,上游,usernameColonPassword,usernamePassword,viewsTabBar,weather,zfs,zip]或全局变量[currentBuild,env,params,scm]
我的管道代码或jenkins配置可能出什么问题了?
答案 0 :(得分:2)
您似乎正在运行旧版本的Pipeline插件集合(通过比版本2.5更早的workflow-aggregator
插件提供),因此尚未安装实现声明性管道的插件:“ Pipeline:Declarative” { {3}}