Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Terraform installation to PATH and add @Symbol annotation #7

Merged
merged 2 commits into from
Feb 25, 2020

Conversation

michelzanini
Copy link

  • Gradle 2.x has been deprecated and is no longer supported in IntelliJ
  • Add Terraform installation to PATH and add @symbol annotation

@michelzanini michelzanini mentioned this pull request Feb 24, 2020
@michelzanini
Copy link
Author

michelzanini commented Feb 24, 2020

This changes will allow people to use Terraform in pipelines as following:

pipeline {
 
  tools {
    terraform '0.12.21'
  }

  stage('Version') {
      steps {
        sh('terraform version')
      }
  }

}

This is possible by adding @Symbol annotation as terraform.
Also, to make this work correctly, the installed tool needs to be added to PATH so it will work.

@michelzanini
Copy link
Author

@dpires can you please review this? Thanks.

@dpires
Copy link
Member

dpires commented Feb 25, 2020

Looks good.

@dpires dpires merged commit bf06907 into jenkinsci:master Feb 25, 2020
@michelzanini michelzanini deleted the use-installer-on-pipelines branch November 7, 2024 12:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants