Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/bin/bash | |
JENKINS_URL=$1 | |
NODE_NAME=$2 | |
NODE_SLAVE_HOME='/home/build/slave' | |
EXECUTORS=1 | |
SSH_PORT=22 | |
CRED_ID=$3 | |
LABELS=build | |
USERID=${USER} |
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
<?jelly escape-by-default='true'?> | |
<!DOCTYPE html [ | |
<!ENTITY nbsp "&#38;nbsp;"> | |
]> | |
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define"> | |
<body> | |
<!-- GENERAL INFO --> | |
<table> | |
<tr> | |
<td align="right"> |
# User ssh configuration file ~/.ssh/config | |
# Gist https://gist.github.com/terrywang/3997931 | |
# man ssh_config for more information | |
# Inspired by the blog post below to fight the NSA | |
# https://stribika.github.io/2015/01/04/secure-secure-shell.html | |
# Outside of the firewall, with HTTPS proxy | |
# Package connect-proxy is required. | |
# Amazon EC2 |
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
import hudson.model.StreamBuildListener | |
import hudson.plugins.emailext.ExtendedEmailPublisher | |
import java.io.ByteArrayOutputStream | |
def projectName = "your-project-name-here" | |
def oriProject=Jenkins.instance.getItem(projectName) | |
if(oriProject==null){ | |
println "oriProject is null, exit." | |
return 1 | |
} |