hudson.AbortException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h3. environment # server side: #* Jenkins {{2.1}}, pipeline plugin: {{2.1}}, ansible {{2.0}} #* Java: oracle jdk8: {{build 1.8.0_91-b14}} #* os: {{Ubuntu 14.04.4 LTS}} # client side: #* Google chrome Version 50.0.2661.94 (64-bit) #* Fedora 23 h3. list of issues: # when you want to generate snippet for eitherplaybook or ad-hoc command, the groovy generated does not have {{unbufferedOutput}} flag, no matter the value #* *reproducing*: click "Snippet Generator", Sample step: "General build step", in "Build Step" choose either ansible playbook or ad-hoc, and play with unbuffered flag, pressing "Generate" after each change - does not affect groovy # I have created a "deep" closure of: {code} node('master') { withCredentials([[ $class : 'AmazonWebServicesCredentialsBinding', credentialsId : creds_id_amazon, accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY' ]]) { dir('dnoc'){ wrap([$class: 'TimestamperBuildWrapper']){ wrap([$class: 'AnsiColorBuildWrapper', colorMapName: "xterm"]){ // call to ansible via: def result = step([ $class : 'AnsibleAdHocCommandBuilder', //.... ]) } } } } } {code} Fails with: {code} [Pipeline] step 23:42:14 FATAL: command execution failed 23:42:14 hudson.AbortException: The ansible playbook build step requires to be launched on a node 23:42:14 at org.jenkinsci.plugins.ansible.AnsibleAdHocCommandBuilder.perform(AnsibleAdHocCommandBuilder.java:158) 23:42:14 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:68) 23:42:14 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) 23:42:14 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) 23:42:14 at hudson.security.ACL.impersonate(ACL.java:213) 23:42:14 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) 23:42:14 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 23:42:14 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 23:42:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 23:42:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 23:42:14 at java.lang.Thread.run(Thread.java:745) [Pipeline] } {code}
    via by Max Kovgan,
  • h3. environment # server side: #* Jenkins {{2.1}}, pipeline plugin: {{2.1}}, ansible {{2.0}} #* Java: oracle jdk8: {{build 1.8.0_91-b14}} #* os: {{Ubuntu 14.04.4 LTS}} # client side: #* Google chrome Version 50.0.2661.94 (64-bit) #* Fedora 23 h3. list of issues: # when you want to generate snippet for eitherplaybook or ad-hoc command, the groovy generated does not have {{unbufferedOutput}} flag, no matter the value #* *reproducing*: click "Snippet Generator", Sample step: "General build step", in "Build Step" choose either ansible playbook or ad-hoc, and play with unbuffered flag, pressing "Generate" after each change - does not affect groovy # I have created a "deep" closure of: {code} node('master') { withCredentials([[ $class : 'AmazonWebServicesCredentialsBinding', credentialsId : creds_id_amazon, accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY' ]]) { dir('dnoc'){ wrap([$class: 'TimestamperBuildWrapper']){ wrap([$class: 'AnsiColorBuildWrapper', colorMapName: "xterm"]){ // call to ansible via: def result = step([ $class : 'AnsibleAdHocCommandBuilder', //.... ]) } } } } } {code} Fails with: {code} [Pipeline] step 23:42:14 FATAL: command execution failed 23:42:14 hudson.AbortException: The ansible playbook build step requires to be launched on a node 23:42:14 at org.jenkinsci.plugins.ansible.AnsibleAdHocCommandBuilder.perform(AnsibleAdHocCommandBuilder.java:158) 23:42:14 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:68) 23:42:14 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) 23:42:14 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) 23:42:14 at hudson.security.ACL.impersonate(ACL.java:213) 23:42:14 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) 23:42:14 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 23:42:14 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 23:42:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 23:42:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 23:42:14 at java.lang.Thread.run(Thread.java:745) [Pipeline] } {code}
    via by Max Kovgan,
  • AnsiblePlaybook Jenkins Pipeline
    via Stack Overflow by Joan
    ,
    • hudson.AbortException: The ansible playbook build step requires to be launched on a node at org.jenkinsci.plugins.ansible.AnsibleAdHocCommandBuilder.perform(AnsibleAdHocCommandBuilder.java:158) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:68) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) 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)
    No Bugmate found.