Thanks Indra. We'll look with your suggested solution.

On Wednesday, February 22, 2017 at 2:22:47 AM UTC+8, Indra Gunawan 
(ingunawa) wrote:
>
> Check first if you have installed the saltstack-plugin version that 
> supports pipeline.  Please verify that the plugin with pipeline support 
> dependencies are met.
>
> Observe anything that might be printed out in Jenkins log file related to 
> saltstack-plugin.
>
>  
>
> -Indra
>
>  
>
>  
>
> *From: *<[email protected] <javascript:>> on behalf of Rustan 
> Capal <[email protected] <javascript:>>
> *Reply-To: *"[email protected] <javascript:>" <
> [email protected] <javascript:>>
> *Date: *Tuesday, February 21, 2017 at 10:01 AM
> *To: *Jenkins Users <[email protected] <javascript:>>
> *Subject: *Re: java.lang.NoSuchMethodError: No such DSL method 'salt' 
> found among steps
>
>  
>
> Saltstack Plugin Installed: 
> https://wiki.jenkins-ci.org/display/JENKINS/saltstack-plugin
>
>
> On Wednesday, February 22, 2017 at 1:54:17 AM UTC+8, Rustan Capal wrote: 
>
> Hi Everyone,
>
> Can anyone tell me what I'm missing here? Salt API already installed. 
> Jenkins version: 2.32.2
>
>
>
> *[PIPELINE SCRIPT] *import groovy.json.*
>
> node() {
>   saltresult = salt authtype: 'pam', clientInterface: local(arguments: 
> '"uname -r"', blockbuild: true, 
>     function: 'cmd.run', jobPollTime: 16, target: '*', targetType: 
> 'glob'), 
>     credentialsId: 'c58c819b-89f2-4400-bb94-1ec79920adb4', servername: '
> http://10.10.214.233:8181'
>   def prettyJson = JsonOutput.prettyPrint(saltresult)
>   println(prettyJson)
> }
>
>
> *[BUILD OUTPUT]*
>
> [Pipeline] node
>
> Running on master in /var/lib/jenkins/workspace/hello-world-pipeline-saltstack
>
> [Pipeline] {
>
> [Pipeline] }
>
> [Pipeline] // node
>
> [Pipeline] End of Pipeline
>
> java.lang.NoSuchMethodError: No such DSL method 'salt' found among steps 
> [ansiColor, archive, bat, build, catchError, checkout, deleteDir, dir, 
> dockerFingerprintFrom, dockerFingerprintRun, echo, emailext, 
> emailextrecipients, error, exws, exwsAllocate, fileExists, findFiles, 
> getContext, git, input, isUnix, libraryResource, load, mail, milestone, node, 
> parallel, properties, pwd, readFile, readManifest, readMavenPom, 
> readProperties, readTrusted, readYaml, retry, sh, sleep, stage, stash, step, 
> svn, timeout, timestamps, tool, touch, unarchive, unstash, unzip, waitUntil, 
> withContext, withCredentials, withDockerContainer, withDockerRegistry, 
> withDockerServer, withEnv, wrap, writeFile, writeMavenPom, ws, zip] or 
> symbols [all, always, ant, antFromApache, antOutcome, antTarget, apiToken, 
> architecture, archiveArtifacts, artifactManager, batchFile, booleanParam, 
> buildButton, buildDiscarder, caseInsensitive, caseSensitive, choice, 
> choiceParam, clock, cloud, command, configFile, configFileProvider, cron, 
> crumb, defaultView, demand, disableConcurrentBuilds, downloadSettings, 
> downstream, dumb, envVars, fastestReadSpeed, fastestWriteSpeed, file, 
> fileParam, filePath, fingerprint, frameOptions, freeStyle, freeStyleJob, git, 
> hyperlink, hyperlinkToModels, installSource, jdk, jdkInstaller, jgit, 
> jgitapache, jnlp, jobName, junit, lastDuration, lastFailure, 
> lastGrantedAuthorities, lastStable, lastSuccess, legacy, list, local, 
> location, logRotator, loggedInUsersCanDoAnything, masterBuild, maven, 
> maven3Mojos, mavenErrors, mavenMojos, mavenWarnings, mostUsableSpace, myView, 
> nodeProperties, nonStoredPasswordParam, none, overrideIndexTriggers, 
> paneStatus, parameters, password, pattern, pipelineTriggers, plainText, 
> plugin, pollSCM, projectNamingStrategy, proxy, queueItemAuthenticator, 
> quietPeriod, run, runParam, schedule, scmRetryCount, search, security, shell, 
> slave, stackTrace, standard, status, string, stringParam, swapSpace, text, 
> textParam, tmpSpace, toolLocation, unsecured, upstream, 
> usernameColonPassword, usernamePassword, viewsTabBar, weather, zfs, zip] or 
> globals [currentBuild, docker, env, params, scm, simpleBuild]
>
>       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.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149)
>
>       at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146)
>
>       at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:123)
>
>       at 
> com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16)
>
>       at WorkflowScript.run(WorkflowScript:4)
>
>       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.GeneratedMethodAccessor429.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.GeneratedMethodAccessor213.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:324)
>
>       at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:78)
>
>       at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:236)
>
>       at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:224)
>
>       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
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/8d99668c-591b-4629-ad5d-8a72e584d652%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/8d99668c-591b-4629-ad5d-8a72e584d652%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0e193b0b-48b8-4302-b5d8-b1e0fdabf0ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to