项目

一般

简介

插件 » Redmine Jenkins 持续集成工具兼容版

Redmine Jenkins

Jenkins 是最著名的持续集成工具,又因为它开源免费、插件众多,成为了许多团队做持续集成的首选。

发布于: https://gitlab-ic.scae.redsara.es/OFICINA_TECNICA/redmine_jenkins
兼容于: Redmine 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*

最新版本: 2.0.0 更新日期: 2023-03-16 14:54

评论

添加评论

gu xingbiao超过一年 之前添加

参考:
https://github.com/hicknhack-software/redmine_hourglass/issues/138
--------------
2:
3: <%= render_tabs project_settings_tabs >
4:
5: <
html_title(l(:label_settings)) -%>
plugins/redmine_code_review/lib/code_review_projects_helper_patch.rb:22:in project_settings_tabs’ plugins/redmine_finance/lib/redmine_finance/patches/projects_helper_patch.rb:38:in project_settings_tabs_with_finance’
app/views/projects/settings.html.erb:3:in app_views_projects_settings_html_erb_315216044_165980740’ lib/redmine/sudo_mode.rb:65:in sudo_mode’

I fixed it by changing the following:
I modified “C:\Redmine\plugins\redmine_code_review\lib\code_review_projects_helper_patch.rb”
so that the method name was changed from:
def project_settings_tabs
to
def code_review_project_settings_tabs

this fixed the issue.

yang james超过 2 年 之前添加

通过redmine的LOG可以看到,后台找到了jobs,但是显示不出来?
有懂的吗?
Obtaining the details of all jobs
Filter [“home/redmine/server_20_gerrit/xxx_v1”, “home/redmine/server_20_gerrit/xxx_v1.1.1”]
Filtered out jobs: Job: AnewItem [ AnewItem ]; Job: AnotherNewItem [ AnotherNewItem ];

*Valid jobs found: []*
有效的jobs为空,是啥原因?

yang james超过 2 年 之前添加

点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”,“任务名称”的下拉框中什么内容都没有?
我也是同样的状况,现在版本库通过添加git的路径已经有显示了,但是“任务名称还是没有任何显示”????

我在Jenkins的redmine插件链接中看到如下信息:
https://plugins.jenkins.io/redmine/

To use “Aggregate Redmine ticket metrics” you should provide API key assigned to existing Redmine user. Login as desired user, visit http://redmine/my/account, copy key from “API access key” and paste it into job on Jenkins.

这个API ACCESS KEY应该放到Jenkins哪里?

由 匿名用户 在 超过 2 年 之前添加

我已经能让redmine与Jenkins通讯,
但是不能添加任务,也是弹出版本库的东西,
再其他地方看到有job list的方案,但是这个插件太老了,不能支持比较新的redmine
https://www.redmine.org/plugins/t-ando_redmine_hudson

yang james超过 2 年 之前添加

lixiaokun lixiaokun ,你的问题解决了吗?
指导一下?

lixiaokun lixiaokun将近 3 年 之前添加

我尝试了很多次 ,插件安装之后 出现的页面 是跟咱们的介绍一样的。但是, 找不到 jenkins的 job。

点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”,“任务名称”的下拉框中什么内容都没有? 应该怎么办??

!!You cannot add a job which is not for the repositories configured for your project.

Redmine端配置已经启用REST web service。

修改了 配置文件 可以跟 jenkins结和
  1. cat additional_environment.rb
    Copy this file to additional_environment.rb and add any statements
  2. that need to be passed to the Rails::Initializer. `config` is
  3. available in this context. #
  4. Example: #
  5. config.log_level = :debug
  6. ... #

ENV['JENKINS_URL’] ||= 'http://47.118.57.208:9082/'
ENV['JENKINS_USER’] ||= 'admin’
ENV['JENKINS_TOKEN’] ||= '116841d579e9fe7a6f61e52a12a42149ff’

lixiaokun lixiaokun大约 3 年 之前添加

我尝试了很多次 ,插件安装之后 出现的页面 是跟咱们的介绍一样的。但是, 找不到 jenkins的 job。

点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”,“任务名称”的下拉框中什么内容都没有? 应该怎么办??

!!You cannot add a job which is not for the repositories configured for your project.

Redmine端配置已经启用REST web service。

lixiaokun lixiaokun大约 3 年 之前添加

主要是 找不到 jenkins的 job。
点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”,“任务名称”的下拉框中什么内容都没有? 应该怎么办??

!!You cannot add a job which is not for the repositories configured for your project.

Redmine端配置已经启用REST web service。

guo hongxing大约 3 年 之前添加

@lixiaokun lixiaokun 确认Jenkins端配置后,Redmine端配置要启用REST web service。
参考:https://www.cnblogs.com/YatHo/p/7941886.html

lixiaokun lixiaokun大约 3 年 之前添加

点击 “添加Jenkins任务=⇒ 点击 '任务名称' 之后 什么都没有出来.
怎么把jenkins的job 通过这个 '任务名称' 显示出来呢?

lixiaokun lixiaokun大约 3 年 之前添加

希望大家多多指点 确实折腾这个好几天了

lixiaokun lixiaokun大约 3 年 之前添加

我是可以看到
测试Jenkins连接配置 一般都是报错,这个是怎么配置的??
我平时修改的配置文件 additional_environment.rb

点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”
这里面的'任务名称' 应该是jenkins的job 但是怎么在这个web页面显示,是怎么做的? 这个是最关键的

Chen Snowman大约 3 年 之前添加

@lixiaokun lixiaokun 在项目配置界面中可以看到CI/CD配置页签,下图

lixiaokun lixiaokun大约 3 年 之前添加

插件版本 redmine_jenkins 2.0.0 redmine_bootstrap_kit 0.2.5
Redmine version 4.1.1.stable

安装完之后 在【配置】===【插件】 上只能看到这两个插件 没有可以点击配置插件的地方

lixiaokun lixiaokun大约 3 年 之前添加

我看过了 那本书的版本 好像比较旧了,刚刚我尝试按照那本书上的,安装旧版本 显示的是

root@3a6d57bad6b2:/home/redmine/redmine/plugins# bundle update
[DEPRECATED] Your Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config set disable_multisource true`.
Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.15). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.15`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem “nokogiri”:
In Gemfile:
capybara (~> 3.25.0) was resolved to 3.25.0, which depends on
nokogiri (~> 1.8)

jenkins_api_client (~> 1.3.0) was resolved to 1.3.0, which depends on
nokogiri (~> 1.6.0)

guo hongxing大约 3 年 之前添加

@lixiaokun lixiaokun Using Redmine with Jenkins 看下 Redmine CookBook书的第8章 Using Redmine with Jenkins

lixiaokun lixiaokun大约 3 年 之前添加

我也遇见了 跟xurenfeng 一样的问题 安装成功了 怎么使用呢?》?????

安装成功后,怎么用呢,点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”,这里的“版本库”指的是什么?为什么“任务名称”的下拉框中什么内容都没有?

lixiaokun lixiaokun大约 3 年 之前添加

我安装了插件之后 但是没有显示 配置按钮 只有简单的插件 怎么使用呢?还是说我插件安装错了??

Chen Snowman大约 3 年 之前添加

@sunht sunht redmine没找到待安装的插件。确认下plugins目录下的插件目录名称是 redmine_jenkins,且redmine_jenkins目录不是空的

sunht sunht大约 3 年 之前添加

  1. bundle exec rake redmine:plugins:migrate NAME=redmine_jenkins
    Plugin redmine_jenkins was not found. 安装不上给看看

Chen Snowman超过 3 年 之前添加

@Shangguan 这个问题通常是插件间冲突导致的。建议提交问题到 https://redmineplugins.cn/projects/redmineplugins/issues/new ,注明你的redmine版本、ruby版本,以及都安装了哪些插件

Shangguan Bin超过 3 年 之前添加

装了这个插件会报下面的日志错误

ActionView::Template::Error (super: no superclass method `project_settings_tabs’ for #<#<Class:0x00000000096ed1c0>:0x0000000009695600>
Did you mean? project_issues_path):
1: <h2><%=l(:label_settings)%></h2>
2:
3: <%= render_tabs project_settings_tabs >
4:
5: <
html_title(l(:label_settings)) -%>

xu renfeng超过 3 年 之前添加

安装成功后,怎么用呢,点击“添加Jenkins任务”,之后出现一个“任务名称”和一个“版本库”,这里的“版本库”指的是什么?为什么“任务名称”的下拉框中什么内容都没有?