Skip to content

Instantly share code, notes, and snippets.

View uaarkoti's full-sized avatar

Udaypal Aarkoti uaarkoti

View GitHub Profile
org.jenkins-ci.plugins:active-directory:hpi:1.41
org.jenkins-ci.plugins:antisamy-markup-formatter:hpi:1.3
org.jenkins-ci.plugins:async-http-client:hpi:1.7.8
org.jenkins-ci.plugins:authentication-tokens:hpi:1.1
org.jenkins-ci.plugins:build-timeout:hpi:1.14.1
org.jenkins-ci.plugins:build-view-column:hpi:0.2
com.cloudbees.jenkins.plugins:cloudbees-aborted-builds:hpi:1.6
com.cloudbees.jenkins.plugins:cloudbees-aws-cli:hpi:1.4
com.cloudbees.jenkins.plugins:cloudbees-aws-credentials:hpi:1.7
com.cloudbees.jenkins.plugins:cloudbees-aws-deployer:hpi:1.13

Instructions for setting up End-to-End SSL for managing CloudBees Jenkins Platform

We will be using Vagrant for creating different components

  • HAProxy - Load Balancer
  • CJOC - CloudBees Jenkins Operations Center
  • CJE - CloudBees Jenkins Enterprise
  • Shared Slave - Shared Slave to be used for job execution by CJE

Deployment Architecture

Setup Vagrant

vagant box add ubuntu/trusty64 
vagrant init trusty64

Install haproxy

echo deb http://archive.ubuntu.com/ubuntu trusty-backports main universe | \
      sudo tee /etc/apt/sources.list.d/backports.list
Started by user anonymous
Running: Allocate node : Start
Running on master in /var/jenkins_home/jobs/docker-workflow/workspace
Running: Allocate node : Body : Start
Running: Mirror
Entering stage Mirror
Proceeding
Running: Shell Script
[workspace] Running shell script
+ docker pull maven:3.2-jdk-7-onbuild
Started by user anonymous
Running: Allocate node : Start
Running on master in /var/jenkins_home/jobs/docker-workflow/workspace
Running: Allocate node : Body : Start
Running: Mirror
Entering stage Mirror
Proceeding
Running: Shell Script
[workspace] Running shell script
+ docker pull maven:3.2-jdk-7-onbuild
@uaarkoti
uaarkoti / tomcat-cd.groovy
Created June 11, 2015 17:58
Jenkins Workflow implementing CD
// Global Libraries
// Tomcat library to deploy / undeploy to tomcat
tomcat = new com.cb.web.Tomcat(hostname: "localhost", port: "8180", adminUser: "admin", adminPassword: "tomcat")
// Simple utility
util = new com.cb.util.BasicUtilities()
// Local variables
artifactName = 'webapp.war'
Started by user anonymous
Running: Allocate node : Start
Running on master in /tmp/jenkins/test/jobs/webapp-workflow/workspace
Running: Allocate node : Body : Start
Running: Git
Cloning the remote Git repository
Cloning repository https://github.com/jenkinsbyexample/workflow-plugin-pipeline-demo.git
> git init /tmp/jenkins/test/jobs/webapp-workflow/workspace # timeout=10
Fetching upstream changes from https://github.com/jenkinsbyexample/workflow-plugin-pipeline-demo.git
> git --version # timeout=10
@uaarkoti
uaarkoti / flow.groovy
Last active September 9, 2016 07:31
Sample Workflow
// Run this part of the job on a node with a name or label of 'linux-64bit'
node('linux-64bit') {
// Checkout my source
git url: '/var/lib/jenkins/workflow-plugin-pipeline-demo'
// Set a particular maven install to use for this build
env.PATH="${tool 'Maven 3.x'}/bin:${env.PATH}"
// Start 'Dev' stage
Mar 15, 2015 10:49:00 PM FINE hudson.triggers.Trigger$Cron doRun
cron checking 3/15/15 10:49 PM
Mar 15, 2015 10:49:00 PM FINE hudson.triggers.Trigger checkTriggers
cron checking hudson.model.FreeStyleProject@34da8feb[PR Builder] with spec ‘’
Mar 15, 2015 10:49:00 PM FINER hudson.triggers.Trigger checkTriggers
did not trigger hudson.model.FreeStyleProject@34da8feb[PR Builder]
Mar 15, 2015 10:49:00 PM FINE hudson.triggers.Trigger checkTriggers
cron checking hudson.model.FreeStyleProject@34da8feb[PR Builder] with spec ‘’
Mar 15, 2015 10:49:00 PM FINER hudson.triggers.Trigger checkTriggers
did not trigger hudson.model.FreeStyleProject@34da8feb[PR Builder]
@uaarkoti
uaarkoti / gist:75fc1292ed921238770e
Last active August 29, 2015 14:08
Jenkins Error Message
Oct 29, 2014 4:04:50 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 0 data:
Oct 29, 2014 4:04:50 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 40960 data:
Oct 29, 2014 4:04:50 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 0 data:
Oct 29, 2014 4:04:50 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 59904 data:
Oct 29, 2014 4:04:50 PM javax.jmdns.impl.DNSIncoming readAnswer
WARNING: There was an OPT answer. Not currently handled. Option code: 65486 data: