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

Option to source hacking/env-setup

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When we install Ansible from source, we need to source the below script to make the ansible environment ready. It would be great if this option is available in 'Configure System'

      git clone https://github.com/ansible/ansible.git --recursive
      cd ansible
      source ./hacking/env-setup

      In the absence of above, Jenkins throw below error.

      01:28:03 + /ansible/bin/ansible-playbook -v /etc/ansible/playbooks/ping_all.yaml
      01:28:03 Traceback (most recent call last):
      01:28:03 File "/ansible/bin/ansible-playbook", line 39, in <module>
      01:28:03 from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
      01:28:03 ImportError: No module named ansible.errors

      As a work around, I have placed 'source ./hacking/env-setup' in /root/.bashrc executed SSH commands on 127.0.0.1.

        Attachments

          Activity

          Hide
          sirot Jean-Christophe Sirot added a comment -

          Thank you for the issue report. I'm going to look at the best solution to fix it.

          Show
          sirot Jean-Christophe Sirot added a comment - Thank you for the issue report. I'm going to look at the best solution to fix it.

            People

            • Assignee:
              sirot Jean-Christophe Sirot
              Reporter:
              vikas027 Vikas Kumar
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: