已安装的"github-autostatus"插件未更新Job& GitHub中的阶段监视状态 [英] Installed 'github-autostatus' plugin not updating Job & stage monitoring status in GitHub

查看:121
本文介绍了已安装的"github-autostatus"插件未更新Job& GitHub中的阶段监视状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已安装 https://plugins.jenkins.io/github-autostatus/插件

Watches pipeline jobs and provides job and stage stats such as time and pass/fail. Can be configured to update GitHub commit status 
(one status per stage) and send stats to an InfluxDB instance, or StatsD collector, for build health monitoring of job/stage timing and success rate.

如链接中突出显示的那样,我希望这会在启用PR合并到目标按钮之前出现在阶段中.但是,插件安装后&重新启动,它不会出现在PR中.

As highlighted in link, I am expecting this to appear in stage before PR merge to target button gets enabled. But post plugin installation & restart it's not appearing in PR.s

Jenkins->Configure System

在Github中针对目标分支创建新PR时,在行为上没有任何区别.

Don't see any difference in behavior when new PR is created against target branch in Github.

在此分支上将轮询SCM"配置为true,以检查行为&仅在合并"完成后,才会在Jenkins中触发构建,但在创建PR时不会触发审核中.我是否缺少实现此设置的功能?

Configured 'Poll SCM' to true on this branch to check behavior & build is getting triggered in Jenkins only once 'Merge' is complete, but not when PR is created & Review is pending. Am I missing something to achieve this setup?

是否需要将声明性管道中的后期构建步骤添加到显式更新中?是否有详细说明这些步骤的文档?

Does post build steps in declarative pipeline needs to be added to explicitly updated?. Is there a documentation which details these steps please?.

在插件站点上看不到配置说明.

Don't see configuration instruction on plugin site.

推荐答案

在没有任何其他信息的情况下很难回答这个问题(例如@ smac89的评论),但是我尝试提供一些有关安装/使用插件的常规信息任何人都可以通过他们最好的搜索引擎来到这里.

It's hard to answer this question without any additional info (like commented by @smac89), but I try to give some general information about installing/using the plugin for anyone coming here by their very best search engine.

通常,要使其正常运行,您需要将此插件与 GitHub分支一起安装来源(这是一个依赖项).对我来说,它可以与GitHub组织很好地工作(添加一个新的 GitHub Organization 管道,并在管道配置中的 Projects 下使用正确的GitHub凭据对其进行配置).这将扫描您的GitHub组织以查找具有Jenkinsfile的任何存储库,但是您可以添加一些过滤器以将存储库排除在组织管道配置内.
然后,管道会自动将所有阶段的结果报告给相应的提交,并且当此提交是链接分支上的最新提交时,GitHub将在Pull Request中显示这些结果.

In general, to get it working, you need to install this plugin together with GitHub Branch Source (which is a dependency). For me, it works well with GitHub organizations (adding a new GitHub Organization pipeline and configure it with the correct GitHub credentials under Projects in the pipeline config). This will scan your GitHub organization for any repositories with a Jenkinsfile but you can add some filter to exclude repositories within the org pipeline configuration.
The pipeline reports then automatically all stage results to the corresponding commit and GitHub shows these results within the Pull Request when this commit is the latest on the linked branch.

但非组织管道似乎存在错误,请参见问题86 .

But there seems to be an error with non-org pipelines, see issue 86.

这篇关于已安装的"github-autostatus"插件未更新Job& GitHub中的阶段监视状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆