hudson.AbortException: The ansible playbook build step requires to be launched on a node

Jenkins JIRA | Max Kovgan | 7 months ago
  1. 0

    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}

    Jenkins JIRA | 7 months ago | Max Kovgan
    hudson.AbortException: The ansible playbook build step requires to be launched on a node
  2. 0

    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}

    Jenkins JIRA | 7 months ago | Max Kovgan
    hudson.AbortException: The ansible playbook build step requires to be launched on a node
  3. 0

    Can't set PYTHONPATH in Jenkins for Ansible plugin?

    Stack Overflow | 2 months ago | David Ham
    hudson.AbortException: Ansible playbook execution failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins Pipeline ansible plugin: Ansible-playbook fails

    Stack Overflow | 1 month ago | David Ham
    hudson.AbortException: Ansible playbook execution failed
  6. 0

    [JIRA] [ansible-plugin] (JENKINS-34633) ansible-plugin with pipeline groovy multiple misbehaviours

    Google Groups | 7 months ago | ma...@devopsent.biz (JIRA)
    hudson.AbortException: The ansible playbook build step requires to be launched on a node

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.AbortException

      The ansible playbook build step requires to be launched on a node

      at org.jenkinsci.plugins.ansible.AnsibleAdHocCommandBuilder.perform()
    2. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1$1.call
      1. org.jenkinsci.plugins.ansible.AnsibleAdHocCommandBuilder.perform(AnsibleAdHocCommandBuilder.java:158)
      2. org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:68)
      3. org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59)
      4. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49)
      4 frames
    3. Hudson
      ACL.impersonate
      1. hudson.security.ACL.impersonate(ACL.java:213)
      1 frame
    4. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1.run
      1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames