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

Return Ansible Tower STDERR only

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I really like your plugin, what would be a great addition IMO is a possiblity to return a STDERR or the actuall message of failed playbook.

       

      So it can be possible to use it in GIT comimt comment .

        Attachments

          Activity

          mmt m t created issue -
          Hide
          johnwestcottiv John Westcott added a comment -

          To make sure I am understanding the request, you are running an Ansible Tower job which is failing and you want to access the reason for the failure in a subsequent step. Is that correct? If so, do you have the output from the Tower job displaying in the Build Log? If so, I am wondering if you could scrape the message out of the $BUILD_LOG variable?

          Show
          johnwestcottiv John Westcott added a comment - To make sure I am understanding the request, you are running an Ansible Tower job which is failing and you want to access the reason for the failure in a subsequent step. Is that correct? If so, do you have the output from the Tower job displaying in the Build Log? If so, I am wondering if you could scrape the message out of the $BUILD_LOG variable?
          johnwestcottiv John Westcott made changes -
          Field Original Value New Value
          Assignee John Westcott [ johnwestcottiv ] m t [ mmt ]
          bigming1712 big ming made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          bigming1712 big ming made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          Hide
          mmt m t added a comment -

          Yes you are right, I would like to use the reason for failure in the "post build step" by adding it to gitlab as a comment.

          Ideally it would be greate if you can get something like $TowerFaildTask aviable to other plugins.

          BTW do you know where does the Tower stores the logs in the DB? I was trying to find that so I can parse it somehow, however without luck. How are you pulling the Tower Log?

          Show
          mmt m t added a comment - Yes you are right, I would like to use the reason for failure in the "post build step" by adding it to gitlab as a comment. Ideally it would be greate if you can get something like $TowerFaildTask aviable to other plugins. BTW do you know where does the Tower stores the logs in the DB? I was trying to find that so I can parse it somehow, however without luck. How are you pulling the Tower Log?

            People

            Assignee:
            mmt m t
            Reporter:
            mmt m t
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: