Coder Social home page Coder Social logo

multi-branch-pipeline's Introduction

##Make sure following plugins are installed before installing Jenkins. 0. Create a user ansibleadmin in the jenkins and generate public and private. Replace key contents with your own key in my case Laptopkey

  1. AWS Steps
  2. Blue Ocean
  3. You need GitHub Token
  4. sudo apt update && sudo apt install software-properties-common -y && sudo add-apt-repository --yes --update ppa:ansible/ansible && sudo apt install ansible -y && ansible --version
  5. Terraform
  6. Packer
  7. Docker

Ansible ansible-config init --disabled > ansible.cfg on both SLAVES.

##If you are updating the Worker or Master Count, following chanages needed. 0. Make sure you have changed PACKER_ACTION to NO before pushing the code to remote repo.

  1. Add the additional worker or master in the ec2.tf.
  2. Update details.tpl file and update docker_servers group and as well as docker_managers or docker_workers.
  3. Update localfile.tf depending on master or worker.
  4. Update the PRODEFAULTAMI & DEVDEFAULTAMI as AMI is already created.

#For Destroying The Environment

  1. Create a new branch dev-destroy or prod-destroy.
  2. Change PACKER, TERRAFORM_APPLY & ANSIBLE_ACTION to NO and Change TERRAFORM_DESTROY to YES.
  3. Update when expression for branch to dev-destroy or prod-destroy commit.
  4. Push to remote repo and pipeline will run and perform destroy...

Jenkinsfile: Install Multibranch Scan Webhook Trigger for running pipeline based on webhook.

Disable Git Host Key Verification Configuration from Global Security.

multi-branch-pipeline's People

Contributors

kaulaskar avatar

Watchers

 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.