GitLab CI: minify the output of the after scripts
When a build fails at someone's commit, the "your pipeline failed" message appears with a lot of output from the after scripts, which does not give any reasonable information on the matter of the fail (the error or the last part of it at least is not shown). For more details please refer to the sample of the output below:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :okapi-core Running after script... $ ${CI_SCRIPTS_PATH}/after-job Setting BITBUCKET_REPOSITORY to okapi Pushing status to https://api.bitbucket.org/2.0/repositories/okapiframework/okapi/commit/342e3e4af15e003cb55020580edc7659fbe8b40a/statuses/build... {"key": "ci/gitlab/verification", "description": "Pipeline #42852717", "repository": {"links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/okapiframework/okapi"}, "html": {"href": "https://bitbucket.org/okapiframework/okapi"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7Bc52ebee9-c686-4f78-ab47-f6ccb600ae98%7D?ts=1308275"}}, "type": "repository", "name": "Okapi", "full_name": "okapiframework/okapi", "uuid": "{c52ebee9-c686-4f78-ab47-f6ccb600ae98}"}, "url": "https://gitlab.com/okapiframework/okapi/-/jobs/143990629", "links": {"commit": {"href": "https://api.bitbucket.org/2.0/repositories/okapiframework/okapi/commit/342e3e4af15e003cb55020580edc7659fbe8b40a"}, "self": {"href": "https://api.bitbucket.org/2.0/repositories/okapiframework/okapi/commit/342e3e4af15e003cb55020580edc7659fbe8b40a/statuses/build/ci/gitlab/verification"}}, "refname": null, "state": "FAILED", "created_on": "2019-01-10T12:13:34.179334+00:00", "commit": {"hash": "342e3e4af15e003cb55020580edc7659fbe8b40a", "type": "commit", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/okapiframework/okapi/commit/342e3e4af15e003cb55020580edc7659fbe8b40a"}, "html": {"href": "https://bitbucket.org/okapiframework/okapi/commits/342e3e4af15e003cb55020580edc7659fbe8b40a"}}}, "updated_on": "2019-01-10T12:14:18.111354+00:00", "type": "build", "name": "verification:verification:failed"}ERROR: Job failed: exit code 1
Comments (2)
-
reporter -
reporter Additionally, when approved, need to take care of over projects...
- Log in to comment
The related pull request #283 has been opened.