We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I'm trying to use batch mode in pipeline, but it's not working(working from freestyle project). pipeline fragment:
saltresult = salt authtype: 'ldap', clientInterface: local_batch(batchSize: 5, function: 'test.ping', target: "I@group:pc and I@region:cn", targettype: 'compound'), credentialsId: salt_cred, servername: salt_url
output:
java.lang.NoSuchMethodError: No such DSL method 'local_batch' found among steps [acceptGitLabMR, addGitLabMRComment, ansiColor, archive, bat, build, catchError, checkout, deleteDir, dir, dockerFingerprintFrom, dockerFingerprintRun, dockerNode, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findFiles, getContext, git, gitlabBuilds, gitlabCommitStatus, httpRequest, input, isUnix, jiraComment, jiraIssueSelector, jiraSearch, junit, library, libraryResource, load, lock, mail, milestone, node, nodesByLabel, p4, p4approve, p4publish, p4sync, p4tag, p4unshelve, parallel, powershell, properties, publishHTML, publishIssues, pwd, readFile, readJSON, readManifest, readMavenPom, readProperties, readTrusted, readYaml, release, resolveScm, retry, salt, scanForIssues, script, sh, sha1, slackSend, sleep, sshCommand, sshGet, sshPut, sshRemove, sshScript, sshagent, stage, stash, step, svn, tee, timeout, tm, tool, touch, unarchive, unstash, unzip, updateGitlabCommitStatus, validateDeclarativePipeline, waitUntil, withContext, withCredentials, withDockerContainer, withDockerRegistry, withDockerServer, withEnv, wrap, writeFile, writeJSON, writeMavenPom, writeYaml, ws, zip] or symbols [absolute, acuCobol, ajc, all, allOf, always, androidLintParser, ansibleLint, ant, antFromApache, antOutcome, antPath, antTarget, any, anyOf, apiToken, approve, architecture, archiveArtifacts, armCc, artifactManager, attach, authorizationMatrix, autoClean, batch, batchFile, bitbucket, booleanParam, branch, brokenBuildSuspects, brokenTestsSuspects, buckminster, buildButton, buildDiscarder, buildParameter, buildingTag, bzt, cadence, caseInsensitive, caseSensitive, ccm, certificate, changeRequest, changelog, changeset, checkStyle, checkoutToSubdirectory, choice, choiceParam, clang, clangTidy, cleanWs, cleanup, clientSpec, clock, cloud, cobertura, coberturaAdapter, codeAnalysis, codeNarc, command, coolflux, copyArtifactPermission, copyArtifacts, coverity, coverityResults, cpd, cppCheck, cppLint, credentials, cron, crumb, cssLint, culprits, defaultView, demand, depotSource, detekt, developers, diabC, disableConcurrentBuilds, disableResume, docFx, docker, dockerCert, dockerfile, downloadSettings, downstream, doxygen, drMemory, dumb, dupFinder, durabilityHint, eclipse, envVars, environment, equals, erlc, errorProne, esLint, excludeCategory, excludeFile, excludeMessage, excludeModule, excludeNamespace, excludePackage, excludeType, expression, file, fileParam, filePath, findBugs, fingerprint, fishEye, flake8, flexSdk, flushOnly, forceClean, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, ftpPublisher, fxcop, gcc3, gcc4, gendarme, ghsMulti, git, gitLabConnection, github, githubPush, gitlab, globalLib, gnat, gnuFortran, goLint, goVet, graphClean, graphSource, groovyScript, headRegexFilter, headWildcardFilter, hook, hyperlink, hyperlinkToModels, iar, ideaInspection, includeCategory, includeFile, includeMessage, includeModule, includeNamespace, includePackage, includeType, incremental, infer, inheriting, inheritingGlobal, installSource, intel, invalids, isRestartedRun, istanbulCobertura, istanbulCoberturaAdapter, jacoco, jacocoAdapter, java, javaDoc, jcReport, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobName, jsHint, jsLint, klocWork, ktLint, label, lastCompleted, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, lastSuccessful, latestSavedBuild, legacy, legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, manualSpec, masterBuild, matrix, maven, maven3Mojos, mavenConsole, mavenErrors, mavenMojos, mavenWarnings, metrowerksCodeWarrior, modernSCM, msBuild, multiBranch, multiGraph, multiStreams, multiSwarm, myPy, myView, nagFortran, newContainerPerStage, node, nodeProperties, nonInheriting, nonStoredPasswordParam, none, not, note, openGrok, overrideIndexTriggers, p4Trigger, p4Web, p4cleanup, p4groovy, p4sync, paneStatus, parallel, parallelsAlwaysFailFast, parameters, password, pathFilter, pattern, pcLint, pep8, perfReport, perforce, performanceReport, performanceTest, perlCritic, permalink, permanent, php, phpCodeSniffer, pipeline-model, pipelineTriggers, pit, plainText, plugin, pmdParser, pollSCM, prefast, preserveStashes, previewOnly, previous, projectNamingStrategy, proxy, publish, publishCoverage, puppetLint, pyDocStyle, pyLint, qacSourceCodeAnalyser, queueItemAuthenticator, quietPeriod, rateLimitBuilds, recipients, recordIssues, relative, remotingCLI, requestor, resharperInspectCode, rfLint, robocopy, ruboCop, run, runParam, runner, scala, schedule, scmRetryCount, scriptApprovalLink, search, security, shell, shelve, simian, skipDefaultCheckout, skipStagesAfterUnstable, slackNotifier, slave, sonarQube, sourceFiles, sourceRegexFilter, sourceWildcardFilter, specFileSpec, specific, sphinxBuild, spotBugs, ssh, sshPublisher, sshPublisherDesc, sshTransfer, sshUserPrivateKey, stackTrace, standard, staticSpec, status, streamSource, streamSpec, string, stringParam, styleCop, submit, subset, sunC, swapSpace, swarm, swiftLint, syncOnly, tag, tagList, taskScanner, taskingVx, templateSource, templateSpec, testCase, text, textParam, tiCss, ticket, ticketMode, tmpSpace, tnsdl, toolLocation, triggeredBy, trust, tsLint, unsecured, unshelve, upstream, upstreamDevelopers, user, userFilter, userSeed, usernameColonPassword, usernamePassword, validatingString, viewFilter, viewPattern, viewsTabBar, warnings, warningsParsers, weather, withAnt, withCoverityEnv, workspace, xlc, xmlLint, yamlLint, yuiCompressor, zfs, zip, zptLint] or globals [currentBuild, docker, env, params, pipeline, scm] at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:199) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at sun.reflect.GeneratedMethodAccessor1215.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) 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:157) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:155) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) at WorkflowScript.run(WorkflowScript:11) 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.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor259.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.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55) at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45) at sun.reflect.GeneratedMethodAccessor260.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:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:121) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:182) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Finished: FAILURE
salt 2018.3.3 jenkins 2.150.3 plugin: 3.2.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi. I'm trying to use batch mode in pipeline, but it's not working(working from freestyle project).
pipeline fragment:
output:
salt 2018.3.3
jenkins 2.150.3
plugin: 3.2.1
The text was updated successfully, but these errors were encountered: