Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/usr/bin/env bash | |
set -o nounset -o errexit -o pipefail | |
usage() { | |
cat <<EOM | |
Usage: | |
$(basename $0) [OPTIONS] | |
$(basename $0) [ -j | --jenkins-url | -n | --node-name | -s | -d | --desc | --slave-home | -e | --executors | -sh | --ssh-host | -sp | --ssh-port | |
| -c | --cred-id | -l | --labels | -u | --user-id | -p | --password | -h | --help ] |
import hudson.model.StreamBuildListener | |
import hudson.plugins.emailext.ExtendedEmailPublisher | |
import java.io.ByteArrayOutputStream | |
def projectName = "your-project-name-here" | |
Jenkins.instance.copy(Jenkins.instance.getItem(projectName), "$projectName-Testing"); | |
def project = Jenkins.instance.getItem(projectName) | |
try { | |
def testing = Jenkins.instance.getItem("$projectName-Testing") |
# 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 |