Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Michael Neale michaelneale

🎯
Focusing
Block or report user

Report or block michaelneale

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bws.py
# need to install stuff - selenium/webdriver/firefox driver/gecko or something, I forget now.
# Just mash the keyboard until it works.
my_url='https://bws.com.au/spirits/gin'
from selenium import webdriver
options = webdriver.FirefoxOptions()
options.add_argument('-headless')
View PSConfig.groovy
//def ConfigEnviroment = [:]
//ConfigEnviroment['fromEmail'] = "noreply@adobe.com"
def info(message) {
echo "INFO: ${message}"
}
def warning(message) {
echo "WARNING: ${message}"
}
View Jenkinsfile
pipeline {
stages {
stage('cypress - test') {
agent {
docker {
image 'cypress/base:8'
}
}
View gist:48d032ee6a0cc4d61e6456e80db4ad27
apiVersion: v1
items: []
kind: List
metadata:
resourceVersion: ""
selfLink: ""
View gist:29aa81ee3617b17c540bcd20fe7a21d4
pipeline {
agent {
docker {
image 'node:6-alpine'
args '-p 3000:3000'
}
}
environment {
CI = 'true'
}
View gist:f9f514f5dc2929e5ff98a752494bbef1
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
View ATH
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
View pipey
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"
}
}
View Jenkinsfile.json
{
"stages" : [
{
"name" : "build",
"steps" : [
{
"type" : "sh",
"value" : "bundle install"
},
{
View gist:df8cd9e22ccf9c1c42de6c78e0e98e09
node {
stage "Prepare environment"
checkout scm
def environment = docker.build 'cloudbees-node'
environment.inside {
stage "Checkout and build"
sh "npm install"
You can’t perform that action at this time.