when iam deploying terraform template in jenkins , am getting following error please help me

316 views
Skip to first unread message

siddared...@gmail.com

unread,
Aug 20, 2018, 8:37:50 AM8/20/18
to Terraform
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Set Terraform path)
[Pipeline] script
[Pipeline] {
[Pipeline] tool
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Provision infrastructure)
Stage "Provision infrastructure" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: No tool named Terraform found
Finished: FAILURE

Kalyan Raj Sista

unread,
Aug 20, 2018, 9:15:06 PM8/20/18
to terrafo...@googlegroups.com
It is always suggested to install Terraform, set proper environment variable as part of the pipeline to avoid any errors. I hope this helps.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/f58833fa-a4a4-4ceb-8242-91316c7a9d85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SIDDA REDDY

unread,
Aug 21, 2018, 6:11:02 AM8/21/18
to terrafo...@googlegroups.com
i have setup correct Environment variable only but i'm not able to get the output,,,while reading the .tf files from github iam not able to create vm in azure,can you please look at my pipeline code .check ....

pipeline {
    agent any
     stages {
      stage('checkout') {
          steps {
                git url: 'https://github.com/MSidda/iot11.git',branch:'master'
          }
        }
      stage('Set Terraform path') {
            steps {
                script {
                    cd "C:/Users/sysgain/test/terraform"
                    def tfHome = tool name: 'Terraform'
                    env.PATH = "${tfHome}:${env.PATH}"
                }
                sh 'terraform --version'
            }
        }
         stage('Provision infrastructure') {
            steps {
                sh 'terraform init'
                sh 'terraform plan -out=plan'
                sh 'terraform apply plan'
            }
        }
    }
}


For more options, visit https://groups.google.com/d/optout.


--
Thanks and Regards
Sidda Reddy M
Reply all
Reply to author
Forward
0 new messages