Giter Site home page Giter Site logo

jenkins's Introduction

Note:

jenkins by default runs with jenkins user on the linux box, so this pipeline executed on the jenkins server with user jenkins.

Before making this work, you might need to have git & terraform installed on the jenkins server possibly you should be able to execute terraform and git commands work as a jenkins user on the jenkins server.

As this is just an example, I thought it doesn't have to follow best practices

Usage:

  1. update vars.tf with your access/secret keys
  2. make sure terraform and git commands working on the server manually
  3. follow the tutorial

I have updated the repo with ReadMe and also with vars.tf to make it more sense as more people pinging me and asking me in detail. Hope this readme would throw some insight.

Improvements:

You can use below commands to plan and apply terraform. You can have them in different stages within Jenkinsfile

$ terraform plan $ terraform apply -auto-approve

Once this is successful at any time if you want to remove the provisioned instance. Execute below command on the jenkins server as jenkins user

$ terraform destroy -auto-approve

#Cheers - Pavan Kumar Aleti

jenkins's People

Contributors

aleti-pavan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.