Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 2.18 KB

README.adoc

File metadata and controls

48 lines (33 loc) · 2.18 KB

Jenkins infra on Azure

Table of Contents

This repository is meant to hold documentation, tooling and other resources related to the Jenkins project’s migration to Azure.

Requirements

In order to use this repository to provision the Jenkins infrastructure on azure, you need:

  • An Azure account

  • Docker to run terraform defined in this repository

  • Make which simplify the different steps

HowTo

Provision

Don’t blindly execute the terraform code located in this repository on your own account as it may lead your account bill to significantly increase.

Once you fulfill the requirements, you can use the code located here to provision this infrastructure on your azure account

  1. Add your public ssh key under ssh_key folder, but do not commit it as it only must be used for your personal environment.

  2. Create your .azure-terraform.json as exampled in the file HACKING.adoc

  3. Run make init: to create the remote azure storage that will host your terraform state.

  4. Run make test_fmt validate: to run linting checks and validate your resources.

  5. Run make deploy: to provision all resources on your account.

Test

In order to test any modification on this repository, you need to

  • Run linting tests on your machine make test_fmt, which don’t need a azure account

  • You may also run make validate, if you have an azure account configured but keep in minds that it implies deploying at least an azure storage to store a remote terraform state

  • Open a pull request on jenkins-infra/azure, this will provision a temporary environment with your specific changes and then report provisionning logs on ci.jenkins.io.

Links