【问题标题】:How to use multiple tools in Jenkins Pipeline如何在 Jenkins Pipeline 中使用多个工具
【发布时间】:2020-09-30 15:26:27
【问题描述】:

我需要在构建阶段使用 nodejs 以及 terraform 工具。我使用的声明式管道是:

pipeline{
agent any
tools { nodejs "node12.14.1" terraform "terraform-v0.12.19"}
...

只能使用 nodejs 工具。未安装 terraform 并给出 command not found 错误。

【问题讨论】:

    标签: jenkins npm jenkins-pipeline terraform pipeline


    【解决方案1】:

    我们需要在新行上指定每个工具。

    pipeline {
    agent any
    tools {
        nodejs "node12.14.1"
        terraform "terraform-v0.12.19" 
        }
    ...
    

    【讨论】:

      猜你喜欢
      • 2018-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多