Skip to content

alilotfi23/Jenkins-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')
          }
        }
      }

Releases

No releases published

Packages

No packages published