Skip to content

Instantly share code, notes, and snippets.

@stuartstevenson
stuartstevenson / HelloWorld.java
Created October 13, 2015 13:25
Simple java program to output system and environment variables
import java.util.Map;
import java.util.Properties;
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("---------Environment Variables----------");
@stuartstevenson
stuartstevenson / jenkins-job-dsl.groovy
Created September 16, 2014 07:50
Jenkins job dsl with distributed job config files. The seed.groovy file scans stash repo branches for jenkins-job-dsl.groovy files and runs them centrally.
Closure job = {
// Job Name
name "${stashProjectKey}-${projectName}-${branchSimpleName}"
// Where should jenkins run the job
label ('master')
// Where should Jenkins get the source code from
scm {
git {