Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not A Defect
-
None
-
Jenkins ver. 2.32.3
Ansible plugin v0.6.2
ansible 1.7.2
Description
Maybe this is a known issue, but I can't run any playbook that uses roles.
It seems like the plugin is somehow finding the role task file and is trying to construct an incorrect path to execute it, instead of the main playbook file.
Here is a simple reproduction: https://github.com/orzarchi/ansible-plugin-repro
Here is the pipeline to use with the reproduction: https://raw.githubusercontent.com/orzarchi/ansible-plugin-repro/master/pipeline.txt
Running it results in the following error:
[Deploy service] $ ansible-playbook repro.yml -i inventory.ini
ERROR: file could not read: /var/jenkins_home/workspace/Deploy service/'/var/jenkins_home/workspace/Deploy service/roles/testrole/tasks/main.yml'
FATAL: command execution failed
Code changed in jenkins
User: Felix Belzunce Arcos
Path:
src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
src/main/java/hudson/plugins/active_directory/LDAPSearchBuilder.java
http://jenkins-ci.org/commit/active-directory-plugin/bdcfc6a63f73d344b500627f2db0d982aec7ba54
Log:
Merge pull request #67 from fbelzunc/
JENKINS-42687[FIXED JENKINS-42686] Better handle of PartialResultException
Compare: https://github.com/jenkinsci/active-directory-plugin/compare/943701dbf3d5...bdcfc6a63f73