【问题标题】:Hubot: installing a hubot scriptHubot:安装一个hubot脚本
【发布时间】:2017-04-20 17:13:30
【问题描述】:

我用 hipchat 适配器安装了 Hubot。我还使用npm 安装了一个外部脚本hubot-jenkins-enhanced。但是,Hubot 没有响应应该在此脚本中侦听的 jenkins 命令。

我必须手动将node_modules/hubot-jenkins-enhanced/index.coffee 复制到hubot/scripts 吗?我找不到任何关于如何在任何地方安装插件的信息。我认为npm install 就足够了,但显然它没有。

【问题讨论】:

    标签: jenkins coffeescript hubot


    【解决方案1】:

    the documentation 所述,我必须在external-scripts.json 中包含hubot-jenkins 脚本:

    要使用 NPM 包中的脚本:

    1. 运行npm install --save <package-name> 将包添加为依赖项并安装它。
    2. 将包添加到external-scripts.json

    Hubot 现在响应 jenkins 命令。

    【讨论】:

      猜你喜欢
      • 2017-01-21
      • 1970-01-01
      • 2018-03-26
      • 1970-01-01
      • 2019-09-24
      • 2013-12-17
      • 2015-12-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多