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 {
stages {
stage('cypress - test') {
agent {
docker {
image 'cypress/base:8'
}
}
apiVersion: v1
items: []
kind: List
metadata:
resourceVersion: ""
selfLink: ""
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'