Set a system environment variable AUTHZ_JSON_URL that points to a JSON file with the following structure:
{
  "admins": [
    "groupA", 
    "userA"
 ],
| #ifndef CONFIGURATION_H | |
| #define CONFIGURATION_H | |
| // This configuration file contains the basic settings. | |
| // Advanced settings can be found in Configuration_adv.h | |
| // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration | |
| //=========================================================================== | |
| //============================= DELTA Printer =============================== | |
| //=========================================================================== | 
| ########################################################################### | |
| # db_mysql.sql rlm_sql - FreeRADIUS SQL Module # | |
| # # | |
| # Database schema for MySQL rlm_sql module # | |
| # # | |
| # To load: # | |
| # mysql -uroot -prootpass radius < db_mysql.sql # | |
| # # | |
| # Mike Machado <mike@innercite.com> # | |
| ########################################################################### | 
| #!/bin/bash | |
| set -ex | |
| PARENT_DIR=$(basename "${PWD%/*}") | |
| CURRENT_DIR="${PWD##*/}" | |
| IMAGE_NAME="$PARENT_DIR/$CURRENT_DIR" | |
| TAG="${1}" | |
| REGISTRY="hub.docker.com" | 
| Some Jenkinsfile examples | 
| #!/bin/sh | |
| echo -e "-- Removing exited containers --\n" | |
| docker ps --all --quiet --filter="status=exited" | xargs --no-run-if-empty docker rm --volumes | |
| echo -e "\n\n-- Removing untagged images --\n" | |
| docker rmi --force $(docker images | awk '/^<none>/ { print $3 }') | |
| echo -e "\n\n-- Removing volume directories --\n" | |
| docker volume rm $(docker volume ls --quiet --filter="dangling=true") | 
| // | |
| // Jenkins Job DSL example to create build projects for Bitbucket branches | |
| // | |
| // Imports | |
| import java.text.DateFormat | |
| import java.text.SimpleDateFormat | |
| import groovy.time.TimeCategory | |
| // URL components | 
| // URL components | |
| String baseUrl = "https://bitbucket.org/rest/api" | |
| String version = "1.0" | |
| String project = "SYS" | |
| // Put it all together | |
| String reposUrl = [baseUrl, version, "projects", project, "repos"].join("/") | |
| def send_request(url_string){ | |
| // Create URL | 
| /* Groovy Usage: | |
| The following example replaces: | |
| the 1st occurrence of "James" in data.txt with "user1", | |
| the 2nd occurrence of "James" in data.txt with "user2", | |
| the 3rd occurrence of "James" in data.txt with "user3", | |
| .. | |
| the 9th occurrence of "James" in data.txt with "user9". | |
| */ | |
| def myFile = new File("data.txt") | 
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| def label = "mypod-${UUID.randomUUID().toString()}" | |
| podTemplate(label: label, yaml: """ | |
| spec: | |
| containers: | |
| - name: mvn | |
| image: maven:3.3.9-jdk-8-alpine |