• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ansible-tower-plugin
    • None

      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 .

          [JENKINS-50370] Return Ansible Tower STDERR only

          m t created issue -

          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?

          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?
          John Westcott made changes -
          Assignee Original: John Westcott [ johnwestcottiv ] New: m t [ mmt ]
          big ming made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          big ming made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          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?

          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?

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

              Created:
              Updated: