Seems like the config.xml is not well formatted.
On Mon, Jun 12, 2023 at 6:02 PM Narmada Karthika <[email protected]>
wrote:
> I am trying to create a jenkins job using ansible
> "community.general.jenkins_job", but I am getting below error. Also I used
> existing job config.xml
>
> The full traceback is:
> Traceback (most recent call last):
> File
> "/tmp/ansible_community.general.jenkins_job_payload_jul5utxw/ansible_community.general.jenkins_job_payload.zip/ansible_collections/community/general/plugins/modules/jenkins_job.py",
> line 313, in create_job
> File
> "/tmp/ansible_community.general.jenkins_job_payload_jul5utxw/ansible_community.general.jenkins_job_payload.zip/ansible_collections/community/general/plugins/modules/jenkins_job.py",
> line 245, in get_config
> File
> "/tmp/ansible_community.general.jenkins_job_payload_jul5utxw/ansible_community.general.jenkins_job_payload.zip/ansible_collections/community/general/plugins/modules/jenkins_job.py",
> line 350, in job_config_to_string
> File "/usr/lib64/python3.6/xml/etree/ElementTree.py", line 1314, in XML
> parser.feed(text)
> File "<string>", line None
> xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1,
> column 0
> fatal: [localhost]: FAILED! => {
> "changed": false,
> "invocation": {
> "module_args": {
> "config": "/home/teamci-deploy-user/gitrepo/jenkins/
> build.com/config.xml",
> "enabled": null,
> "name": "axwarpsynctest",
> "password": null,
> "state": "present",
> "token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
> "url": "https://build.com",
> "user": "[email protected]",
> "validate_certs": true
> }
> },
> "msg": "Unable to create job, not well-formed (invalid token): line 1,
> column 0 for https://build.com"
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2a8ac6a5-c01b-44ff-abff-fca38ad9cbc8n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2a8ac6a5-c01b-44ff-abff-fca38ad9cbc8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
Thanks,
Abhijeet Kasurde
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAFwWkHowVo%2BDEiTKDzASOiOvwbvR3o7z1gi0KDoh%2B2YBHyUEkg%40mail.gmail.com.