Skip to content

Instantly share code, notes, and snippets.

View jayco's full-sized avatar
🏠
Working from home

Jason Jacob jayco

🏠
Working from home
View GitHub Profile
@jayco
jayco / pipeline.yml
Created June 25, 2020 02:22
Concurrency gate example
steps:
- command: echo "running unit tests"
key: unit-tests
- wait
######################
# START OF GATE 1 #
######################
- command: "exit 0" # start the gate region by using a no-op
@jayco
jayco / main.go
Last active July 14, 2020 21:01
Listen for job finished events and fail fast on builds
package main
import (
"bytes"
"context"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
@jayco
jayco / gist:8e7e8dd6065495579d479d34a274c973
Created May 25, 2020 03:07
Pull the process signal information for a job
query {
job(uuid: <JOB-UUID>) {
...on JobTypeCommand {
events(first:100) {
edges {
node {
...on JobEventFinished {
exitStatus
signal
signalReason
steps:
- command: "true"
concurrency_group: "gate"
concurrency: 1
key: "gate"
- wait
- label: "build"
command: >
@jayco
jayco / pipeline.yml
Last active November 5, 2019 08:15
Repo hooks
steps:
- label: get meta data
env:
REPO_NAME: ""
commands:
- 'echo $$REPO_NAME'
@jayco
jayco / nvm
Created October 28, 2012 11:05
load cloud9
#navigate to directory
cd /opt/cloud9
#to run cloud9
bin/cloud9.sh
#or to point it to a directory and run it
bin/cloud9.sh -w ~/workspace/node_project
@jayco
jayco / nvm
Created October 28, 2012 11:01
nvm sourcemint
#Install sourcemint
npm install -g sm
#Install cloud9 in the /opt directory
cd /opt
#Then clone the cloud9 git repo
git clone https://github.com/ajaxorg/cloud9.git cloud9
#navigate to downloaded directory
@jayco
jayco / nvm
Created October 28, 2012 10:57
nvm
#clone the nvm from here
git clone git://github.com/creationix/nvm.git ~/nvm
#then source it and add it to you bash shell in $HOME/.bashrc:
. ~/nvm/nvm.sh
#then install
nvm install 0.6.16
#make sure you specify to use it
@jayco
jayco / node install download node
Created October 28, 2012 10:38
download node
#enter in repo
git clone git://github.com/joyent/node.git
#navigate into folder
cd node
#run the configure executable
./configure
#run the make file
@jayco
jayco / node install dev pre
Created October 28, 2012 10:30
dev packages
#install dev packages
sudo apt-get install g++ curl libssl-dev apache2-utils
#if you haven't already installed git
sudo apt-get install git-core