【问题标题】:Sourcing Software Collections (SCL ) on Jenkins在 Jenkins 上采购软件集合 (SCL)
【发布时间】:2017-09-05 09:58:17
【问题描述】:

我的目的是为 Jenkins 和所有用户提供 devtoolset-4。所以,如果我登录到托管 Jenkins 的虚拟机并从命令行执行 source /opt/rh/devtoolset-4/enable,一切正常。

所以,我的想法是在 /etc/bashrc 中包含这句话,但是我在 Jenkins 中遇到了这个错误:

+++ source /opt/rh/devtoolset-4/enable
++++ test -e /opt/rh/rh-java-common/enable
++++ . scl_source enable rh-java-common
+++++ _scl_source_help='Usage: source scl_source <action> [<collection> ...]

Don'\''t use this script outside of SCL scriptlets!

这没有任何意义,因为scl_source enable rh-java-common 正常工作,scl_source enable devtoolset-4 也正常工作。

我错过了什么?

【问题讨论】:

    标签: bash jenkins centos software-collections


    【解决方案1】:

    我的解决方案是在机器登录后立即采购 (source /opt/rh/devtoolset-4/enable)。

    【讨论】:

    • 你能澄清你的答案吗?我正在尝试获取 SCL python 安装,而我能找到的最佳答案是将其作为我的 shell 任务的一部分进行获取。我认为理想情况下这应该由环境提供。
    猜你喜欢
    • 1970-01-01
    • 2012-05-01
    • 2017-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-26
    • 2012-05-28
    相关资源
    最近更新 更多