# https://docs.ansible.com/ansible/2.9\_ja/modules/jenkins\_job\_info\_module.html not printing info for mutlpipleine jobs

**URL:** <https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146>\
**Category:** Ansible Project\
**Created:** [June 22, 2023, 6:42pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146 "2023-06-22T18:42:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [June 22, 2023, 6:42pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146/1 "2023-06-22T18:42:22Z")

</div>

here is my jenkins info play

- name: Print the jobname  
jenkins\_job\_facts:  
name: ‘build.teamCI’  
user: [nchitturi@domain.com](mailto:nchitturi@domain.com)  
token:   
url: [https://build.com](https://build.com)  
register: my\_jenkins\_job\_info  
tags: jenkinsjob2

the above play is printing info for jobs which are not multipipline. if I give multipipeline jobs its failing.  
Is there any work around or am I missing anything…

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [June 22, 2023, 7:00pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146/2 "2023-06-22T19:00:14Z")

</div>

My bad corrected the module name

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [June 22, 2023, 8:53pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146/3 "2023-06-22T20:53:54Z")

</div>

this is the failure message I get  
fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Traceback (most recent call last):\n File "/home/deploy-user/.ansible/tmp/ansible-tmp-1687467074.902748-21679-1695874315533/AnsiballZ\_jenkins\_job\_info.py", line 100, in \n \_ansiballz\_main()\n File "/home/deploy-user/.ansible/tmp/ansible-tmp-1687467074.902748-21679-1695874315533/AnsiballZ\_jenkins\_job\_info.py", line 92, in \_ansiballz\_main\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\n File "/home/deploy-user/.ansible/tmp/ansible-tmp-1687467074.902748-21679-1695874315533/AnsiballZ\_jenkins\_job\_info.py", line 41, in invoke\_module\n run\_name=‘ **main** ’, alter\_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run\_module\n return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in \_run\_module\_code\n mod\_name, mod\_spec, pkg\_name, script\_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in \_run\_code\n exec(code, run\_globals)\n File "/tmp/ansible\_jenkins\_job\_info\_payload\_k3zaq5p6/ansible\_jenkins\_job\_info\_payload.zip/ansible\_collections/community/general/plugins/modules/jenkins\_job\_info.py", line 262, in \n File "/tmp/ansible\_jenkins\_job\_info\_payload\_k3zaq5p6/ansible\_jenkins\_job\_info\_payload.zip/ansible\_collections/community/general/plugins/modules/jenkins\_job\_info.py", line 252, in main\n File "/tmp/ansible\_jenkins\_job\_info\_payload\_k3zaq5p6/ansible\_jenkins\_job\_info\_payload.zip/ansible\_collections/community/general/plugins/modules/jenkins\_job\_info.py", line 204, in get\_jobs\nKeyError: ‘color’\n”,  
“module\_stdout”: “”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [June 23, 2023, 2:11pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146/4 "2023-06-23T14:11:20Z")

</div>

Can some one please help  
With this

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [June 23, 2023, 4:35pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146/5 "2023-06-23T16:35:32Z")

</div>

Hi Narmada,

It seems that jenkins\_job\_info module has a bug. You might want to file a bug using [https://github.com/ansible-collections/community.general/issues/new/choose](https://github.com/ansible-collections/community.general/issues/new/choose). A maintainer or community member might help you out.

Sadly I don’t have Jenkins server or access to one.

---

<div class="post-metadata">

**Author:** ![Narmada\_Karthika](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Narmada\_Karthika](https://forum.ansible.com/u/Narmada_Karthika)\
**Post date:** [June 23, 2023, 5:05pm UTC](https://forum.ansible.com/t/https-docs-ansible-com-ansible-2-9-ja-modules-jenkins-job-info-module-html-not-printing-info-for-mutlpipleine-jobs/38146/6 "2023-06-23T17:05:10Z")

</div>

thank you, I will do that…
