Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62134

java.io.IOException: Process working directory doesn't exist!

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ansible-plugin
    • None

      Hi, I am new to Jenkins. I created a simple pipeline, I get the below error when I start the build process. the ansible-playbook works fine if I run it as a freestyle project.

       
      > Deployin SNMP on ASA and Router ...[Pipeline] ansiblePlaybook[SNMP-PIPE] $ ansible-playbook /Users/saurabh/Ansible/Ansible-Roles/Jenkins-Project-1/Main.yml -i /Users/saurabh/Ansible/Ansible-Roles/Jenkins-Project-1/hosts
      FATAL: command execution failed
      java.io.IOException: Process working directory '/Users/Shared/Jenkins/Home/workspace/SNMP-PIPE' doesn't exist!
      at hudson.Proc$LocalProc.<init>(Proc.java:250)
      at hudson.Proc$LocalProc.<init>(Proc.java:221)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:936)
      at hudson.Launcher$ProcStarter.start(Launcher.java:454)
      at hudson.Launcher$ProcStarter.join(Launcher.java:465)
      at org.jenkinsci.plugins.ansible.CLIRunner.execute(CLIRunner.java:49)
      at org.jenkinsci.plugins.ansible.AbstractAnsibleInvocation.execute(AbstractAnsibleInvocation.java:290)
      at org.jenkinsci.plugins.ansible.AnsiblePlaybookInvocation.execute(AnsiblePlaybookInvocation.java:31)
      at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:261)
      at org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep$AnsiblePlaybookExecution.run(AnsiblePlaybookStep.java:400)
      at org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep$AnsiblePlaybookExecution.run(AnsiblePlaybookStep.java:321)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      at hudson.security.ACL.impersonate(ACL.java:359)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      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)
       

       

            sirot Jean-Christophe Sirot
            saurabhksingh Saurabh Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: