No such DSL method 'isCI' found among steps

555 views
Skip to first unread message

Krzysztof Sobkowiak

unread,
Mar 19, 2017, 6:17:40 PM3/19/17
to fabric8

Hi

I'm using Gofabric8 on Minishift 0.9.0. Sometimes, while trying to create an application using Spring Boot or Microservice template, I'm getting following error shortly after the pipeline starts building

> /usr/bin/git checkout -b master bf799a532a4c8ad70e341c35cbbad5f7a58cd45a

[Pipeline] }

[Pipeline] // node

[Pipeline] }

[Pipeline] // podTemplate

[Pipeline] End of Pipeline

java.lang.NoSuchMethodError: No such DSL method 'isCI' found among steps [acceptGitLabMR, addGitLabMRComment, approveReceivedEvent, approveRequestedEvent, archive, bat, build, buildImage, catchError, checkout, container, createEvent, deleteDir, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerLabel, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findFiles, getContext, git, gitlabBuilds, gitlabCommitStatus, hubot, hubotApprove, hubotProject, input, isUnix, kubernetesApply, libraryResource, load, mail, milestone, node, parallel, parameterOrDefault, podTemplate, properties, pushImage, pwd, readFile, readManifest, readMavenPom, readProperties, readTrusted, readYaml, retry, script, sh, sleep, stage, stash, step, svn, tagImage, timeout, timestamps, tool, touch, unarchive, unstash, unzip, updateGitlabCommitStatus, waitUntil, withContext, withCredentials, withDockerContainer, withDockerRegistry, withDockerServer, withEnv, withPod, wrap, writeFile, writeMavenPom, ws, zip] or symbols [all, always, ant, antFromApache, antOutcome, antTarget, any, apiToken, architecture, archiveArtifacts, artifactManager, batchFile, booleanParam, branch, buildButton, buildDiscarder, caseInsensitive, caseSensitive, choice, choiceParam, clock, cloud, command, configMapVolume, containerEnvVar, containerTemplate, cron, crumb, defaultView, demand, disableConcurrentBuilds, docker, dockerfile, downloadSettings, downstream, dumb, emptyDirVolume, envVars, environment, expression, file, fileParam, filePath, fingerprint, frameOptions, freeStyle, freeStyleJob, git, hostPathVolume, hyperlink, hyperlinkToModels, installSource, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobName, junit, label, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, list, local, location, logRotator, loggedInUsersCanDoAnything, masterBuild, maven, maven3Mojos, mavenErrors, mavenMojos, mavenWarnings, myView, nfsVolume, nodeProperties, nonStoredPasswordParam, none, overrideIndexTriggers, paneStatus, parameters, password, pattern, persistentVolumeClaim, pipeline-model, pipelineTriggers, plainText, plugin, podEnvVar, pollSCM, projectNamingStrategy, proxy, queueItemAuthenticator, quietPeriod, run, runParam, schedule, scmRetryCount, search, secretVolume, security, shell, skipDefaultCheckout, slave, stackTrace, standard, status, string, stringParam, swapSpace, text, textParam, tmpSpace, toolLocation, unsecured, upstream, usernameColonPassword, usernamePassword, viewsTabBar, weather, zfs, zip] or globals [approve, bumpFabric8Versions, clientsNode, clientsTemplate, combineTemplates, currentBuild, deleteGitHubBranch, deployProject, deployRemoteKubernetes, deployRemoteOpenShift, docker, dockerNode, dockerTemplate, dropProject, dropRelease, env, genWebsiteDocs, getKubernetesJson, getNewVersion, gitTag, goNode, goRelease, goTemplate, kubernetes, mavenCanaryRelease, mavenIntegrationTest, mavenNode, mavenTemplate, mavenUpdateOrganisationDependencies, mergeAndWaitForPullRequest, params, performCanaryRelease, pipeline, promoteArtifacts, promoteImages, pushParentPomVersionChangePR, pushPomPropertyChangePR, pushPomPropertyChangePROrganisation, releaseNode, releaseProject, releaseTemplate, restGetURL, runSystemTests, scm, stageExtraImages, stageProject, tagImages, updatePropertyVersion, waitUntilArtifactSyncedWithCentral, waitUntilPullRequestMerged]

at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:149)

at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:108)

at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)

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:151)

at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21)

at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115)

at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:103)

at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149)

at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146)

at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16)

at WorkflowScript.run(WorkflowScript:36)

at mavenNode.call(/var/jenkins_home/jobs/demo/builds/1/libs/github.com/fabric8io/fabric8-pipeline-library/vars/mavenNode.groovy:10)

at ___cps.transform___(Native Method)

at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)

at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)

at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixName(FunctionCallBlock.java:77)

at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

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:58)

at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)

at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)

at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)

at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)

at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)

at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)

at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:163)

at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)

at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)

at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)

at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)

at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:63)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)

at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Finished: FAILURE

Any ideas what's wrong? I have to delete the whole Gofabric8 instance and start it again.

Kindly regards
Krzysztof




--
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)

Krzysztof Sobkowiak

unread,
Mar 19, 2017, 7:18:49 PM3/19/17
to fabric8
It has been already reported here https://github.com/fabric8io/fabric8/issues/6808
Reply all
Reply to author
Forward
0 new messages