ShreyasSubhedar / sample-python-cfd

Sample flask app to demonstrate a simple python circleci configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

curl -X GET 'https://api.newrelic.com/v2/applications.json' \
     -H "Api-Key:$API_KEY" -i \
     -d "filter[name]=$NAME"

def url = "https://api.newrelic.com/v2/applications/${app_id}/deployment.json"
def apiKey = 'adfadalkdjnadajkhdilalds'
def data = [
    'description' : "${desccption}",
    'user' : "${env.GIT_COMMITTER_NAME}",
    'timestamp': "${timestamp}",
    'revision' : "${env.BUILD_ID}",
    'changelog': "${env.JOB_NAME}"
]

def deploy = [
    'deployment': data
]

def dataStr = writeJSON returnText: true, json: deploy

httpRequest contentType: 'APPLICATION_JSON',
    customHeaders: [[maskValue: true, name: 'Api-Key', value: apiKey]],
    httpMode: 'POST', 
    requestBody: dataStr,
    responseHandle: 'NONE',
    url: url,
    wrapAsMultipart: false

About

Sample flask app to demonstrate a simple python circleci configuration

License:Other


Languages

Language:Python 99.3%Language:Shell 0.5%Language:Dockerfile 0.1%Language:Procfile 0.1%