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'
}
}
stage "preparation"
node {
parallel (
phase1: { sh "echo p1; echo phase1" },
phase2: { sh "echo p2; echo phase2" }
)
sh "echo 42 > data"
stash includes: '*', name: 'binary'
apiVersion: v1
items: []
kind: List
metadata:
resourceVersion: ""
selfLink: ""
@michaelneale
michaelneale / gist:9635744
Last active February 27, 2018 03:39
systemd script for jenkins OPEs (slaves)
[Unit]
Description=CloudBeees On Prem executor
Documentation=https://developer.cloudbees.com/bin/view/DEV/On-Premise+Executors
Requires=network.target
After=multi-user.target
[Service]
Type=simple
ExecStart=/opt/java6/bin/java -jar /usr/share/jenkins-cli.jar -s https://cloudbees.ci.cloudbees.com on-premise-executor -fsroot /workspace -labels docker -nam\
e docker-builder-1
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"