Skip to content

Instantly share code, notes, and snippets.

View michaelneale's full-sized avatar
😀
Not updating github status

Michael Neale michaelneale

😀
Not updating github status
View GitHub Profile
pipeline {
agent {
docker {
image 'node:6-alpine'
args '-p 3000:3000'
}
}
environment {
CI = 'true'
}
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y libxml2-utils
RUN apt-get install -y default-jdk
RUN apt-get install -y maven
RUN apt-get install -y firefox=45.0.2+build1-0ubuntu1
RUN apt-get install -y xvfb
RUN apt-get install -y curl wget
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y libxml2-utils
RUN apt-get install -y default-jdk
RUN apt-get install -y maven
RUN apt-get install -y firefox=45.0.2+build1-0ubuntu1
RUN apt-get install -y xvfb
RUN apt-get install -y curl wget
pipeline {
agent docker:'cloudbees/java-build-tools'
stages {
stage ('build') {
//deleteDir
sh "mvn clean install -B -DcleanNode -Dmaven.test.failure.ignore"
sh "node checkdeps.js"
}
}
{
"stages" : [
{
"name" : "build",
"steps" : [
{
"type" : "sh",
"value" : "bundle install"
},
{
node {
stage "Prepare environment"
checkout scm
def environment = docker.build 'cloudbees-node'
environment.inside {
stage "Checkout and build"
sh "npm install"
@michaelneale
michaelneale / post to IRC
Last active January 27, 2016 01:55
Jenkins Workflow post to IRC
stage "notify"
node {
sh '''
MSG='This is the message here'
SERVER=irc.freenode.net
CHANNEL=#mictest
USER=mic2234test
stage "preparation"
node {
parallel (
phase1: { sh "echo p1; echo phase1" },
phase2: { sh "echo p2; echo phase2" }
)
sh "echo 42 > data"
stash includes: '*', name: 'binary'
@michaelneale
michaelneale / belay-js-example.html
Last active September 11, 2015 06:58 — forked from jedwood/belay-js-example.html
Tiny helper for connecting two elements with SVG lines. Assumes jQuery (for now). Original by @johndilworth
<!DOCTYPE html>
<html>
<head>
<title>SVG Lines</title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="belay.js"></script>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<style>
body{
> hadoop --version
Error: No command named `--version' was found. Perhaps you meant `hadoop -version'
> hadoop -version
Error: No command named `-version' was found. Perhaps you meant `hadoop version'
> hadoop version
Hadoop 2.3.0-cdh5.0.2