Skip to content

Instantly share code, notes, and snippets.

@jamesj2
jamesj2 / Jenkinsfile
Created July 5, 2017 21:23
Learning Jenkins Pipeline via trial and error. This is what I've come up with so far. The "tools" are PHP testing and metrics installed via composer stored in their own build/tools/composer.json. AWS ECR is used to store my docker images, you can use php/xxx from Docker HUB.
#!groovy
pipeline {
agent any
// triggers {
// cron('H 4/* 0 0 1-5')
// }
// tools {
// nodejs 'Node 6.x'
### Keybase proof
I hereby claim:
* I am jamesj2 on github.
* I am jamesj2 (https://keybase.io/jamesj2) on keybase.
* I have a public key ASCBSHoxNLesLqfKILS2aQol8hs5DkcQN1tMWCoTYmau3Qo
To claim this, I am signing this object:
@jamesj2
jamesj2 / lib-login.js
Created April 29, 2015 20:56
casperjs loadImage breaks session cookies
/**
* Login into website.
*/
exports.login = function(url,username,password) {
/**
* Start casper and option the login page.
*/
casper.open(url);
/**