Set a system environment variable AUTHZ_JSON_URL
that points to a JSON file with the following structure:
{
"admins": [
"groupA",
"userA"
],
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
/* | |
Please make sure to add the following environment variables: | |
HEROKU_PREVIEW=<your heroku preview app> | |
HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
HEROKU_PRODUCTION=<your heroku production app> |
node { | |
echo "=======================================" | |
echo "JENKINS_HOME = ${env.JENKINS_HOME}" | |
echo "JOB_NAME = ${env.JOB_NAME}" | |
echo "REPO_GIT = " + REPO_GIT | |
echo "DEFAULT_GIT_BRANCH = "+ DEFAULT_GIT_BRANCH | |
echo "SONAR_SERVER = "+ SONAR_SERVER | |
echo "=======================================" | |
def sonarInstance=hudson.plugins.sonar.SonarInstallation.get(SONAR_SERVER).name; |
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"sendgridAccountName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of your new SendGrid account." | |
} | |
}, |