Friday, 4 March 2022

How to Install and configure Terraform on your Jenkins Server

Install Terraform on Jenkins Server


Use the following commands to install Terraform on Jenkins server and move the binaries to the correct path as shown below.


  • wget https://releases.hashicorp.com/terraform/1.14.5/terraform_1.14.5_linux_amd64.zip
  • unzip terraform_1.14.5_linux_amd64.zip
  • sudo mv terraform /usr/local/bin/
  • terraform version

Install Terraform plugin on Jenkins

Go to Manage Jenkins > Manage Plugins >Available > search Terraform as shown below:

As you can see, Terraform Plugin is already installed on my Jenkins hence why it's displayed in the Installed section.

Configure Terraform

Go to Manage Jenkins > Global Tool Configuration > It will display Terraform on the list.

  • Enter terraform in the Name field
  • Provide the path /usr/local/bin/ as shown below






No comments:

Post a Comment

Bash Script To Install Ansible Automation Platform ( AWX)

#!/bin/bash # --- Configuration --- AWX_OPERATOR_VERSION="2.19.1" NAMESPACE="awx" KUBECONFIG_PATH="/etc/rancher/k3s...