Skip to content

Instantly share code, notes, and snippets.

View alok15ee's full-sized avatar

Alok Kumar Singh alok15ee

View GitHub Profile
import hudson.model.*;
import jenkins.model.*;
import hudson.plugins.ec2.*;
import com.amazonaws.services.ec2.model.InstanceType
import com.amazonaws.services.ec2.model.KeyPair
if ( Jenkins.instance.pluginManager.activePlugins.find { it.shortName == "ec2" } != null ) {
println "--> setting ec2 plugin"
EC2Cloud cloud = Jenkins.instance.clouds.find { it instanceof EC2Cloud }
@alok15ee
alok15ee / git-cheat-sheet.md
Created August 8, 2016 18:24 — forked from iansheridan/git-cheat-sheet.md
A cheat sheet for GIT

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: