rraj gautam
rraj gautam

Reputation: 395

How to use multiple tools in Jenkins Pipeline

I need to use nodejs as well as terraform tools on build stages.The declarative pipeline I used is:

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

Only nodejs tool can be used. terraform is not installed and gives command not found error.

Upvotes: 1

Views: 3020

Answers (1)

rraj gautam
rraj gautam

Reputation: 395

We need to specify each tools on new line instead.

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

Upvotes: 5

Related Questions