Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.11 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.11 KB

Jenkins-Automation

Diagram

This project will Create vm on Vsphere and install and config Jenkins with ansible and jcasc

Asnible

Define the server on which you want to install Jenkins it in the playbook.yml

hosts: your_ubuntu_server

Terrform

Install provider

terraform init

The Terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure

terraform plan

Deploy vm on Vsphere

terraform apply

jenkins.yaml file which contains jcasc configuration has a job section that clones all this project

jobs:
  - script: >
      freeStyleJob('MyGitHubJob') {
        description('A job that clones a GitHub repository')
        scm {
          git {
            remote {
              url('https://github.com/alilotfi23/Jenkins-Automation.git')
              credentials('your-github-credentials-id')
            }
            branches('*/main')
          }
        }
      }