Skip to content

Jenkins

This stack creates a Jenkins instance.

Prerequisites

Add Project to Config0

  1. Go to Home → click Add Project
  2. Select and click launch-config0 as the launch repository
  3. Type branch name: do-jenkins
  4. Add project name: do-jenkins-101
  5. Click Add Project

Configure Jenkins

  1. Click DASHBOARD
  2. Click do-jenkins-101

You should see something similar to below:

DO Jenkins Runs

  1. Click on jenkins_ans
  2. Click Output tab
  3. Copy the jenkins password for the Jenkins instance
  4. Place the jenkins url into the browser

Note: In the following steps, you’ll need to accept the self-signed certificates.

Jenkins Certificate Warning A

Jenkins Certificate Warning B

  1. Enter user: admin
  2. Enter password: jenkins_password

Jenkins Login

  1. Click Install suggested plugins

Jenkins Plugins

You should see installation progress below:

Jenkins Installation Progress

  1. Click Not now

Jenkins Skip Creation

  1. Click Start using Jenkins

Jenkins Start

Jenkins is now ready to use:

Jenkins Dashboard

Customized config0.yml

You can create your own config0.yml:

global:
  metadata:   
    labels:
       general:
         environment: dev
         purpose: test
       infrastructure:
         cloud: do
    matchSelectors:
       ssh_key_info:
         match_labels:
           cloud: do
           environment: dev
         match_keys:
           provider: do
         match_params:
           must_exists: True
           resource_type: ssh_public_key
infrastructure:
   jenkins:
       stack_name: config0-publish:::jenkins_on_do
       arguments:
          name: eval-jenkins
          region: NYC1
          size: s-1vcpu-2gb
          with_monitoring: true
          with_backups: false
          with_ipv6: false
          with_private_networking: false
          with_resize_disk: false
       metadata:
          labels:
            - general
            - infrastructure
          matchSelectors:
            - ssh_key_info
          credentials:
            - reference: do-token
              orchestration: true