{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6249","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6249/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6249/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6249/events","html_url":"https://github.com/travis-ci/travis-ci/issues/6249","id":163397587,"number":6249,"title":"Request for post successful tests life cycle event (`after_build`) that still fails on error","user":{"login":"KeithPepin-MW","id":18315036,"avatar_url":"https://avatars.githubusercontent.com/u/18315036?v=3","gravatar_id":"","url":"https://api.github.com/users/KeithPepin-MW","html_url":"https://github.com/KeithPepin-MW","followers_url":"https://api.github.com/users/KeithPepin-MW/followers","following_url":"https://api.github.com/users/KeithPepin-MW/following{/other_user}","gists_url":"https://api.github.com/users/KeithPepin-MW/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithPepin-MW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithPepin-MW/subscriptions","organizations_url":"https://api.github.com/users/KeithPepin-MW/orgs","repos_url":"https://api.github.com/users/KeithPepin-MW/repos","events_url":"https://api.github.com/users/KeithPepin-MW/events{/privacy}","received_events_url":"https://api.github.com/users/KeithPepin-MW/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/feature-request","name":"feature-request","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-01T13:39:04Z","updated_at":"2016-07-29T14:14:25Z","closed_at":null,"body":"According to the travis docs:\r\n\r\n> The `after_success`, `after_failure`, `after_script` and subsequent stages do not affect the the build result.\r\n\r\nBut there are processes that we need to run after tests are complete that can and should fail the build on error.  In our use case, we want to build RPM packages after testing is completed (and only after tests finish successfully).  We currently run these post test build steps in the `after_success`, but as stated in the docs, if there is an error in the constructing of the RPM, the build will still pass, and no one is the wiser.  Unfortunately there is no better alternative currently, except to hi-jack the `scripts` event, but this feels wrong since the purpose of the scripts event is to run tests.\r\n\r\nI'd like to request a new life cycle event, that would still fail the build, but that can be run after tests are completed and have passed.  I realize you probably can't change the existing after_success event since so many people probably rely on its current behavior, but could another option be created?"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/236191469","html_url":"https://github.com/travis-ci/travis-ci/issues/6249#issuecomment-236191469","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/6249","id":236191469,"user":{"login":"KeithPepin-MW","id":18315036,"avatar_url":"https://avatars.githubusercontent.com/u/18315036?v=3","gravatar_id":"","url":"https://api.github.com/users/KeithPepin-MW","html_url":"https://github.com/KeithPepin-MW","followers_url":"https://api.github.com/users/KeithPepin-MW/followers","following_url":"https://api.github.com/users/KeithPepin-MW/following{/other_user}","gists_url":"https://api.github.com/users/KeithPepin-MW/gists{/gist_id}","starred_url":"https://api.github.com/users/KeithPepin-MW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeithPepin-MW/subscriptions","organizations_url":"https://api.github.com/users/KeithPepin-MW/orgs","repos_url":"https://api.github.com/users/KeithPepin-MW/repos","events_url":"https://api.github.com/users/KeithPepin-MW/events{/privacy}","received_events_url":"https://api.github.com/users/KeithPepin-MW/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T14:14:25Z","updated_at":"2016-07-29T14:14:25Z","body":"@BanzaiMan - What will that do exactly?  You mention \"halting\" the build.  Is that the same as failing it / exiting with a proper error code?  Can't seem to find documentation to explain this command, and I'm new to Travis, so any additional information would be greatly appreciated."}}
{"actor":{"display_login":"KeithPepin-MW"}}