One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| /* | |
| * This is a simple HTTP data generator for testing. | |
| * | |
| */ | |
| var http = require('http'); | |
| var counter = 0; | |
| http.createServer(function (req, res) { | |
| var start = new Date(); |
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| # Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
| echo "usage: $0 <service_account_name> <namespace>" | |
| exit 1 | |
| fi |
| from apiclient.discovery import build | |
| from apiclient import errors | |
| from httplib2 import Http | |
| from oauth2client import file, client, tools | |
| from email.mime.text import MIMEText | |
| from base64 import urlsafe_b64encode | |
| SENDER = <sender> | |
| RECIPIENT = <recipient> |
| /* | |
| Script to increase the version number of the project and remove snapshots | |
| Using Gmaven: http://docs.codehaus.org/display/GMAVEN/Executing+Groovy+Code | |
| Execute standalone | |
| $ mvn groovy:execute | |
| <plugin> | |
| <groupId>org.codehaus.gmaven</groupId> |
| FROM ruby:2.3.1 | |
| # Install dependencies | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
| # Set an environment variable where the Rails app is installed to inside of Docker image: | |
| ENV RAILS_ROOT /var/www/app_name | |
| RUN mkdir -p $RAILS_ROOT | |
| # Set working directory, where the commands will be ran: |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| #!/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 ] |