This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
shopt -s nocasematch # Case insensitive matching | |
shopt -s extglob | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
regex='^(fix(es)?|change(s)?|merge(s)?|update(s)?|add(s)?|remove(s)?)[[:space:]].+[a-zA-Z?!${}()@].' | |
# Get commit Message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String branchName = env.BRANCH_NAME | |
String gitCredentials = "CREDENTIAL_ID" | |
String repoUrl = "https://github.com/username/repo-name.git" | |
// Emails | |
String devEmails = "[email protected], [email protected]" | |
String qaEmauls = "[email protected], [email protected]" | |
// Server Credentials ID | |
String sshCredentials = "" // Defaults to empty to avoid accidental releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String branchName = env.BRANCH_NAME | |
String gitCredentials = "CREDENTIAL_ID" | |
String repoUrl = "https://github.com/username/repo-name.git" | |
// Server Credentials ID | |
String sshCredentials = "" // Defaults to empty to avoid accidental releases | |
String devServerCredentials = "CREDENTIAL_ID" | |
String stagingCredentials = "CREDENTIAL_ID" | |
String productionCredentials = "CREDENTIAL_ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String branchName = env.BRANCH_NAME | |
String gitCredentials = "CREDENTIAL_ID" | |
String repoUrl = "https://github.com/username/repo-name.git" | |
// Server Credentials ID | |
String sshCredentials = "" // Defaults to empty to avoid accidental releases | |
String devServerCredentials = "CREDENTIAL_ID" | |
String stagingCredentials = "CREDENTIAL_ID" | |
String productionCredentials = "CREDENTIAL_ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String branchName = env.BRANCH_NAME | |
String gitCredentials = "CREDENTIAL_ID" | |
String repoUrl = "https://github.com/username/repo-name.git" | |
// Server Credentials ID | |
String testCredentials = "CREDENTIAL_ID" | |
String ip = "127.0.0.1" // Server IP goes here | |
String usr_dir = "example" // Server user and path | |
node { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String branchName = env.BRANCH_NAME | |
String gitCredentials = "CREDENTIAL_ID" | |
String repoUrl = "https://github.com/username/repo-name.git" | |
node { | |
// Start Stages | |
stage('Clone') { | |
// Clones the repository from the current branch name | |
echo 'Make the output directory' | |
sh 'mkdir -p build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package handler | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"github.com/julienschmidt/httprouter" | |
ldap "gopkg.in/ldap.v2" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint node: true */ | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
util = require('gulp-util'), | |
spawn = require('child_process').spawn, | |
rename = require('gulp-rename'), | |
uglify = require('gulp-uglify'), | |
connect = require('gulp-connect'), | |
runSequence = require('gulp-run-sequence'), |